aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/asm-alpha/bitops.h4
-rw-r--r--include/asm-arm/bitops.h4
-rw-r--r--include/asm-avr32/bitops.h4
-rw-r--r--include/asm-blackfin/bitops.h4
-rw-r--r--include/asm-cris/bitops.h4
-rw-r--r--include/asm-frv/bitops.h4
-rw-r--r--include/asm-generic/bitops.h4
-rw-r--r--include/asm-h8300/bitops.h5
-rw-r--r--include/asm-ia64/bitops.h4
-rw-r--r--include/asm-m32r/bitops.h4
-rw-r--r--include/asm-m68k/bitops.h4
-rw-r--r--include/asm-m68knommu/bitops.h4
-rw-r--r--include/asm-mips/bitops.h4
-rw-r--r--include/asm-parisc/bitops.h4
-rw-r--r--include/asm-powerpc/bitops.h4
-rw-r--r--include/asm-s390/bitops.h4
-rw-r--r--include/asm-sh/bitops.h5
-rw-r--r--include/asm-sh64/bitops.h5
-rw-r--r--include/asm-sparc/bitops.h4
-rw-r--r--include/asm-sparc64/bitops.h4
-rw-r--r--include/asm-um/bitops.h4
-rw-r--r--include/asm-v850/bitops.h3
-rw-r--r--include/asm-x86/bitops_32.h4
-rw-r--r--include/asm-x86/bitops_64.h4
-rw-r--r--include/asm-xtensa/bitops.h4
25 files changed, 102 insertions, 0 deletions
diff --git a/include/asm-alpha/bitops.h b/include/asm-alpha/bitops.h
index 381b4f5b4d5d..9e19a704d484 100644
--- a/include/asm-alpha/bitops.h
+++ b/include/asm-alpha/bitops.h
@@ -1,6 +1,10 @@
1#ifndef _ALPHA_BITOPS_H 1#ifndef _ALPHA_BITOPS_H
2#define _ALPHA_BITOPS_H 2#define _ALPHA_BITOPS_H
3 3
4#ifndef _LINUX_BITOPS_H
5#error only <linux/bitops.h> can be included directly
6#endif
7
4#include <asm/compiler.h> 8#include <asm/compiler.h>
5#include <asm/barrier.h> 9#include <asm/barrier.h>
6 10
diff --git a/include/asm-arm/bitops.h b/include/asm-arm/bitops.h
index 52fe05895deb..47a6b086eee2 100644
--- a/include/asm-arm/bitops.h
+++ b/include/asm-arm/bitops.h
@@ -19,6 +19,10 @@
19 19
20#ifdef __KERNEL__ 20#ifdef __KERNEL__
21 21
22#ifndef _LINUX_BITOPS_H
23#error only <linux/bitops.h> can be included directly
24#endif
25
22#include <linux/compiler.h> 26#include <linux/compiler.h>
23#include <asm/system.h> 27#include <asm/system.h>
24 28
diff --git a/include/asm-avr32/bitops.h b/include/asm-avr32/bitops.h
index f3faddfd46a8..1a50b69b1a19 100644
--- a/include/asm-avr32/bitops.h
+++ b/include/asm-avr32/bitops.h
@@ -8,6 +8,10 @@
8#ifndef __ASM_AVR32_BITOPS_H 8#ifndef __ASM_AVR32_BITOPS_H
9#define __ASM_AVR32_BITOPS_H 9#define __ASM_AVR32_BITOPS_H
10 10
11#ifndef _LINUX_BITOPS_H
12#error only <linux/bitops.h> can be included directly
13#endif
14
11#include <asm/byteorder.h> 15#include <asm/byteorder.h>
12#include <asm/system.h> 16#include <asm/system.h>
13 17
diff --git a/include/asm-blackfin/bitops.h b/include/asm-blackfin/bitops.h
index 03ecedc1f2a7..b39a175c79c1 100644
--- a/include/asm-blackfin/bitops.h
+++ b/include/asm-blackfin/bitops.h
@@ -11,6 +11,10 @@
11 11
12#ifdef __KERNEL__ 12#ifdef __KERNEL__
13 13
14#ifndef _LINUX_BITOPS_H
15#error only <linux/bitops.h> can be included directly
16#endif
17
14#include <asm-generic/bitops/ffs.h> 18#include <asm-generic/bitops/ffs.h>
15#include <asm-generic/bitops/__ffs.h> 19#include <asm-generic/bitops/__ffs.h>
16#include <asm-generic/bitops/sched.h> 20#include <asm-generic/bitops/sched.h>
diff --git a/include/asm-cris/bitops.h b/include/asm-cris/bitops.h
index 617151b9b72b..e2f49c27ed29 100644
--- a/include/asm-cris/bitops.h
+++ b/include/asm-cris/bitops.h
@@ -14,6 +14,10 @@
14/* Currently this is unsuitable for consumption outside the kernel. */ 14/* Currently this is unsuitable for consumption outside the kernel. */
15#ifdef __KERNEL__ 15#ifdef __KERNEL__
16 16
17#ifndef _LINUX_BITOPS_H
18#error only <linux/bitops.h> can be included directly
19#endif
20
17#include <asm/arch/bitops.h> 21#include <asm/arch/bitops.h>
18#include <asm/system.h> 22#include <asm/system.h>
19#include <asm/atomic.h> 23#include <asm/atomic.h>
diff --git a/include/asm-frv/bitops.h b/include/asm-frv/bitops.h
index 8dba74b1a254..e29de7131b79 100644
--- a/include/asm-frv/bitops.h
+++ b/include/asm-frv/bitops.h
@@ -21,6 +21,10 @@
21 21
22#ifdef __KERNEL__ 22#ifdef __KERNEL__
23 23
24#ifndef _LINUX_BITOPS_H
25#error only <linux/bitops.h> can be included directly
26#endif
27
24#include <asm-generic/bitops/ffz.h> 28#include <asm-generic/bitops/ffz.h>
25 29
26/* 30/*
diff --git a/include/asm-generic/bitops.h b/include/asm-generic/bitops.h
index e022a0f59e6b..15e6f253dda4 100644
--- a/include/asm-generic/bitops.h
+++ b/include/asm-generic/bitops.h
@@ -19,6 +19,10 @@
19 19
20#ifdef __KERNEL__ 20#ifdef __KERNEL__
21 21
22#ifndef _LINUX_BITOPS_H
23#error only <linux/bitops.h> can be included directly
24#endif
25
22#include <asm-generic/bitops/sched.h> 26#include <asm-generic/bitops/sched.h>
23#include <asm-generic/bitops/ffs.h> 27#include <asm-generic/bitops/ffs.h>
24#include <asm-generic/bitops/hweight.h> 28#include <asm-generic/bitops/hweight.h>
diff --git a/include/asm-h8300/bitops.h b/include/asm-h8300/bitops.h
index e64ad315656d..cb18e3b0aa94 100644
--- a/include/asm-h8300/bitops.h
+++ b/include/asm-h8300/bitops.h
@@ -10,6 +10,11 @@
10#include <asm/system.h> 10#include <asm/system.h>
11 11
12#ifdef __KERNEL__ 12#ifdef __KERNEL__
13
14#ifndef _LINUX_BITOPS_H
15#error only <linux/bitops.h> can be included directly
16#endif
17
13/* 18/*
14 * Function prototypes to keep gcc -Wall happy 19 * Function prototypes to keep gcc -Wall happy
15 */ 20 */
diff --git a/include/asm-ia64/bitops.h b/include/asm-ia64/bitops.h
index 2144f1a8ed6f..a977affaebec 100644
--- a/include/asm-ia64/bitops.h
+++ b/include/asm-ia64/bitops.h
@@ -9,6 +9,10 @@
9 * O(1) scheduler patch 9 * O(1) scheduler patch
10 */ 10 */
11 11
12#ifndef _LINUX_BITOPS_H
13#error only <linux/bitops.h> can be included directly
14#endif
15
12#include <linux/compiler.h> 16#include <linux/compiler.h>
13#include <linux/types.h> 17#include <linux/types.h>
14#include <asm/intrinsics.h> 18#include <asm/intrinsics.h>
diff --git a/include/asm-m32r/bitops.h b/include/asm-m32r/bitops.h
index 313a02c4a889..6dc9b81bf9f3 100644
--- a/include/asm-m32r/bitops.h
+++ b/include/asm-m32r/bitops.h
@@ -11,6 +11,10 @@
11 * Copyright (C) 2004 Hirokazu Takata <takata at linux-m32r.org> 11 * Copyright (C) 2004 Hirokazu Takata <takata at linux-m32r.org>
12 */ 12 */
13 13
14#ifndef _LINUX_BITOPS_H
15#error only <linux/bitops.h> can be included directly
16#endif
17
14#include <linux/compiler.h> 18#include <linux/compiler.h>
15#include <asm/assembler.h> 19#include <asm/assembler.h>
16#include <asm/system.h> 20#include <asm/system.h>
diff --git a/include/asm-m68k/bitops.h b/include/asm-m68k/bitops.h
index da151f70cdc6..2976b5d68e96 100644
--- a/include/asm-m68k/bitops.h
+++ b/include/asm-m68k/bitops.h
@@ -8,6 +8,10 @@
8 * for more details. 8 * for more details.
9 */ 9 */
10 10
11#ifndef _LINUX_BITOPS_H
12#error only <linux/bitops.h> can be included directly
13#endif
14
11#include <linux/compiler.h> 15#include <linux/compiler.h>
12 16
13/* 17/*
diff --git a/include/asm-m68knommu/bitops.h b/include/asm-m68knommu/bitops.h
index b8b2770d6870..f8dfb7ba2e25 100644
--- a/include/asm-m68knommu/bitops.h
+++ b/include/asm-m68knommu/bitops.h
@@ -10,6 +10,10 @@
10 10
11#ifdef __KERNEL__ 11#ifdef __KERNEL__
12 12
13#ifndef _LINUX_BITOPS_H
14#error only <linux/bitops.h> can be included directly
15#endif
16
13#include <asm-generic/bitops/ffs.h> 17#include <asm-generic/bitops/ffs.h>
14#include <asm-generic/bitops/__ffs.h> 18#include <asm-generic/bitops/__ffs.h>
15#include <asm-generic/bitops/sched.h> 19#include <asm-generic/bitops/sched.h>
diff --git a/include/asm-mips/bitops.h b/include/asm-mips/bitops.h
index 77ed0c79830b..ec75ce4cdb8c 100644
--- a/include/asm-mips/bitops.h
+++ b/include/asm-mips/bitops.h
@@ -9,6 +9,10 @@
9#ifndef _ASM_BITOPS_H 9#ifndef _ASM_BITOPS_H
10#define _ASM_BITOPS_H 10#define _ASM_BITOPS_H
11 11
12#ifndef _LINUX_BITOPS_H
13#error only <linux/bitops.h> can be included directly
14#endif
15
12#include <linux/compiler.h> 16#include <linux/compiler.h>
13#include <linux/irqflags.h> 17#include <linux/irqflags.h>
14#include <linux/types.h> 18#include <linux/types.h>
diff --git a/include/asm-parisc/bitops.h b/include/asm-parisc/bitops.h
index 03ae287baf89..f8eebcbad01f 100644
--- a/include/asm-parisc/bitops.h
+++ b/include/asm-parisc/bitops.h
@@ -1,6 +1,10 @@
1#ifndef _PARISC_BITOPS_H 1#ifndef _PARISC_BITOPS_H
2#define _PARISC_BITOPS_H 2#define _PARISC_BITOPS_H
3 3
4#ifndef _LINUX_BITOPS_H
5#error only <linux/bitops.h> can be included directly
6#endif
7
4#include <linux/compiler.h> 8#include <linux/compiler.h>
5#include <asm/types.h> /* for BITS_PER_LONG/SHIFT_PER_LONG */ 9#include <asm/types.h> /* for BITS_PER_LONG/SHIFT_PER_LONG */
6#include <asm/byteorder.h> 10#include <asm/byteorder.h>
diff --git a/include/asm-powerpc/bitops.h b/include/asm-powerpc/bitops.h
index e85c3e078ba2..733b4af7f4f1 100644
--- a/include/asm-powerpc/bitops.h
+++ b/include/asm-powerpc/bitops.h
@@ -38,6 +38,10 @@
38 38
39#ifdef __KERNEL__ 39#ifdef __KERNEL__
40 40
41#ifndef _LINUX_BITOPS_H
42#error only <linux/bitops.h> can be included directly
43#endif
44
41#include <linux/compiler.h> 45#include <linux/compiler.h>
42#include <asm/asm-compat.h> 46#include <asm/asm-compat.h>
43#include <asm/synch.h> 47#include <asm/synch.h>
diff --git a/include/asm-s390/bitops.h b/include/asm-s390/bitops.h
index d756b34d25f3..34d9a6357c38 100644
--- a/include/asm-s390/bitops.h
+++ b/include/asm-s390/bitops.h
@@ -15,6 +15,10 @@
15 15
16#ifdef __KERNEL__ 16#ifdef __KERNEL__
17 17
18#ifndef _LINUX_BITOPS_H
19#error only <linux/bitops.h> can be included directly
20#endif
21
18#include <linux/compiler.h> 22#include <linux/compiler.h>
19 23
20/* 24/*
diff --git a/include/asm-sh/bitops.h b/include/asm-sh/bitops.h
index 9d7021723a25..df805f20b267 100644
--- a/include/asm-sh/bitops.h
+++ b/include/asm-sh/bitops.h
@@ -2,6 +2,11 @@
2#define __ASM_SH_BITOPS_H 2#define __ASM_SH_BITOPS_H
3 3
4#ifdef __KERNEL__ 4#ifdef __KERNEL__
5
6#ifndef _LINUX_BITOPS_H
7#error only <linux/bitops.h> can be included directly
8#endif
9
5#include <asm/system.h> 10#include <asm/system.h>
6/* For __swab32 */ 11/* For __swab32 */
7#include <asm/byteorder.h> 12#include <asm/byteorder.h>
diff --git a/include/asm-sh64/bitops.h b/include/asm-sh64/bitops.h
index 444d5ea92ce9..600c59efb4c2 100644
--- a/include/asm-sh64/bitops.h
+++ b/include/asm-sh64/bitops.h
@@ -13,6 +13,11 @@
13 */ 13 */
14 14
15#ifdef __KERNEL__ 15#ifdef __KERNEL__
16
17#ifndef _LINUX_BITOPS_H
18#error only <linux/bitops.h> can be included directly
19#endif
20
16#include <linux/compiler.h> 21#include <linux/compiler.h>
17#include <asm/system.h> 22#include <asm/system.h>
18/* For __swab32 */ 23/* For __swab32 */
diff --git a/include/asm-sparc/bitops.h b/include/asm-sparc/bitops.h
index 00bd0a679d70..cb3cefab6e09 100644
--- a/include/asm-sparc/bitops.h
+++ b/include/asm-sparc/bitops.h
@@ -14,6 +14,10 @@
14 14
15#ifdef __KERNEL__ 15#ifdef __KERNEL__
16 16
17#ifndef _LINUX_BITOPS_H
18#error only <linux/bitops.h> can be included directly
19#endif
20
17extern unsigned long ___set_bit(unsigned long *addr, unsigned long mask); 21extern unsigned long ___set_bit(unsigned long *addr, unsigned long mask);
18extern unsigned long ___clear_bit(unsigned long *addr, unsigned long mask); 22extern unsigned long ___clear_bit(unsigned long *addr, unsigned long mask);
19extern unsigned long ___change_bit(unsigned long *addr, unsigned long mask); 23extern unsigned long ___change_bit(unsigned long *addr, unsigned long mask);
diff --git a/include/asm-sparc64/bitops.h b/include/asm-sparc64/bitops.h
index dd4bfe993b61..982ce8992b91 100644
--- a/include/asm-sparc64/bitops.h
+++ b/include/asm-sparc64/bitops.h
@@ -7,6 +7,10 @@
7#ifndef _SPARC64_BITOPS_H 7#ifndef _SPARC64_BITOPS_H
8#define _SPARC64_BITOPS_H 8#define _SPARC64_BITOPS_H
9 9
10#ifndef _LINUX_BITOPS_H
11#error only <linux/bitops.h> can be included directly
12#endif
13
10#include <linux/compiler.h> 14#include <linux/compiler.h>
11#include <asm/byteorder.h> 15#include <asm/byteorder.h>
12 16
diff --git a/include/asm-um/bitops.h b/include/asm-um/bitops.h
index 46d781953d3a..e4d38d437b97 100644
--- a/include/asm-um/bitops.h
+++ b/include/asm-um/bitops.h
@@ -1,6 +1,10 @@
1#ifndef __UM_BITOPS_H 1#ifndef __UM_BITOPS_H
2#define __UM_BITOPS_H 2#define __UM_BITOPS_H
3 3
4#ifndef _LINUX_BITOPS_H
5#error only <linux/bitops.h> can be included directly
6#endif
7
4#include "asm/arch/bitops.h" 8#include "asm/arch/bitops.h"
5 9
6#endif 10#endif
diff --git a/include/asm-v850/bitops.h b/include/asm-v850/bitops.h
index 8eafdb1c08ba..f82f5b4a56e0 100644
--- a/include/asm-v850/bitops.h
+++ b/include/asm-v850/bitops.h
@@ -13,6 +13,9 @@
13#ifndef __V850_BITOPS_H__ 13#ifndef __V850_BITOPS_H__
14#define __V850_BITOPS_H__ 14#define __V850_BITOPS_H__
15 15
16#ifndef _LINUX_BITOPS_H
17#error only <linux/bitops.h> can be included directly
18#endif
16 19
17#include <linux/compiler.h> /* unlikely */ 20#include <linux/compiler.h> /* unlikely */
18#include <asm/byteorder.h> /* swab32 */ 21#include <asm/byteorder.h> /* swab32 */
diff --git a/include/asm-x86/bitops_32.h b/include/asm-x86/bitops_32.h
index c96641f75022..3268a341cf49 100644
--- a/include/asm-x86/bitops_32.h
+++ b/include/asm-x86/bitops_32.h
@@ -5,6 +5,10 @@
5 * Copyright 1992, Linus Torvalds. 5 * Copyright 1992, Linus Torvalds.
6 */ 6 */
7 7
8#ifndef _LINUX_BITOPS_H
9#error only <linux/bitops.h> can be included directly
10#endif
11
8#include <linux/compiler.h> 12#include <linux/compiler.h>
9#include <asm/alternative.h> 13#include <asm/alternative.h>
10 14
diff --git a/include/asm-x86/bitops_64.h b/include/asm-x86/bitops_64.h
index 525edf2ce5c2..dacaa5f1febc 100644
--- a/include/asm-x86/bitops_64.h
+++ b/include/asm-x86/bitops_64.h
@@ -5,6 +5,10 @@
5 * Copyright 1992, Linus Torvalds. 5 * Copyright 1992, Linus Torvalds.
6 */ 6 */
7 7
8#ifndef _LINUX_BITOPS_H
9#error only <linux/bitops.h> can be included directly
10#endif
11
8#include <asm/alternative.h> 12#include <asm/alternative.h>
9 13
10#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1) 14#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
diff --git a/include/asm-xtensa/bitops.h b/include/asm-xtensa/bitops.h
index 78db04cf6e48..23261e8f2e5a 100644
--- a/include/asm-xtensa/bitops.h
+++ b/include/asm-xtensa/bitops.h
@@ -15,6 +15,10 @@
15 15
16#ifdef __KERNEL__ 16#ifdef __KERNEL__
17 17
18#ifndef _LINUX_BITOPS_H
19#error only <linux/bitops.h> can be included directly
20#endif
21
18#include <asm/processor.h> 22#include <asm/processor.h>
19#include <asm/byteorder.h> 23#include <asm/byteorder.h>
20#include <asm/system.h> 24#include <asm/system.h>