Skip to contentSkip to conversation

ARM: MCPM: prefer 'unsigned int' to bare use of 'unsigned'

PATCH New [email protected] 1 participant 1 message Jul 9, 2023 1 message not in the archive Arm (32-bit)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 ARM: MCPM: prefer 'unsigned int' to bare use of 'unsigned'

Fix the following warnings reported by checkpatch:

arch/arm/common/mcpm_entry.c:143: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' arch/arm/common/mcpm_entry.c:143: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' arch/arm/common/mcpm_entry.c:152: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' arch/arm/common/mcpm_entry.c:152: WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

---
 arch/arm/common/mcpm_entry.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/common/mcpm_entry.c +0 -0
index 8a9aeeb504dd..97f8e7947807 100644
@@ -140,7 +140,7 @@ static int __mcpm_cluster_state(unsigned int cluster)
 
 extern unsigned long 

mcpm_entry_vectors[MAX_NR_CLUSTERS][MAX_CPUS_PER_CLUSTER];

-void mcpm_set_entry_vector(unsigned cpu, unsigned cluster, void *ptr) +void mcpm_set_entry_vector(unsigned int cpu, unsigned int cluster, void *ptr)

 {
     unsigned long val = ptr ? __pa_symbol(ptr) : 0;
     mcpm_entry_vectors[cluster][cpu] = val;

@@ -149,7 +149,7 @@ void mcpm_set_entry_vector(unsigned cpu, unsigned cluster, void *ptr)

extern unsigned long
mcpm_entry_early_pokes[MAX_NR_CLUSTERS][MAX_CPUS_PER_CLUSTER][2];

-void mcpm_set_early_poke(unsigned cpu, unsigned cluster, +void mcpm_set_early_poke(unsigned int cpu, unsigned int cluster,
unsigned long poke_phys_addr, unsigned long poke_val)

 {
     unsigned long *poke = &mcpm_entry_early_pokes[cluster][cpu][0];