Преглед изворни кода

bug.h: add include of it to various implicit C users

With bug.h currently living right in linux/kernel.h there
are files that use BUG_ON and friends but are not including
the header explicitly.  Fix them up so we can remove the
presence in kernel.h file.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Paul Gortmaker пре 13 година
родитељ
комит
50af5ead3b

+ 1 - 0
arch/arm/mach-imx/cpu_op-mx51.c

@@ -11,6 +11,7 @@
  * http://www.gnu.org/copyleft/gpl.html
  * http://www.gnu.org/copyleft/gpl.html
  */
  */
 
 
+#include <linux/bug.h>
 #include <linux/types.h>
 #include <linux/types.h>
 #include <mach/hardware.h>
 #include <mach/hardware.h>
 #include <linux/kernel.h>
 #include <linux/kernel.h>

+ 1 - 0
arch/arm/mach-ux500/board-mop500-pins.c

@@ -6,6 +6,7 @@
 
 
 #include <linux/kernel.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/init.h>
+#include <linux/bug.h>
 
 
 #include <asm/mach-types.h>
 #include <asm/mach-types.h>
 #include <plat/pincfg.h>
 #include <plat/pincfg.h>

+ 1 - 0
arch/mips/fw/arc/cmdline.c

@@ -7,6 +7,7 @@
  *
  *
  * Copyright (C) 1996 David S. Miller (davem@davemloft.net)
  * Copyright (C) 1996 David S. Miller (davem@davemloft.net)
  */
  */
+#include <linux/bug.h>
 #include <linux/init.h>
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <linux/string.h>

+ 1 - 0
arch/mips/fw/arc/identify.c

@@ -11,6 +11,7 @@
  *
  *
  * Copyright (C) 1996 David S. Miller (davem@davemloft.net)
  * Copyright (C) 1996 David S. Miller (davem@davemloft.net)
  */
  */
+#include <linux/bug.h>
 #include <linux/init.h>
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
 #include <linux/types.h>

+ 1 - 0
arch/parisc/math-emu/fpudispatch.c

@@ -50,6 +50,7 @@
 #define FPUDEBUG 0
 #define FPUDEBUG 0
 
 
 #include "float.h"
 #include "float.h"
+#include <linux/bug.h>
 #include <linux/kernel.h>
 #include <linux/kernel.h>
 #include <asm/processor.h>
 #include <asm/processor.h>
 /* #include <sys/debug.h> */
 /* #include <sys/debug.h> */

+ 1 - 0
arch/powerpc/kernel/pmc.c

@@ -13,6 +13,7 @@
  */
  */
 
 
 #include <linux/errno.h>
 #include <linux/errno.h>
+#include <linux/bug.h>
 #include <linux/spinlock.h>
 #include <linux/spinlock.h>
 #include <linux/export.h>
 #include <linux/export.h>
 
 

+ 1 - 0
arch/powerpc/xmon/ppc-opc.c

@@ -22,6 +22,7 @@
 
 
 #include <linux/stddef.h>
 #include <linux/stddef.h>
 #include <linux/kernel.h>
 #include <linux/kernel.h>
+#include <linux/bug.h>
 #include "nonstdio.h"
 #include "nonstdio.h"
 #include "ppc.h"
 #include "ppc.h"
 
 

+ 1 - 0
arch/powerpc/xmon/spu-opc.c

@@ -19,6 +19,7 @@
    51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
    51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
 
 
 #include <linux/kernel.h>
 #include <linux/kernel.h>
+#include <linux/bug.h>
 #include "spu.h"
 #include "spu.h"
 
 
 /* This file holds the Spu opcode table */
 /* This file holds the Spu opcode table */

+ 1 - 0
arch/x86/kernel/paravirt.c

@@ -26,6 +26,7 @@
 
 
 #include <asm/bug.h>
 #include <asm/bug.h>
 #include <asm/paravirt.h>
 #include <asm/paravirt.h>
+#include <asm/debugreg.h>
 #include <asm/desc.h>
 #include <asm/desc.h>
 #include <asm/setup.h>
 #include <asm/setup.h>
 #include <asm/pgtable.h>
 #include <asm/pgtable.h>

+ 1 - 0
arch/x86/mm/kmemcheck/selftest.c

@@ -1,3 +1,4 @@
+#include <linux/bug.h>
 #include <linux/kernel.h>
 #include <linux/kernel.h>
 
 
 #include "opcode.h"
 #include "opcode.h"

+ 1 - 0
drivers/gpu/drm/radeon/cayman_blit_shaders.c

@@ -24,6 +24,7 @@
  *     Alex Deucher <alexander.deucher@amd.com>
  *     Alex Deucher <alexander.deucher@amd.com>
  */
  */
 
 
+#include <linux/bug.h>
 #include <linux/types.h>
 #include <linux/types.h>
 #include <linux/kernel.h>
 #include <linux/kernel.h>
 
 

+ 1 - 0
drivers/gpu/drm/radeon/evergreen_blit_shaders.c

@@ -24,6 +24,7 @@
  *     Alex Deucher <alexander.deucher@amd.com>
  *     Alex Deucher <alexander.deucher@amd.com>
  */
  */
 
 
+#include <linux/bug.h>
 #include <linux/types.h>
 #include <linux/types.h>
 #include <linux/kernel.h>
 #include <linux/kernel.h>
 
 

+ 1 - 0
drivers/gpu/drm/radeon/r600_blit_shaders.c

@@ -24,6 +24,7 @@
  *     Alex Deucher <alexander.deucher@amd.com>
  *     Alex Deucher <alexander.deucher@amd.com>
  */
  */
 
 
+#include <linux/bug.h>
 #include <linux/types.h>
 #include <linux/types.h>
 #include <linux/kernel.h>
 #include <linux/kernel.h>
 
 

+ 1 - 0
drivers/staging/wlags49_h2/hcf.c

@@ -91,6 +91,7 @@
 #include "hcf.h"                // HCF and MSF common include file
 #include "hcf.h"                // HCF and MSF common include file
 #include "hcfdef.h"             // HCF specific include file
 #include "hcfdef.h"             // HCF specific include file
 #include "mmd.h"                // MoreModularDriver common include file
 #include "mmd.h"                // MoreModularDriver common include file
+#include <linux/bug.h>
 #include <linux/kernel.h>
 #include <linux/kernel.h>
 
 
 #if ! defined offsetof
 #if ! defined offsetof

+ 1 - 0
lib/atomic64_test.c

@@ -9,6 +9,7 @@
  * (at your option) any later version.
  * (at your option) any later version.
  */
  */
 #include <linux/init.h>
 #include <linux/init.h>
+#include <linux/bug.h>
 #include <linux/kernel.h>
 #include <linux/kernel.h>
 #include <linux/atomic.h>
 #include <linux/atomic.h>
 
 

+ 1 - 0
lib/bitmap.c

@@ -10,6 +10,7 @@
 #include <linux/errno.h>
 #include <linux/errno.h>
 #include <linux/bitmap.h>
 #include <linux/bitmap.h>
 #include <linux/bitops.h>
 #include <linux/bitops.h>
+#include <linux/bug.h>
 #include <asm/uaccess.h>
 #include <asm/uaccess.h>
 
 
 /*
 /*

+ 1 - 0
lib/iommu-helper.c

@@ -4,6 +4,7 @@
 
 
 #include <linux/module.h>
 #include <linux/module.h>
 #include <linux/bitmap.h>
 #include <linux/bitmap.h>
+#include <linux/bug.h>
 
 
 int iommu_is_span_boundary(unsigned int index, unsigned int nr,
 int iommu_is_span_boundary(unsigned int index, unsigned int nr,
 			   unsigned long shift,
 			   unsigned long shift,

+ 1 - 0
lib/list_debug.c

@@ -8,6 +8,7 @@
 
 
 #include <linux/module.h>
 #include <linux/module.h>
 #include <linux/list.h>
 #include <linux/list.h>
+#include <linux/bug.h>
 #include <linux/kernel.h>
 #include <linux/kernel.h>
 
 
 /*
 /*

+ 1 - 0
lib/plist.c

@@ -23,6 +23,7 @@
  * information.
  * information.
  */
  */
 
 
+#include <linux/bug.h>
 #include <linux/plist.h>
 #include <linux/plist.h>
 #include <linux/spinlock.h>
 #include <linux/spinlock.h>
 
 

+ 1 - 0
lib/string.c

@@ -22,6 +22,7 @@
 #include <linux/types.h>
 #include <linux/types.h>
 #include <linux/string.h>
 #include <linux/string.h>
 #include <linux/ctype.h>
 #include <linux/ctype.h>
+#include <linux/bug.h>
 #include <linux/module.h>
 #include <linux/module.h>
 
 
 #ifndef __HAVE_ARCH_STRNICMP
 #ifndef __HAVE_ARCH_STRNICMP

+ 1 - 0
lib/timerqueue.c

@@ -22,6 +22,7 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
  */
 
 
+#include <linux/bug.h>
 #include <linux/timerqueue.h>
 #include <linux/timerqueue.h>
 #include <linux/rbtree.h>
 #include <linux/rbtree.h>
 #include <linux/module.h>
 #include <linux/module.h>