Commit ccc7d5a1 authored by Rich Felker's avatar Rich Felker

sh: fix function signature of cpu_coregroup_mask to match pointer type

The signedness mismatch of the argument type produces an error
compiling kernel/sched/core.c with -Werror=incompatible-pointer-types,
which is now used by default.

Fixes: ea8daa7b "kbuild: Add option to turn incompatible pointer check into error"
Signed-off-by: default avatarRich Felker <dalias@libc.org>
parent ef21b32a
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#define mc_capable() (1) #define mc_capable() (1)
const struct cpumask *cpu_coregroup_mask(unsigned int cpu); const struct cpumask *cpu_coregroup_mask(int cpu);
extern cpumask_t cpu_core_map[NR_CPUS]; extern cpumask_t cpu_core_map[NR_CPUS];
......
...@@ -21,7 +21,7 @@ static DEFINE_PER_CPU(struct cpu, cpu_devices); ...@@ -21,7 +21,7 @@ static DEFINE_PER_CPU(struct cpu, cpu_devices);
cpumask_t cpu_core_map[NR_CPUS]; cpumask_t cpu_core_map[NR_CPUS];
EXPORT_SYMBOL(cpu_core_map); EXPORT_SYMBOL(cpu_core_map);
static cpumask_t cpu_coregroup_map(unsigned int cpu) static cpumask_t cpu_coregroup_map(int cpu)
{ {
/* /*
* Presently all SH-X3 SMP cores are multi-cores, so just keep it * Presently all SH-X3 SMP cores are multi-cores, so just keep it
...@@ -30,7 +30,7 @@ static cpumask_t cpu_coregroup_map(unsigned int cpu) ...@@ -30,7 +30,7 @@ static cpumask_t cpu_coregroup_map(unsigned int cpu)
return *cpu_possible_mask; return *cpu_possible_mask;
} }
const struct cpumask *cpu_coregroup_mask(unsigned int cpu) const struct cpumask *cpu_coregroup_mask(int cpu)
{ {
return &cpu_core_map[cpu]; return &cpu_core_map[cpu];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment