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

[S390] topology,sched: fix cpu_coregroup_mask/cpu_book_mask definitions

Both functions take an int instead of an unsigned int. Fixes these
compile warnings:

kernel/sched.c:7167:2: warning: initialization from incompatible pointer type
kernel/sched.c:7170:2: warning: initialization from incompatible pointer type

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

+2 -2
+2 -2
arch/s390/include/asm/topology.h
··· 7 7 extern unsigned char cpu_core_id[NR_CPUS]; 8 8 extern cpumask_t cpu_core_map[NR_CPUS]; 9 9 10 - static inline const struct cpumask *cpu_coregroup_mask(unsigned int cpu) 10 + static inline const struct cpumask *cpu_coregroup_mask(int cpu) 11 11 { 12 12 return &cpu_core_map[cpu]; 13 13 } ··· 21 21 extern unsigned char cpu_book_id[NR_CPUS]; 22 22 extern cpumask_t cpu_book_map[NR_CPUS]; 23 23 24 - static inline const struct cpumask *cpu_book_mask(unsigned int cpu) 24 + static inline const struct cpumask *cpu_book_mask(int cpu) 25 25 { 26 26 return &cpu_book_map[cpu]; 27 27 }