Skip to content

Commit

Permalink
[PATCH] remove bogus asm/bug.h includes.
Browse files Browse the repository at this point in the history
A bunch of asm/bug.h includes are both not needed (since it will get
pulled anyway) and bogus (since they are done too early).  Removed.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Feb 8, 2006
1 parent 92118c7 commit 1b86235
Show file tree
Hide file tree
Showing 23 changed files with 0 additions and 24 deletions.
1 change: 0 additions & 1 deletion crypto/scatterwalk.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <linux/mm.h>
#include <linux/pagemap.h>
#include <linux/highmem.h>
#include <asm/bug.h>
#include <asm/scatterlist.h>
#include "internal.h"
#include "scatterwalk.h"
Expand Down
2 changes: 0 additions & 2 deletions drivers/cdrom/viocd.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
#include <linux/proc_fs.h>
#include <linux/seq_file.h>

#include <asm/bug.h>

#include <asm/vio.h>
#include <asm/scatterlist.h>
#include <asm/iseries/hv_types.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/net/hamradio/baycom_par.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
#include <linux/bitops.h>
#include <linux/jiffies.h>

#include <asm/bug.h>
#include <asm/system.h>
#include <asm/uaccess.h>

Expand Down
1 change: 0 additions & 1 deletion drivers/tc/tc.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <linux/types.h>

#include <asm/addrspace.h>
#include <asm/bug.h>
#include <asm/errno.h>
#include <asm/io.h>
#include <asm/paccess.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/backlight/backlight.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <linux/ctype.h>
#include <linux/err.h>
#include <linux/fb.h>
#include <asm/bug.h>

static ssize_t backlight_show_power(struct class_device *cdev, char *buf)
{
Expand Down
1 change: 0 additions & 1 deletion drivers/video/backlight/lcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <linux/ctype.h>
#include <linux/err.h>
#include <linux/fb.h>
#include <asm/bug.h>

static ssize_t lcd_show_power(struct class_device *cdev, char *buf)
{
Expand Down
1 change: 0 additions & 1 deletion drivers/video/pmag-ba-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <linux/module.h>
#include <linux/types.h>

#include <asm/bug.h>
#include <asm/io.h>
#include <asm/system.h>

Expand Down
1 change: 0 additions & 1 deletion drivers/video/pmagb-b-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <linux/module.h>
#include <linux/types.h>

#include <asm/bug.h>
#include <asm/io.h>
#include <asm/system.h>

Expand Down
1 change: 0 additions & 1 deletion fs/reiserfs/hashes.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <linux/kernel.h>
#include <linux/reiserfs_fs.h>
#include <asm/types.h>
#include <asm/bug.h>

#define DELTA 0x9E3779B9
#define FULLROUNDS 10 /* 32 is overkill, 16 is strong crypto */
Expand Down
1 change: 0 additions & 1 deletion include/asm-mips/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <linux/types.h>

#include <asm/addrspace.h>
#include <asm/bug.h>
#include <asm/byteorder.h>
#include <asm/cpu.h>
#include <asm/cpu-features.h>
Expand Down
1 change: 0 additions & 1 deletion include/asm-powerpc/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <linux/mm.h>
#include <asm/scatterlist.h>
#include <asm/io.h>
#include <asm/bug.h>

#define DMA_ERROR_CODE (~(dma_addr_t)0x0)

Expand Down
1 change: 0 additions & 1 deletion include/linux/cpumask.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
#include <linux/kernel.h>
#include <linux/threads.h>
#include <linux/bitmap.h>
#include <asm/bug.h>

typedef struct { DECLARE_BITMAP(bits, NR_CPUS); } cpumask_t;
extern cpumask_t _unused_cpumask_arg_;
Expand Down
1 change: 0 additions & 1 deletion include/linux/dcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <linux/spinlock.h>
#include <linux/cache.h>
#include <linux/rcupdate.h>
#include <asm/bug.h>

struct nameidata;
struct vfsmount;
Expand Down
1 change: 0 additions & 1 deletion include/linux/jbd.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ typedef struct journal_superblock_s

#include <linux/fs.h>
#include <linux/sched.h>
#include <asm/bug.h>

#define JBD_ASSERTIONS
#ifdef JBD_ASSERTIONS
Expand Down
1 change: 0 additions & 1 deletion include/linux/mtd/map.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <asm/unaligned.h>
#include <asm/system.h>
#include <asm/io.h>
#include <asm/bug.h>

#ifdef CONFIG_MTD_MAP_BANK_WIDTH_1
#define map_bankwidth(map) 1
Expand Down
1 change: 0 additions & 1 deletion include/linux/nodemask.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
#include <linux/threads.h>
#include <linux/bitmap.h>
#include <linux/numa.h>
#include <asm/bug.h>

typedef struct { DECLARE_BITMAP(bits, MAX_NUMNODES); } nodemask_t;
extern nodemask_t _unused_nodemask_arg_;
Expand Down
1 change: 0 additions & 1 deletion include/linux/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ extern void cpu_idle(void);
#include <linux/compiler.h>
#include <linux/thread_info.h>
#include <asm/smp.h>
#include <asm/bug.h>

/*
* main cross-CPU interfaces, handles INIT, TLB flush, STOP, etc.
Expand Down
1 change: 0 additions & 1 deletion kernel/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <linux/security.h>

#include <asm/uaccess.h>
#include <asm/bug.h>

int get_compat_timespec(struct timespec *ts, const struct compat_timespec __user *cts)
{
Expand Down
1 change: 0 additions & 1 deletion net/dccp/ccids/lib/tfrc_equation.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <linux/config.h>
#include <linux/module.h>

#include <asm/bug.h>
#include <asm/div64.h>

#include "tfrc.h"
Expand Down
1 change: 0 additions & 1 deletion net/ipv4/xfrm4_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*
*/

#include <asm/bug.h>
#include <linux/compiler.h>
#include <linux/config.h>
#include <linux/inetdevice.h>
Expand Down
1 change: 0 additions & 1 deletion net/ipv6/raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include <linux/skbuff.h>
#include <asm/uaccess.h>
#include <asm/ioctls.h>
#include <asm/bug.h>

#include <net/ip.h>
#include <net/sock.h>
Expand Down
1 change: 0 additions & 1 deletion net/ipv6/xfrm6_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*
*/

#include <asm/bug.h>
#include <linux/compiler.h>
#include <linux/config.h>
#include <linux/netdevice.h>
Expand Down
1 change: 0 additions & 1 deletion net/xfrm/xfrm_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
*
*/

#include <asm/bug.h>
#include <linux/config.h>
#include <linux/slab.h>
#include <linux/kmod.h>
Expand Down

0 comments on commit 1b86235

Please sign in to comment.