public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Remove unneeded #ifdef kernel from ppc unaligned.h
@ 2004-08-09  5:16 GOTO Masanori
  2004-08-09  8:07 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 4+ messages in thread
From: GOTO Masanori @ 2004-08-09  5:16 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, Paul Mackerras; +Cc: linux-kernel, gotom

This patch removes unneeded #ifdef __KERNEL__ from ppc unaligned.h.
There's no reason to enclose __KERNEL__, similar to other
architectures.  It also fixes the compilation failure building
userland helper application reiserfsprogs on ppc which includes
asm/unaligned.h.

Signed-off-by: GOTO Masanori <gotom@debian.or.jp>

--- include/asm-ppc/unaligned.h	2003-12-15 22:57:40.000000000 +0900
+++ include/asm-ppc/unaligned.h.new	2004-08-09 12:17:16.000000000 +0900
@@ -1,4 +1,3 @@
-#ifdef __KERNEL__
 #ifndef __PPC_UNALIGNED_H
 #define __PPC_UNALIGNED_H
 
@@ -15,4 +14,3 @@
 #define put_unaligned(val, ptr) ((void)( *(ptr) = (val) ))
 
 #endif
-#endif /* __KERNEL__ */

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-08-09 22:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-09  5:16 [PATCH] Remove unneeded #ifdef kernel from ppc unaligned.h GOTO Masanori
2004-08-09  8:07 ` Benjamin Herrenschmidt
2004-08-09  8:16   ` GOTO Masanori
2004-08-09 22:37     ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox