ARM Vexpress fixes for 5.18

Couple of fixes to address negative array index access and kernel-doc
 build warnings.
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEEunHlEgbzHrJD3ZPhAEG6vDF+4pgFAmJOtI4ACgkQAEG6vDF+
 4pjYUQ//aLqLGEFPLNe/Bvv9zBcpDBWRnQ6jbvCOgXZgP1kQOqCEGgV7p3JONTmY
 PHKa4RZuMn4HiJr9/ku+UQEYSLvzQ5Mzoe59hohsedxiB7UBP4bKaZas6MwO4rxY
 L0n1y1vSUp9nPjoBcQBL8GrOK7+IinIHyojWqV7iwHftUctqDpuLWIUQhHB/Fs0F
 vAH/4LPPnWmwzgZkrFJczxhaL7goTZFkXPrf/Tvu1J7vXE93t8/BHTOcckfGr9r1
 5V7l8SCzUGfVuT+LzbGfqNf0wejTvJAaa5YwKlb1wFaMIyMgESNrFoKBiJ0bdn3I
 t6CX55irLTpm2L0dz9el+nQ90m7ulPrRyIoMmpXZ9swpHNHpiw4a3UdzwGjiykMf
 YuP9rfKJXtGqwmwzSFxN7Xq53We2dAVujj+GJiFqZI4cY/r9+lDgvgUV/RaELdXc
 oyE2O2lsTvX+R5hvmGIzZ4dblAXTQv0bX8VZx1tmdgpcWV6rBug4qufccPGoYMrc
 XSmxbA4RZPr0XKBb5YYZTDNKw72wqtN2gzM1h6b3J58tvlOUQShdk46I88T3rN9I
 jwMlIJg49FquG3Q/iXEplwwM36CTUKE5KCspzpM2Q228b7nWFGALBywATMrpWssd
 CsR4U2vzJU9c/aeg0KxJwQOMR7M47ttEt/nWcPHB8C+Kwqe+ErQ=
 =RpzK
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEo6/YBQwIrVS28WGKmmx57+YAGNkFAmJO0aoACgkQmmx57+YA
 GNkexw/9HbhYKDty3TF9BZm/3r2ybnIpIb7X6FoSgS+bQviLMW7yaEN1FqgXmXVZ
 1b33tyX7CZ5zYBNDrfw1igEFiaY2nrxZdTNIRC7gv99khf7pzQLAkm9uWEr86eE6
 eIQBzxSu2hMurBcVaGqSO91kb2SYQ4Vh1JCOlvUm8YAisWcoCJEMspdE4EJiWEBg
 DGZ/EO5UbB/UkG+MBAG6VfTT5nkLZym9AMOX8TpdRR4ommpkHjoPcsoO0dZH66fV
 r1uaS0y9oBbLPzZAanlE4yW7Odqf365hHQt/jftJ7oCoTqtZdUucAVWxavR5ufGe
 Op9MwQ0jcV6J4EY6jYZr4PJ4z94OLm7b5fQ4mS1jJlOCFC0I+kmR2C29gxlfOKA6
 MFrh+ZyFQtkyaSW/P2uD4ShlW15z6xoKJy/5ifZOGhGKfpnxwmMkMCZM6/OPpJOL
 q9p4s6KxouBEB3u4Fmgxc5tFEnI7CyiWd4ohSigHX2DXjj+GcPhvVeVBoHUs8mPr
 fb0dXP2Zg5p4z3UIhdD2qkXxPvUi1tPa1FOEXXDOm3VDn4VhR69xnvVeTtaK2WiW
 S4jkKGTRUrt84iq1nIFgfAj0pDi0h6gP4wkRaKoBhZDBDi9ChXhzHrADc/xAOwB+
 PFmCJtJh0UjiqL5090obfESbjPedovoumzNx+I6KQ+2Q2zhAk98=
 =Cepb
 -----END PGP SIGNATURE-----

Merge tag 'vexpress-fixes-5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux into arm/fixes

ARM Vexpress fixes for 5.18

Couple of fixes to address negative array index access and kernel-doc
build warnings.

* tag 'vexpress-fixes-5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux:
  ARM: vexpress/spc: Fix all the kernel-doc build warnings
  ARM: vexpress/spc: Fix kernel-doc build warning for ve_spc_cpu_in_wfi
  ARM: vexpress/spc: Avoid negative array index when !SMP

Link: https://lore.kernel.org/r/20220407110828.1436206-1-sudeep.holla@arm.com
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
Arnd Bergmann 2022-04-07 13:57:30 +02:00
commit bc22bb224b

View File

@ -122,13 +122,13 @@ static inline bool cluster_is_a15(u32 cluster)
}
/**
* ve_spc_global_wakeup_irq()
* ve_spc_global_wakeup_irq() - sets/clears global wakeup IRQs
*
* @set: if true, global wake-up IRQs are set, if false they are cleared
*
* Function to set/clear global wakeup IRQs. Not protected by locking since
* it might be used in code paths where normal cacheable locks are not
* working. Locking must be provided by the caller to ensure atomicity.
*
* @set: if true, global wake-up IRQs are set, if false they are cleared
*/
void ve_spc_global_wakeup_irq(bool set)
{
@ -145,15 +145,15 @@ void ve_spc_global_wakeup_irq(bool set)
}
/**
* ve_spc_cpu_wakeup_irq()
*
* Function to set/clear per-CPU wake-up IRQs. Not protected by locking since
* it might be used in code paths where normal cacheable locks are not
* working. Locking must be provided by the caller to ensure atomicity.
* ve_spc_cpu_wakeup_irq() - sets/clears per-CPU wake-up IRQs
*
* @cluster: mpidr[15:8] bitfield describing cluster affinity level
* @cpu: mpidr[7:0] bitfield describing cpu affinity level
* @set: if true, wake-up IRQs are set, if false they are cleared
*
* Function to set/clear per-CPU wake-up IRQs. Not protected by locking since
* it might be used in code paths where normal cacheable locks are not
* working. Locking must be provided by the caller to ensure atomicity.
*/
void ve_spc_cpu_wakeup_irq(u32 cluster, u32 cpu, bool set)
{
@ -200,14 +200,14 @@ void ve_spc_set_resume_addr(u32 cluster, u32 cpu, u32 addr)
}
/**
* ve_spc_powerdown()
* ve_spc_powerdown() - enables/disables cluster powerdown
*
* @cluster: mpidr[15:8] bitfield describing cluster affinity level
* @enable: if true enables powerdown, if false disables it
*
* Function to enable/disable cluster powerdown. Not protected by locking
* since it might be used in code paths where normal cacheable locks are not
* working. Locking must be provided by the caller to ensure atomicity.
*
* @cluster: mpidr[15:8] bitfield describing cluster affinity level
* @enable: if true enables powerdown, if false disables it
*/
void ve_spc_powerdown(u32 cluster, bool enable)
{
@ -228,7 +228,7 @@ static u32 standbywfi_cpu_mask(u32 cpu, u32 cluster)
}
/**
* ve_spc_cpu_in_wfi(u32 cpu, u32 cluster)
* ve_spc_cpu_in_wfi() - Checks if the specified CPU is in WFI or not
*
* @cpu: mpidr[7:0] bitfield describing CPU affinity level within cluster
* @cluster: mpidr[15:8] bitfield describing cluster affinity level
@ -580,7 +580,7 @@ static int __init ve_spc_clk_init(void)
}
cluster = topology_physical_package_id(cpu_dev->id);
if (init_opp_table[cluster])
if (cluster < 0 || init_opp_table[cluster])
continue;
if (ve_init_opp_table(cpu_dev))