From: Randy Dunlap <randy.dunlap@oracle.com>
To: lkml <linux-kernel@vger.kernel.org>
Cc: ak@suse.de, akpm <akpm@osdl.org>
Subject: [PATCH] alternatives/paravirt: use NULL for pointers
Date: Wed, 29 Nov 2006 13:17:08 -0800 [thread overview]
Message-ID: <20061129131708.ebbdd36c.randy.dunlap@oracle.com> (raw)
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 */
---
next reply other threads:[~2006-11-29 21:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-29 21:17 Randy Dunlap [this message]
2006-11-30 0:31 ` [PATCH] alternatives/paravirt: use NULL for pointers Andi Kleen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061129131708.ebbdd36c.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox