[patch] dont export ia64 intrin headers and sanitize asm-ia64/byteorder.h

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mike Frysinger
Date: Monday, June 18, 2007 - 12:47 pm

On Monday 18 June 2007, Christoph Hellwig wrote:

so like the following

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
diff --git a/include/asm-ia64/Kbuild b/include/asm-ia64/Kbuild
index 4a1e48b..fc03b88 100644
--- a/include/asm-ia64/Kbuild
+++ b/include/asm-ia64/Kbuild
@@ -3,10 +3,7 @@ include include/asm-generic/Kbuild.asm
 header-y += break.h
 header-y += fpu.h
 header-y += fpswa.h
-header-y += gcc_intrin.h
 header-y += ia64regs.h
-header-y += intel_intrin.h
-header-y += intrinsics.h
 header-y += perfmon_default_smpl.h
 header-y += ptrace_offsets.h
 header-y += rse.h
diff --git a/include/asm-ia64/byteorder.h b/include/asm-ia64/byteorder.h
index 69bd41d..783e272 100644
--- a/include/asm-ia64/byteorder.h
+++ b/include/asm-ia64/byteorder.h
@@ -7,6 +7,9 @@
  */
 
 #include <asm/types.h>
+
+#ifdef __KERNEL__
+
 #include <asm/intrinsics.h>
 #include <linux/compiler.h>
 
@@ -35,6 +38,8 @@ __ia64_swab16(__u16 x)
 #define __arch__swab32(x) __ia64_swab32(x)
 #define __arch__swab16(x) __ia64_swab16(x)
 
+#endif
+
 #define __BYTEORDER_HAS_U64__
 
 #include <linux/byteorder/little_endian.h>

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [patch] use __asm__ and __volatile__ in asm-ia64/gcc_i ..., Christoph Hellwig, (Mon Jun 18, 11:37 am)
[patch] dont export ia64 intrin headers and sanitize asm-i ..., Mike Frysinger, (Mon Jun 18, 12:47 pm)