Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: cache-l2x0.c: consistently use u32

__u32 exists to avoid namespace clashes with userspace programs. It
should not be used outside header files, so convert to use u32 instead.
Also, don't mix uint32_t and __u32 - use the same type throughout the
file for consistency.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

+14 -14
+3 -3
arch/arm/include/asm/hardware/cache-l2x0.h
··· 103 103 #define L2X0_ADDR_FILTER_EN 1 104 104 105 105 #ifndef __ASSEMBLY__ 106 - extern void __init l2x0_init(void __iomem *base, __u32 aux_val, __u32 aux_mask); 106 + extern void __init l2x0_init(void __iomem *base, u32 aux_val, u32 aux_mask); 107 107 #if defined(CONFIG_CACHE_L2X0) && defined(CONFIG_OF) 108 - extern int l2x0_of_init(__u32 aux_val, __u32 aux_mask); 108 + extern int l2x0_of_init(u32 aux_val, u32 aux_mask); 109 109 #else 110 - static inline int l2x0_of_init(__u32 aux_val, __u32 aux_mask) 110 + static inline int l2x0_of_init(u32 aux_val, u32 aux_mask) 111 111 { 112 112 return -ENODEV; 113 113 }
+11 -11
arch/arm/mm/cache-l2x0.c
··· 30 30 31 31 static void __iomem *l2x0_base; 32 32 static DEFINE_RAW_SPINLOCK(l2x0_lock); 33 - static uint32_t l2x0_way_mask; /* Bitmask of active ways */ 34 - static uint32_t l2x0_size; 33 + static u32 l2x0_way_mask; /* Bitmask of active ways */ 34 + static u32 l2x0_size; 35 35 36 36 struct l2x0_regs l2x0_saved_regs; 37 37 38 38 struct l2x0_of_data { 39 - void (*setup)(const struct device_node *, __u32 *, __u32 *); 39 + void (*setup)(const struct device_node *, u32 *, u32 *); 40 40 void (*save)(void); 41 41 void (*resume)(void); 42 42 }; ··· 288 288 raw_spin_unlock_irqrestore(&l2x0_lock, flags); 289 289 } 290 290 291 - static void l2x0_unlock(__u32 cache_id) 291 + static void l2x0_unlock(u32 cache_id) 292 292 { 293 293 int lockregs; 294 294 int i; ··· 307 307 } 308 308 } 309 309 310 - void __init l2x0_init(void __iomem *base, __u32 aux_val, __u32 aux_mask) 310 + void __init l2x0_init(void __iomem *base, u32 aux_val, u32 aux_mask) 311 311 { 312 - __u32 aux; 313 - __u32 cache_id; 314 - __u32 way_size = 0; 312 + u32 aux; 313 + u32 cache_id; 314 + u32 way_size = 0; 315 315 int ways; 316 316 const char *type; 317 317 ··· 388 388 389 389 #ifdef CONFIG_OF 390 390 static void __init l2x0_of_setup(const struct device_node *np, 391 - __u32 *aux_val, __u32 *aux_mask) 391 + u32 *aux_val, u32 *aux_mask) 392 392 { 393 393 u32 data[2] = { 0, 0 }; 394 394 u32 tag = 0; ··· 422 422 } 423 423 424 424 static void __init pl310_of_setup(const struct device_node *np, 425 - __u32 *aux_val, __u32 *aux_mask) 425 + u32 *aux_val, u32 *aux_mask) 426 426 { 427 427 u32 data[3] = { 0, 0, 0 }; 428 428 u32 tag[3] = { 0, 0, 0 }; ··· 548 548 {} 549 549 }; 550 550 551 - int __init l2x0_of_init(__u32 aux_val, __u32 aux_mask) 551 + int __init l2x0_of_init(u32 aux_val, u32 aux_mask) 552 552 { 553 553 struct device_node *np; 554 554 struct l2x0_of_data *data;