diff options
author | Andrew Morton <akpm@osdl.org> | 2006-03-08 10:53:25 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-03-21 00:42:59 +0300 |
commit | a29d642a4aa99c5234314ab2523281139226c231 (patch) | |
tree | 818996643addcea3963dd143a94ce3c293f225fd /include | |
parent | 7423172a50968de1905a61413c52bb070a62f5ce (diff) | |
download | linux-a29d642a4aa99c5234314ab2523281139226c231.tar.xz |
[PATCH] get_cpu_sysdev() signedness fix
Doing (int < NR_CPUS) doesn't dtrt if it's negative..
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/cpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h index 0ed1d4853c69..d612b89dce33 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h @@ -32,7 +32,7 @@ struct cpu { }; extern int register_cpu(struct cpu *, int, struct node *); -extern struct sys_device *get_cpu_sysdev(int cpu); +extern struct sys_device *get_cpu_sysdev(unsigned cpu); #ifdef CONFIG_HOTPLUG_CPU extern void unregister_cpu(struct cpu *, struct node *); #endif |