]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: kexec/i386: fix sparse warnings: Using plain integer as NULL pointer
authorHannes Eder <hannes@hanneseder.net>
Sun, 22 Feb 2009 00:00:57 +0000 (01:00 +0100)
committerIngo Molnar <mingo@elte.hu>
Sun, 22 Feb 2009 08:27:11 +0000 (09:27 +0100)
Fix these sparse warnings:

  arch/x86/kernel/machine_kexec_32.c:124:22: warning: Using plain integer as NULL pointer
  arch/x86/kernel/traps.c:950:24: warning: Using plain integer as NULL pointer

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Cc: trivial@kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/machine_kexec_32.c
arch/x86/kernel/traps.c

index 37f420018a41c806bf57048d50163d0d28c640aa..f5fc8c781a62f5dcc41d5ef7213b24203d273213 100644 (file)
@@ -121,7 +121,7 @@ static void machine_kexec_page_table_set_one(
 static void machine_kexec_prepare_page_tables(struct kimage *image)
 {
        void *control_page;
-       pmd_t *pmd = 0;
+       pmd_t *pmd = NULL;
 
        control_page = page_address(image->control_code_page);
 #ifdef CONFIG_X86_PAE
index acb8c0585ab9f04a2d79457822d083e7de78f8b3..2df927b5003fe01d5b34811b2066ee09a5026a9e 100644 (file)
@@ -942,7 +942,7 @@ dotraplinkage void do_iret_error(struct pt_regs *regs, long error_code)
        info.si_signo = SIGILL;
        info.si_errno = 0;
        info.si_code = ILL_BADSTK;
-       info.si_addr = 0;
+       info.si_addr = NULL;
        if (notify_die(DIE_TRAP, "iret exception",
                        regs, error_code, 32, SIGILL) == NOTIFY_STOP)
                return;