Skip to content

Commit

Permalink
md: Add in export.h for files using EXPORT_SYMBOL
Browse files Browse the repository at this point in the history
These files were getting the defines for EXPORT_SYMBOL because
device.h was including module.h.  But we are going to put an
end to that.  So add the proper export.h include now.

Signed-off-by: Paul Gortmaker <[email protected]>
  • Loading branch information
Paul Gortmaker committed Oct 31, 2011
1 parent 056075c commit daaa5f7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/md/dm-snap-persistent.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <linux/mm.h>
#include <linux/pagemap.h>
#include <linux/vmalloc.h>
#include <linux/export.h>
#include <linux/slab.h>
#include <linux/dm-io.h>

Expand Down
1 change: 1 addition & 0 deletions drivers/md/dm-snap-transient.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <linux/mm.h>
#include <linux/pagemap.h>
#include <linux/vmalloc.h>
#include <linux/export.h>
#include <linux/slab.h>
#include <linux/dm-io.h>

Expand Down
1 change: 1 addition & 0 deletions drivers/md/dm-uevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <linux/slab.h>
#include <linux/kobject.h>
#include <linux/dm-ioctl.h>
#include <linux/export.h>

#include "dm.h"
#include "dm-uevent.h"
Expand Down
1 change: 1 addition & 0 deletions lib/raid6/mktables.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ int main(int argc, char *argv[])
uint8_t exptbl[256], invtbl[256];

printf("#include <linux/raid/pq.h>\n");
printf("#include <linux/export.h>\n");

/* Compute multiplication table */
printf("\nconst u8 __attribute__((aligned(256)))\n"
Expand Down
1 change: 1 addition & 0 deletions lib/raid6/recov.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* the syndrome.)
*/

#include <linux/export.h>
#include <linux/raid/pq.h>

/* Recover two failed data blocks. */
Expand Down

0 comments on commit daaa5f7

Please sign in to comment.