2011-04-13 23:41:51

by Mike Frysinger

[permalink] [raw]
Subject: [PATCH] asm-generic/system.h: drop useless __KERNEL__

This header isn't exported to user-space, and even if it was, the
__KERNEL__ check covers the entire file, so we'd get a useless stub
in the first place. So punt it.

Signed-off-by: Mike Frysinger <[email protected]>
---
include/asm-generic/system.h | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/include/asm-generic/system.h b/include/asm-generic/system.h
index 4b0b9cb..215efa7 100644
--- a/include/asm-generic/system.h
+++ b/include/asm-generic/system.h
@@ -14,7 +14,6 @@
#ifndef __ASM_GENERIC_SYSTEM_H
#define __ASM_GENERIC_SYSTEM_H

-#ifdef __KERNEL__
#ifndef __ASSEMBLY__

#include <linux/types.h>
@@ -139,5 +138,4 @@ unsigned long __xchg(unsigned long x, volatile void *ptr, int size)

#endif /* !__ASSEMBLY__ */

-#endif /* __KERNEL__ */
#endif /* __ASM_GENERIC_SYSTEM_H */
--
1.7.5.rc1


2011-05-29 02:50:17

by Mike Frysinger

[permalink] [raw]
Subject: [PATCH] asm-generic/system.h: drop useless __KERNEL__

This header isn't exported to user-space, and even if it was, the
__KERNEL__ check covers the entire file, so we'd get a useless stub
in the first place. So punt it.

Signed-off-by: Mike Frysinger <[email protected]>
---
andrew: could you pick this up ? sent it out about 6 weeks ago with no love

include/asm-generic/system.h | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/include/asm-generic/system.h b/include/asm-generic/system.h
index 4b0b9cb..215efa7 100644
--- a/include/asm-generic/system.h
+++ b/include/asm-generic/system.h
@@ -14,7 +14,6 @@
#ifndef __ASM_GENERIC_SYSTEM_H
#define __ASM_GENERIC_SYSTEM_H

-#ifdef __KERNEL__
#ifndef __ASSEMBLY__

#include <linux/types.h>
@@ -139,5 +138,4 @@ unsigned long __xchg(unsigned long x, volatile void *ptr, int size)

#endif /* !__ASSEMBLY__ */

-#endif /* __KERNEL__ */
#endif /* __ASM_GENERIC_SYSTEM_H */
--
1.7.5.rc3