Skip to content

Commit 5190f0c

Browse files
vapiertorvalds
authored andcommitted
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 <vapier@gentoo.org> Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent f35119d commit 5190f0c

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎include/asm-generic/system.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#ifndef __ASM_GENERIC_SYSTEM_H
1515
#define __ASM_GENERIC_SYSTEM_H
1616

17-
#ifdef __KERNEL__
1817
#ifndef __ASSEMBLY__
1918

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

140139
#endif /* !__ASSEMBLY__ */
141140

142-
#endif /* __KERNEL__ */
143141
#endif /* __ASM_GENERIC_SYSTEM_H */

0 commit comments

Comments
 (0)