BUG: headers with BUG/BUG_ON etc. need linux/bug.h
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 24 Nov 2011 01:12:59 +0000 (20:12 -0500)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 4 Mar 2012 22:54:34 +0000 (17:54 -0500)
If a header file is making use of BUG, BUG_ON, BUILD_BUG_ON, or any
other BUG variant in a static inline (i.e. not in a #define) then
that header really should be including <linux/bug.h> and not just
expecting it to be implicitly present.

We can make this change risk-free, since if the files using these
headers didn't have exposure to linux/bug.h already, they would have
been causing compile failures/warnings.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
64 files changed:
arch/avr32/include/asm/io.h
arch/m68k/include/asm/system.h
arch/sparc/include/asm/vga.h
arch/x86/include/asm/paravirt.h
include/asm-generic/dma-mapping-common.h
include/asm-generic/pgtable.h
include/asm-generic/tlbflush.h
include/drm/ttm/ttm_memory.h
include/linux/atmdev.h
include/linux/bio.h
include/linux/bit_spinlock.h
include/linux/ceph/decode.h
include/linux/ceph/libceph.h
include/linux/ceph/mdsmap.h
include/linux/cpumask.h
include/linux/crypto.h
include/linux/debug_locks.h
include/linux/dmaengine.h
include/linux/elfcore.h
include/linux/ext3_fs.h
include/linux/fs.h
include/linux/fsnotify.h
include/linux/gpio.h
include/linux/highmem.h
include/linux/i2o.h
include/linux/if_vlan.h
include/linux/io-mapping.h
include/linux/kprobes.h
include/linux/kvm_host.h
include/linux/memory_hotplug.h
include/linux/mm.h
include/linux/mtd/cfi.h
include/linux/netdevice.h
include/linux/nilfs2_fs.h
include/linux/page-flags.h
include/linux/pid_namespace.h
include/linux/posix_acl.h
include/linux/ptrace.h
include/linux/radix-tree.h
include/linux/rcupdate.h
include/linux/regset.h
include/linux/reiserfs_fs.h
include/linux/relay.h
include/linux/scatterlist.h
include/linux/seq_file.h
include/linux/skbuff.h
include/linux/slub_def.h
include/linux/ssb/ssb_driver_gige.h
include/linux/swapops.h
include/linux/syscalls.h
include/linux/transport_class.h
include/linux/virtio_config.h
include/net/cfg80211.h
include/net/dst.h
include/net/ip_vs.h
include/net/mac80211.h
include/net/netns/generic.h
include/net/red.h
include/net/tcp.h
include/net/timewait_sock.h
include/net/udp.h
include/net/wpan-phy.h
include/scsi/osd_ore.h
include/scsi/scsi_transport.h

index 22c97ef92201bff82b5a7bc7a6fe139147c014a4..cf60d0a9f1767ca8d8ba8e3e810526539022313f 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __ASM_AVR32_IO_H
 #define __ASM_AVR32_IO_H
 
+#include <linux/bug.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <linux/types.h>
index 47b01f4726bc76d3afd834f9eb840de64c68998c..8dc68178716c320d4ad41a09728a8ed523f880e0 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <linux/linkage.h>
 #include <linux/kernel.h>
+#include <linux/bug.h>
 #include <linux/irqflags.h>
 #include <asm/segment.h>
 #include <asm/entry.h>
index c69d5b2ba19a488ea3abf8a75c25383edd13d562..ec0e9967d93d5904eeb9b9c1ab10a1794321c810 100644 (file)
@@ -7,6 +7,7 @@
 #ifndef _LINUX_ASM_VGA_H_
 #define _LINUX_ASM_VGA_H_
 
+#include <linux/bug.h>
 #include <asm/types.h>
 
 #define VT_BUF_HAVE_RW
index a7d2db9a74fbc835dd7ed41ca2f7b5754b0263fe..923b07024a03faf13640925261a277e607523436 100644 (file)
@@ -10,6 +10,7 @@
 #include <asm/paravirt_types.h>
 
 #ifndef __ASSEMBLY__
+#include <linux/bug.h>
 #include <linux/types.h>
 #include <linux/cpumask.h>
 
index 9fa3f96e38cf291a298232e6051c6af651a205c0..2e248d8924dc34c38fa0ed91fdaa619060c9a603 100644 (file)
@@ -2,6 +2,7 @@
 #define _ASM_GENERIC_DMA_MAPPING_H
 
 #include <linux/kmemcheck.h>
+#include <linux/bug.h>
 #include <linux/scatterlist.h>
 #include <linux/dma-debug.h>
 #include <linux/dma-attrs.h>
index 76bff2bff15e346532be60dc1ce1a13aff070471..236b1056839f4088c658f1e65fc4dffc929412ad 100644 (file)
@@ -5,6 +5,7 @@
 #ifdef CONFIG_MMU
 
 #include <linux/mm_types.h>
+#include <linux/bug.h>
 
 #ifndef __HAVE_ARCH_PTEP_SET_ACCESS_FLAGS
 extern int ptep_set_access_flags(struct vm_area_struct *vma,
index c7af037024c787bb1c02c95ee6b7f2a2200cc1d7..d6d0a88430fed492e0aed40d5d802d8295165603 100644 (file)
@@ -9,6 +9,8 @@
 #error need to implement an architecture specific asm/tlbflush.h
 #endif
 
+#include <linux/bug.h>
+
 static inline void flush_tlb_mm(struct mm_struct *mm)
 {
        BUG();
index 26c1f78d136f49ca375035f65139da7328c51552..d6d1da468c9729404b17fc324dec192266da1417 100644 (file)
@@ -30,6 +30,7 @@
 
 #include <linux/workqueue.h>
 #include <linux/spinlock.h>
+#include <linux/bug.h>
 #include <linux/wait.h>
 #include <linux/errno.h>
 #include <linux/kobject.h>
index f4ff882cb2daa864d5e0e0c318783229ebf5d9f5..42c471afc52af8be4b5af53e202eeca07274f186 100644 (file)
@@ -217,6 +217,7 @@ struct atm_cirange {
 #include <linux/wait.h> /* wait_queue_head_t */
 #include <linux/time.h> /* struct timeval */
 #include <linux/net.h>
+#include <linux/bug.h>
 #include <linux/skbuff.h> /* struct sk_buff */
 #include <linux/uio.h>
 #include <net/sock.h>
index 129a9c097958f098827abe2243ab6fe1c033ca95..f54db088f3353c6b7cde41ea3978a7c74e5f3cfe 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/highmem.h>
 #include <linux/mempool.h>
 #include <linux/ioprio.h>
+#include <linux/bug.h>
 
 #ifdef CONFIG_BLOCK
 
index ac4d9f8b52e9f7c23e7f8e2d8093e896ec451768..3b5bafce433763a4e7c6bb0302fa373dec7364fb 100644 (file)
@@ -4,6 +4,7 @@
 #include <linux/kernel.h>
 #include <linux/preempt.h>
 #include <linux/atomic.h>
+#include <linux/bug.h>
 
 /*
  *  bit-based spin_lock()
index c5b6939fb32af578501a280f73f2aa7b4276ac37..220ae21e819b1fb2623d19d8cf4f619862f11c42 100644 (file)
@@ -1,8 +1,9 @@
 #ifndef __CEPH_DECODE_H
 #define __CEPH_DECODE_H
 
-#include <asm/unaligned.h>
+#include <linux/bug.h>
 #include <linux/time.h>
+#include <asm/unaligned.h>
 
 #include "types.h"
 
index 95bd8502e715e48f8222345e1274761fee030662..e8cf0ccd1a8dd180c0a21c8dca40c139bbf041b6 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/backing-dev.h>
 #include <linux/completion.h>
 #include <linux/exportfs.h>
+#include <linux/bug.h>
 #include <linux/fs.h>
 #include <linux/mempool.h>
 #include <linux/pagemap.h>
index 4c5cb0880bba099d6bf4cdbb51d1f1bd8cbcb01c..9935fac8c1078f0ca061a46d1d30e73185f6272f 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _FS_CEPH_MDSMAP_H
 #define _FS_CEPH_MDSMAP_H
 
+#include <linux/bug.h>
 #include "types.h"
 
 /*
index 4f7a632374713c73fe096bb81f0f9daf122571c9..7b9b75a529be04fef475c57b30bf351e19695e7b 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/kernel.h>
 #include <linux/threads.h>
 #include <linux/bitmap.h>
+#include <linux/bug.h>
 
 typedef struct cpumask { DECLARE_BITMAP(bits, NR_CPUS); } cpumask_t;
 
index 8a94217b298ed0ec3bdbcccc63fc2ac64b5d8c28..d870bae81df12b7fd955c826667297f6b56bb7f7 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/atomic.h>
 #include <linux/kernel.h>
 #include <linux/list.h>
+#include <linux/bug.h>
 #include <linux/slab.h>
 #include <linux/string.h>
 #include <linux/uaccess.h>
index 5033fb88c107f6ec5189cea9b642a3d00eb1e93a..94f20c1488a19cff3b21e9da5e58d3114c23ffcf 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <linux/kernel.h>
 #include <linux/atomic.h>
+#include <linux/bug.h>
 #include <asm/system.h>
 
 struct task_struct;
index 679b349d9b66695f65bb3597b2a530e3e9709600..a5966f691ef836954ae1bbee69697c81e98590bd 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <linux/device.h>
 #include <linux/uio.h>
+#include <linux/bug.h>
 #include <linux/scatterlist.h>
 #include <linux/bitmap.h>
 #include <asm/page.h>
index 394a3e0e4a6be1f566d5346dd586cf7fd06ba19d..0698c79fbcb2c19453d73e15ad4d903e8b610cc3 100644 (file)
@@ -6,6 +6,7 @@
 #include <linux/time.h>
 #ifdef __KERNEL__
 #include <linux/user.h>
+#include <linux/bug.h>
 #endif
 #include <linux/ptrace.h>
 #include <linux/elf.h>
index f957085d40ed33a0bfacf002543d477aa6cc9d4c..f5a84eef6ed22a121fae3e373c827e7b645095a0 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <linux/types.h>
 #include <linux/magic.h>
+#include <linux/bug.h>
 
 /*
  * The second extended filesystem constants/structures
index 69cd5bb640f5f6f0e4dd13431c34c6f8c760f42b..abc92db51e54917be47bf86f328bdc479b32609d 100644 (file)
@@ -389,6 +389,7 @@ struct inodes_stat_t {
 #include <linux/prio_tree.h>
 #include <linux/init.h>
 #include <linux/pid.h>
+#include <linux/bug.h>
 #include <linux/mutex.h>
 #include <linux/capability.h>
 #include <linux/semaphore.h>
index 2a53f10712b36097b648e4a61cb6323e5a42de84..a6dfe6944564018d070529e5e42642b8aca31de4 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/fsnotify_backend.h>
 #include <linux/audit.h>
 #include <linux/slab.h>
+#include <linux/bug.h>
 
 /*
  * fsnotify_d_instantiate - instantiate a dentry for inode
index 38ac48b7d3a8db90bf0ff7630df25c2d8880ecb9..ed5a46707ad0d0cd229e36920aa510b4d79fb279 100644 (file)
@@ -34,6 +34,7 @@ struct gpio {
 #include <linux/kernel.h>
 #include <linux/types.h>
 #include <linux/errno.h>
+#include <linux/bug.h>
 
 struct device;
 struct gpio_chip;
index 3a93f73a8acc8001bb69d6fcf2f0cd871030aeaa..6ede661e5b8ebc201983bcc90ea53c2f4d71ffb6 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <linux/fs.h>
 #include <linux/kernel.h>
+#include <linux/bug.h>
 #include <linux/mm.h>
 #include <linux/uaccess.h>
 #include <linux/hardirq.h>
index a6deef4f4f67abd63f39d5b8ab96fdf91e9f98c8..d23c3c20b2014e665ba4754b8168018e4b7862cc 100644 (file)
@@ -24,6 +24,7 @@
 #define I2O_MAX_DRIVERS                8
 
 #include <linux/pci.h>
+#include <linux/bug.h>
 #include <linux/dma-mapping.h>
 #include <linux/string.h>
 #include <linux/slab.h>
index 13aff1e2183baeb7b2493b6d50cc75184d908ef1..82097f39df108e69a9a8bbef0b475447a3ebc060 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
 #include <linux/rtnetlink.h>
+#include <linux/bug.h>
 
 #define VLAN_HLEN      4               /* The additional bytes (on top of the Ethernet header)
                                         * that VLAN requires.
index e44e84f0156c06a8ba512b11aa38081ef323f703..657fab4efab351070a9aaf7a625759159a786580 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <linux/types.h>
 #include <linux/slab.h>
+#include <linux/bug.h>
 #include <asm/io.h>
 #include <asm/page.h>
 
index dce6e4dbeda7639bc87eca49e9102a41c0f01c89..b6e1f8c00577151bf937a1f2dc5807b53decf64b 100644 (file)
@@ -33,6 +33,7 @@
 #include <linux/list.h>
 #include <linux/notifier.h>
 #include <linux/smp.h>
+#include <linux/bug.h>
 #include <linux/percpu.h>
 #include <linux/spinlock.h>
 #include <linux/rcupdate.h>
index 900c76337e8f387b1dcf183260e43c1625536500..ca1b153585d3e6e2196f5d5c147d965c6bd84f14 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/spinlock.h>
 #include <linux/signal.h>
 #include <linux/sched.h>
+#include <linux/bug.h>
 #include <linux/mm.h>
 #include <linux/mmu_notifier.h>
 #include <linux/preempt.h>
index 0b8e2a742600eb92cb874c6056dac76177dc7c30..910550f3b70e485a58d07f542b610f15d88e5d44 100644 (file)
@@ -4,6 +4,7 @@
 #include <linux/mmzone.h>
 #include <linux/spinlock.h>
 #include <linux/notifier.h>
+#include <linux/bug.h>
 
 struct page;
 struct zone;
index 17b27cd269c404e117416e468ca9853dd94d141b..b7fac5b6acb6eed11f24a09e18a79e9ae5b08099 100644 (file)
@@ -6,6 +6,7 @@
 #ifdef __KERNEL__
 
 #include <linux/gfp.h>
+#include <linux/bug.h>
 #include <linux/list.h>
 #include <linux/mmzone.h>
 #include <linux/rbtree.h>
index d5d2ec6494bbefc3c662352d57a7fe794955ab36..37ef6b19408966438d24b39a8e80f0d55a578ecc 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <linux/delay.h>
 #include <linux/types.h>
+#include <linux/bug.h>
 #include <linux/interrupt.h>
 #include <linux/mtd/flashchip.h>
 #include <linux/mtd/map.h>
index 0eac07c95255a7cb00f2e39667f3945e1b718f3f..5820638193f548f0aa6772bc881b14d0f29e5575 100644 (file)
@@ -33,6 +33,7 @@
 #ifdef __KERNEL__
 #include <linux/pm_qos.h>
 #include <linux/timer.h>
+#include <linux/bug.h>
 #include <linux/delay.h>
 #include <linux/atomic.h>
 #include <asm/cache.h>
index 7454ad7451b49f1d9423254f8e877dda51ea4f4c..89bd4a4dcfb44e379176a11e5fe6d9516025ecaf 100644 (file)
@@ -41,6 +41,7 @@
 #include <linux/types.h>
 #include <linux/ioctl.h>
 #include <linux/magic.h>
+#include <linux/bug.h>
 
 
 #define NILFS_INODE_BMAP_SIZE  7
index e90a673be67e1eebb4c98ba30c198ede805dcb82..3cfa3ad94b1f0b6c4673c13dc851b0185844c272 100644 (file)
@@ -6,6 +6,7 @@
 #define PAGE_FLAGS_H
 
 #include <linux/types.h>
+#include <linux/bug.h>
 #ifndef __GENERATING_BOUNDS_H
 #include <linux/mm_types.h>
 #include <generated/bounds.h>
index e7cf6669ac3482e606c04e90470af6a37d4adcf4..f5bd679be46b50a93903b768754b7a363507c767 100644 (file)
@@ -2,6 +2,7 @@
 #define _LINUX_PID_NS_H
 
 #include <linux/sched.h>
+#include <linux/bug.h>
 #include <linux/mm.h>
 #include <linux/threads.h>
 #include <linux/nsproxy.h>
index b7681102a4b9a306409d261f04db33b482378e4c..11bad91c443391d82521cfa1a48153d81e0a7034 100644 (file)
@@ -8,6 +8,7 @@
 #ifndef __LINUX_POSIX_ACL_H
 #define __LINUX_POSIX_ACL_H
 
+#include <linux/bug.h>
 #include <linux/slab.h>
 #include <linux/rcupdate.h>
 
index c2f1f6a5fcb8a67f52c90c8397c7384534d3010a..753ee8b6233556f78e7696d9dea0d653ee20098b 100644 (file)
 #include <linux/compiler.h>            /* For unlikely.  */
 #include <linux/sched.h>               /* For struct task_struct.  */
 #include <linux/err.h>                 /* for IS_ERR_VALUE */
+#include <linux/bug.h>                 /* For BUG_ON.  */
 
 
 extern long arch_ptrace(struct task_struct *child, long request,
index 07e360b1b282b61b92c08fad6ebba553bc0bcb4d..e9a48234e69396650a7169ec0ba65e5f73e492ec 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <linux/preempt.h>
 #include <linux/types.h>
+#include <linux/bug.h>
 #include <linux/kernel.h>
 #include <linux/rcupdate.h>
 
index 81c04f4348ecac0afe5b8b073d90f6f14c822599..3b657f2bed4ad0379932cd0a2e49a487c9925058 100644 (file)
@@ -42,6 +42,7 @@
 #include <linux/lockdep.h>
 #include <linux/completion.h>
 #include <linux/debugobjects.h>
+#include <linux/bug.h>
 #include <linux/compiler.h>
 
 #ifdef CONFIG_RCU_TORTURE_TEST
index 8abee65562230fe05174d2ded6bc8ec50249348b..6325e099105a3a7641aaea2478030f1e3ab4862d 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <linux/compiler.h>
 #include <linux/types.h>
+#include <linux/bug.h>
 #include <linux/uaccess.h>
 struct task_struct;
 struct user_regset;
index 2213ddcce20cb50c535283e5fa9528885665c7d0..6643fb0312937ef8efada84deea7732a4aa1f2e5 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/slab.h>
 #include <linux/interrupt.h>
 #include <linux/sched.h>
+#include <linux/bug.h>
 #include <linux/workqueue.h>
 #include <asm/unaligned.h>
 #include <linux/bitops.h>
index a822fd71fd64efcceec896709dbe7b86c500ced0..91cacc34c159192ab5a7fa712982ea5a8d268b59 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/timer.h>
 #include <linux/wait.h>
 #include <linux/list.h>
+#include <linux/bug.h>
 #include <linux/fs.h>
 #include <linux/poll.h>
 #include <linux/kref.h>
index 9aaf5bfdad1afcb5e85b39482ea0458a0ea6b83c..ac9586dadfa58bdbade8fbb8391ea023d6d491aa 100644 (file)
@@ -1,10 +1,12 @@
 #ifndef _LINUX_SCATTERLIST_H
 #define _LINUX_SCATTERLIST_H
 
+#include <linux/string.h>
+#include <linux/bug.h>
+#include <linux/mm.h>
+
 #include <asm/types.h>
 #include <asm/scatterlist.h>
-#include <linux/mm.h>
-#include <linux/string.h>
 #include <asm/io.h>
 
 struct sg_table {
index 44f1514b00bad206310e813ee24223a38aa8cfa0..5ff2df6c8217b282f09379601845b2f51484defa 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <linux/types.h>
 #include <linux/string.h>
+#include <linux/bug.h>
 #include <linux/mutex.h>
 #include <linux/cpumask.h>
 #include <linux/nodemask.h>
index 50db9b04a552d5ecca29af92ffa794f80e73483a..773ae985ec76210eda8711fd114d34457b517b17 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/kmemcheck.h>
 #include <linux/compiler.h>
 #include <linux/time.h>
+#include <linux/bug.h>
 #include <linux/cache.h>
 
 #include <linux/atomic.h>
index a32bcfdc783499d1f44f30f01b53468f75be8d56..ca122b36aec1220b2cf7762704306cb99c6ae635 100644 (file)
@@ -8,6 +8,7 @@
  */
 #include <linux/types.h>
 #include <linux/gfp.h>
+#include <linux/bug.h>
 #include <linux/workqueue.h>
 #include <linux/kobject.h>
 
index eba52a100533349461c1965f996074c187eaab08..6b05dcd927ff564dba51d6f4b4e7bc19fb1cb366 100644 (file)
@@ -2,6 +2,7 @@
 #define LINUX_SSB_DRIVER_GIGE_H_
 
 #include <linux/ssb/ssb.h>
+#include <linux/bug.h>
 #include <linux/pci.h>
 #include <linux/spinlock.h>
 
index 2189d3ffc85dc1adf60a775023077e8b9f395ada..792d16d9cbc74ff903c9d89e21726e1b5e3f54f7 100644 (file)
@@ -2,6 +2,7 @@
 #define _LINUX_SWAPOPS_H
 
 #include <linux/radix-tree.h>
+#include <linux/bug.h>
 
 /*
  * swapcache pages are stored in the swapper_space radix tree.  We want to
index 8ec1153ff57b9c3c4d4b6c7360fd01bbdaebbc2c..3de3acb84a952ead111b90391756873efc15ebcb 100644 (file)
@@ -68,6 +68,7 @@ struct file_handle;
 #include <linux/aio_abi.h>
 #include <linux/capability.h>
 #include <linux/list.h>
+#include <linux/bug.h>
 #include <linux/sem.h>
 #include <asm/siginfo.h>
 #include <asm/signal.h>
index 9ae8da3e6407bf5c71bff5c26a337d2e59411e30..11087cdd4ad3e2856659d13a00117bd909c07711 100644 (file)
@@ -10,6 +10,7 @@
 #define _TRANSPORT_CLASS_H_
 
 #include <linux/device.h>
+#include <linux/bug.h>
 #include <linux/attribute_container.h>
 
 struct transport_container;
index 5206d6541da5726bde95c96e2ab8fa4e63be2ceb..7323a33902069b276885884eca614a9d0a0aeb17 100644 (file)
@@ -53,6 +53,7 @@
 
 #ifdef __KERNEL__
 #include <linux/err.h>
+#include <linux/bug.h>
 #include <linux/virtio.h>
 
 /**
index a067d30ce73e88fa86dce220e3f2002cac5be878..85b44ca54ac68c5dacfba5d0a42ed765a40efff9 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/netdevice.h>
 #include <linux/debugfs.h>
 #include <linux/list.h>
+#include <linux/bug.h>
 #include <linux/netlink.h>
 #include <linux/skbuff.h>
 #include <linux/nl80211.h>
index 344c8dd028745857bdbe43efd85f386c0a64eade..59c5d18cc3857da85690627b085e1065eeeb78ad 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/netdevice.h>
 #include <linux/rtnetlink.h>
 #include <linux/rcupdate.h>
+#include <linux/bug.h>
 #include <linux/jiffies.h>
 #include <net/neighbour.h>
 #include <asm/processor.h>
index ebe517f2da9fb31a7e26322d69944480d51a6b31..2bdee51ba30d29f1ccd296fdbdcd06a709a5b4c4 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/atomic.h>                 /* for struct atomic_t */
 #include <linux/compiler.h>
 #include <linux/timer.h>
+#include <linux/bug.h>
 
 #include <net/checksum.h>
 #include <linux/netfilter.h>           /* for union nf_inet_addr */
index d49928ba5d09fa379fd5db91ea173cfe08d57475..8294f44c425ab0a4c666dd6eff89f32b158025cf 100644 (file)
@@ -13,6 +13,7 @@
 #ifndef MAC80211_H
 #define MAC80211_H
 
+#include <linux/bug.h>
 #include <linux/kernel.h>
 #include <linux/if_ether.h>
 #include <linux/skbuff.h>
index d55f4344333514f43f26d4da76d53574b6a9bd48..0931618c0f7ff6d41f72db1103b2aa0dc474e21f 100644 (file)
@@ -5,6 +5,7 @@
 #ifndef __NET_GENERIC_H__
 #define __NET_GENERIC_H__
 
+#include <linux/bug.h>
 #include <linux/rcupdate.h>
 
 /*
index 28068ec614b24da11b9cb3e9a390abb7aea5f47a..77d4c3745cb5be169f87507a34349cd853e8da10 100644 (file)
@@ -2,6 +2,7 @@
 #define __NET_SCHED_RED_H
 
 #include <linux/types.h>
+#include <linux/bug.h>
 #include <net/pkt_sched.h>
 #include <net/inet_ecn.h>
 #include <net/dsfield.h>
index 42c29bfbcee34d8d6ada5d18533850d82973f352..ad8d0a865551845f8781fb21b74ce7a175d73f75 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <linux/list.h>
 #include <linux/tcp.h>
+#include <linux/bug.h>
 #include <linux/slab.h>
 #include <linux/cache.h>
 #include <linux/percpu.h>
index 053b3cf2c66a05b510b597070152ba26942cd35d..8d6689cb2c6606821f4a6e0fcd8c2b07358fc561 100644 (file)
@@ -12,6 +12,7 @@
 #define _TIMEWAIT_SOCK_H
 
 #include <linux/slab.h>
+#include <linux/bug.h>
 #include <net/sock.h>
 
 struct timewait_sock_ops {
index e39592f682c3fb55c42ea2f04d027bdbbde78fc5..5d606d9da9e56b30927e29228046742b23ed8d8b 100644 (file)
@@ -23,6 +23,7 @@
 #define _UDP_H
 
 #include <linux/list.h>
+#include <linux/bug.h>
 #include <net/inet_sock.h>
 #include <net/sock.h>
 #include <net/snmp.h>
index d86fffd3c03cc768189a67e775042173b508d05e..ff27f1b078d119173bd86b663df5fe770b4da7c7 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <linux/netdevice.h>
 #include <linux/mutex.h>
+#include <linux/bug.h>
 
 struct wpan_phy {
        struct mutex pib_lock;
index f05fa826f89ec4664099a05d92a4ae6abbea6b62..a5f9b960dfc8f0ca329c1fc510956f379e817fdd 100644 (file)
@@ -26,6 +26,7 @@
 #include <scsi/osd_attributes.h>
 #include <scsi/osd_sec.h>
 #include <linux/pnfs_osd_xdr.h>
+#include <linux/bug.h>
 
 struct ore_comp {
        struct osd_obj_id       obj;
index 0de32cd4e8a7c21d3a931c8d81381577b9853bb4..af244f4bba53cdfd4447535a14255c8f81e117ad 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <linux/transport_class.h>
 #include <linux/blkdev.h>
+#include <linux/bug.h>
 #include <scsi/scsi_host.h>
 #include <scsi/scsi_device.h>