Skip to content

Commit

Permalink
bug.h: add include of it to various implicit C users
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Paul Gortmaker committed Feb 29, 2012
1 parent b116ee4 commit 50af5ea
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-imx/cpu_op-mx51.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* http://www.gnu.org/copyleft/gpl.html
*/

#include <linux/bug.h>
#include <linux/types.h>
#include <mach/hardware.h>
#include <linux/kernel.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-ux500/board-mop500-pins.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/bug.h>

#include <asm/mach-types.h>
#include <plat/pincfg.h>
Expand Down
1 change: 1 addition & 0 deletions arch/mips/fw/arc/cmdline.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*
* Copyright (C) 1996 David S. Miller ([email protected])
*/
#include <linux/bug.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/string.h>
Expand Down
1 change: 1 addition & 0 deletions arch/mips/fw/arc/identify.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
*
* Copyright (C) 1996 David S. Miller ([email protected])
*/
#include <linux/bug.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/types.h>
Expand Down
1 change: 1 addition & 0 deletions arch/parisc/math-emu/fpudispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
#define FPUDEBUG 0

#include "float.h"
#include <linux/bug.h>
#include <linux/kernel.h>
#include <asm/processor.h>
/* #include <sys/debug.h> */
Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/kernel/pmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*/

#include <linux/errno.h>
#include <linux/bug.h>
#include <linux/spinlock.h>
#include <linux/export.h>

Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/xmon/ppc-opc.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#include <linux/stddef.h>
#include <linux/kernel.h>
#include <linux/bug.h>
#include "nonstdio.h"
#include "ppc.h"

Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/xmon/spu-opc.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */

#include <linux/kernel.h>
#include <linux/bug.h>
#include "spu.h"

/* This file holds the Spu opcode table */
Expand Down
1 change: 1 addition & 0 deletions arch/x86/kernel/paravirt.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

#include <asm/bug.h>
#include <asm/paravirt.h>
#include <asm/debugreg.h>
#include <asm/desc.h>
#include <asm/setup.h>
#include <asm/pgtable.h>
Expand Down
1 change: 1 addition & 0 deletions arch/x86/mm/kmemcheck/selftest.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <linux/bug.h>
#include <linux/kernel.h>

#include "opcode.h"
Expand Down
1 change: 1 addition & 0 deletions drivers/gpu/drm/radeon/cayman_blit_shaders.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* Alex Deucher <[email protected]>
*/

#include <linux/bug.h>
#include <linux/types.h>
#include <linux/kernel.h>

Expand Down
1 change: 1 addition & 0 deletions drivers/gpu/drm/radeon/evergreen_blit_shaders.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* Alex Deucher <[email protected]>
*/

#include <linux/bug.h>
#include <linux/types.h>
#include <linux/kernel.h>

Expand Down
1 change: 1 addition & 0 deletions drivers/gpu/drm/radeon/r600_blit_shaders.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* Alex Deucher <[email protected]>
*/

#include <linux/bug.h>
#include <linux/types.h>
#include <linux/kernel.h>

Expand Down
1 change: 1 addition & 0 deletions drivers/staging/wlags49_h2/hcf.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
#include "hcf.h" // HCF and MSF common include file
#include "hcfdef.h" // HCF specific include file
#include "mmd.h" // MoreModularDriver common include file
#include <linux/bug.h>
#include <linux/kernel.h>

#if ! defined offsetof
Expand Down
1 change: 1 addition & 0 deletions lib/atomic64_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* (at your option) any later version.
*/
#include <linux/init.h>
#include <linux/bug.h>
#include <linux/kernel.h>
#include <linux/atomic.h>

Expand Down
1 change: 1 addition & 0 deletions lib/bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <linux/errno.h>
#include <linux/bitmap.h>
#include <linux/bitops.h>
#include <linux/bug.h>
#include <asm/uaccess.h>

/*
Expand Down
1 change: 1 addition & 0 deletions lib/iommu-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <linux/module.h>
#include <linux/bitmap.h>
#include <linux/bug.h>

int iommu_is_span_boundary(unsigned int index, unsigned int nr,
unsigned long shift,
Expand Down
1 change: 1 addition & 0 deletions lib/list_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include <linux/module.h>
#include <linux/list.h>
#include <linux/bug.h>
#include <linux/kernel.h>

/*
Expand Down
1 change: 1 addition & 0 deletions lib/plist.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* information.
*/

#include <linux/bug.h>
#include <linux/plist.h>
#include <linux/spinlock.h>

Expand Down
1 change: 1 addition & 0 deletions lib/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <linux/types.h>
#include <linux/string.h>
#include <linux/ctype.h>
#include <linux/bug.h>
#include <linux/module.h>

#ifndef __HAVE_ARCH_STRNICMP
Expand Down
1 change: 1 addition & 0 deletions lib/timerqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

#include <linux/bug.h>
#include <linux/timerqueue.h>
#include <linux/rbtree.h>
#include <linux/module.h>
Expand Down

0 comments on commit 50af5ea

Please sign in to comment.