Skip to contentSkip to conversation

btrfs: fixup module.h usage as required

PATCH In review Paul Gortmaker 2 participants 2 messages Feb 27, 2012 – Mar 15, 2012 Btrfs file system

lore
Share & tools
lore
#0 lore raw

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

Delete the instances of module.h that aren't actually used or needed. Replace with export.h as required.

---
[This is 100% independent of any cleanups I'm working on, so it
can go in via the btrfs tree seamlessly.]

fs/btrfs/extent_io.c +0 -1
index a55fbe6..9452204 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 7c97b33..711c877 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 12f5147..273dea8 100644
@@ -5,7 +5,7 @@
  */
 
 #include <linux/slab.h>
-#include <linux/module.h>
+#include <linux/export.h>
 #include "ulist.h"
 
 /*
Signature · 1 line
1.7.9.1
#1 lore raw
Quoted 2 lines · Paul Gortmaker

Delete the instances of module.h that aren't actually used or needed. Replace with export.h as required.

I'm using this patch without problem since you published it (compressed /home with hourly snapshot delete/creation).

Thanks a lot for your work,
Andrea