lkml.org 
[lkml]   [2006]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] alternatives/paravirt: use NULL for pointers
From: Randy Dunlap <randy.dunlap@oracle.com>

Use NULL instead of 0 for pointers.

arch/x86_64/kernel/../../i386/kernel/alternative.c:432:18: warning: Using plain integer as NULL pointer
arch/x86_64/kernel/../../i386/kernel/alternative.c:432:44: warning: Using plain integer as NULL pointer

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
include/asm-i386/alternative.h | 5 +++--
include/asm-x86_64/alternative.h | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)

--- linux-2.6.19-rc6-mm2.orig/include/asm-i386/alternative.h
+++ linux-2.6.19-rc6-mm2/include/asm-i386/alternative.h
@@ -5,6 +5,7 @@

#include <asm/types.h>

+#include <linux/stddef.h>
#include <linux/types.h>

struct alt_instr {
@@ -125,8 +126,8 @@ void apply_paravirt(struct paravirt_patc
static inline void
apply_paravirt(struct paravirt_patch *start, struct paravirt_patch *end)
{}
-#define __start_parainstructions 0
-#define __stop_parainstructions 0
+#define __start_parainstructions NULL
+#define __stop_parainstructions NULL
#endif

#endif /* _I386_ALTERNATIVE_H */
--- linux-2.6.19-rc6-mm2.orig/include/asm-x86_64/alternative.h
+++ linux-2.6.19-rc6-mm2/include/asm-x86_64/alternative.h
@@ -3,6 +3,7 @@

#ifdef __KERNEL__

+#include <linux/stddef.h>
#include <linux/types.h>
#include <asm/cpufeature.h>

@@ -140,8 +141,8 @@ void apply_paravirt(struct paravirt_patc
static inline void
apply_paravirt(struct paravirt_patch *start, struct paravirt_patch *end)
{}
-#define __start_parainstructions 0
-#define __stop_parainstructions 0
+#define __start_parainstructions NULL
+#define __stop_parainstructions NULL
#endif

#endif /* _X86_64_ALTERNATIVE_H */

---
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-11-29 22:23    [W:1.713 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site