Skip to contentSkip to conversation

btrfs: fixup/remove module.h usage as required

PATCH New Paul Gortmaker 1 participant 1 message Feb 14, 2013 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs: fixup/remove module.h usage as required

We want to avoid module.h where posible, since it in turn includes nearly all of header space. This means removing it where it is not required, and using export.h where we are only exporting symbols via EXPORT_SYMBOL and friends.

---

[build tested on x86-64 and ppc on today's raid56-experimental branch]

 fs/btrfs/extent_io.c  | 1 -
 fs/btrfs/extent_map.c | 1 -
 fs/btrfs/sysfs.c      | 1 -
 fs/btrfs/ulist.c      | 2 +-
 4 files changed, 1 insertion(+), 4 deletions(-)
fs/btrfs/extent_io.c +0 -1
index 907ed00..4c36420 100644
@@ -4,7 +4,6 @@
 #include <linux/mm.h>
 #include <linux/pagemap.h>
 #include <linux/page-flags.h>
-#include <linux/module.h>
 #include <linux/spinlock.h>
 #include <linux/blkdev.h>
 #include <linux/swap.h>
fs/btrfs/extent_map.c +0 -1
index ed88f5e..a84ae95 100644
@@ -1,6 +1,5 @@
 #include <linux/err.h>
 #include <linux/slab.h>
-#include <linux/module.h>
 #include <linux/spinlock.h>
 #include <linux/hardirq.h>
 #include "ctree.h"
fs/btrfs/sysfs.c +0 -1
index daac9ae..5b326cd 100644
@@ -21,7 +21,6 @@
 #include <linux/spinlock.h>
 #include <linux/completion.h>
 #include <linux/buffer_head.h>
-#include <linux/module.h>
 #include <linux/kobject.h>
 
 #include "ctree.h"
fs/btrfs/ulist.c +1 -1
index 99be4c1..ddc61ca 100644
@@ -5,7 +5,7 @@
  */
 
 #include <linux/slab.h>
-#include <linux/module.h>
+#include <linux/export.h>
 #include "ulist.h"
 
 /*
Signature · 1 line
1.8.1.2