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

microblaze: Fix sparse warning - cpuinfo.h

Warning log:
CHECK arch/microblaze/kernel/cpu/cpuinfo-static.c
arch/microblaze/include/asm/cpuinfo.h:101:21: warning: incorrect type in argument 1 (different signedness)
arch/microblaze/include/asm/cpuinfo.h:101:21: expected unsigned int const [usertype] *p
arch/microblaze/include/asm/cpuinfo.h:101:21: got int *[assigned] val
...

Signed-off-by: Michal Simek <monstr@monstr.eu>

+2 -2
+2 -2
arch/microblaze/include/asm/cpuinfo.h
··· 96 96 97 97 static inline unsigned int fcpu(struct device_node *cpu, char *n) 98 98 { 99 - int *val; 100 - return (val = (int *) of_get_property(cpu, n, NULL)) ? 99 + const __be32 *val; 100 + return (val = of_get_property(cpu, n, NULL)) ? 101 101 be32_to_cpup(val) : 0; 102 102 } 103 103