diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-08-18 19:56:29 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-08-18 20:14:29 -0400 |
commit | 467cd0529a480c9c25f06154b788d1d1ba77828a (patch) | |
tree | 8a6170afd2130adb7aa0254cefd70a7e5e5b83b9 /arch/x86/kernel/early_printk.c | |
parent | 9749986a878e91182ff027ff0010ab8e3211031a (diff) |
x86: early_printk.c trivial sparse fixes
arch/x86/kernel/early_printk.c:404:13: warning: incorrect type in assignment (different base types)
arch/x86/kernel/early_printk.c:404:13: expected restricted __le16 [assigned] [usertype] wValue
arch/x86/kernel/early_printk.c:404:13: got int [signed] value
arch/x86/kernel/early_printk.c:405:13: warning: incorrect type in assignment (different base types)
arch/x86/kernel/early_printk.c:405:13: expected restricted __le16 [assigned] [usertype] wIndex
arch/x86/kernel/early_printk.c:405:13: got int [signed] index
arch/x86/kernel/early_printk.c:406:14: warning: incorrect type in assignment (different base types)
arch/x86/kernel/early_printk.c:406:14: expected restricted __le16 [assigned] [usertype] wLength
arch/x86/kernel/early_printk.c:406:14: got int [signed] size
arch/x86/kernel/early_printk.c:845:16: warning: Using plain integer as NULL pointer
arch/x86/kernel/early_printk.c:992:13: warning: symbol 'enable_debug_console' was not declared. Should it be static?
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/early_printk.c')
-rw-r--r-- | arch/x86/kernel/early_printk.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/kernel/early_printk.c b/arch/x86/kernel/early_printk.c index 28155acf706e..825e9136b026 100644 --- a/arch/x86/kernel/early_printk.c +++ b/arch/x86/kernel/early_printk.c | |||
@@ -401,9 +401,9 @@ static int dbgp_control_msg(unsigned devnum, int requesttype, int request, | |||
401 | /* Compute the control message */ | 401 | /* Compute the control message */ |
402 | req.bRequestType = requesttype; | 402 | req.bRequestType = requesttype; |
403 | req.bRequest = request; | 403 | req.bRequest = request; |
404 | req.wValue = value; | 404 | req.wValue = cpu_to_le16(value); |
405 | req.wIndex = index; | 405 | req.wIndex = cpu_to_le16(index); |
406 | req.wLength = size; | 406 | req.wLength = cpu_to_le16(size); |
407 | 407 | ||
408 | pids = DBGP_PID_SET(USB_PID_DATA0, USB_PID_SETUP); | 408 | pids = DBGP_PID_SET(USB_PID_DATA0, USB_PID_SETUP); |
409 | addr = DBGP_EPADDR(devnum, 0); | 409 | addr = DBGP_EPADDR(devnum, 0); |
@@ -842,7 +842,7 @@ static int __init early_dbgp_init(char *s) | |||
842 | ret = ehci_setup(); | 842 | ret = ehci_setup(); |
843 | if (ret < 0) { | 843 | if (ret < 0) { |
844 | dbgp_printk("ehci_setup failed\n"); | 844 | dbgp_printk("ehci_setup failed\n"); |
845 | ehci_debug = 0; | 845 | ehci_debug = NULL; |
846 | 846 | ||
847 | return -1; | 847 | return -1; |
848 | } | 848 | } |
@@ -989,7 +989,7 @@ static int __init setup_early_printk(char *buf) | |||
989 | return 0; | 989 | return 0; |
990 | } | 990 | } |
991 | 991 | ||
992 | void __init enable_debug_console(char *buf) | 992 | static void __init enable_debug_console(char *buf) |
993 | { | 993 | { |
994 | #ifdef DBGP_DEBUG | 994 | #ifdef DBGP_DEBUG |
995 | struct console *old_early_console = NULL; | 995 | struct console *old_early_console = NULL; |