Fix clash from XFS vs module.h
Subsystems (2)
PATCH 1/1 Fix clash from XFS vs module.h
Don't include elf.h until it's neccessary (for files doing module loading).
Based on Anders Gustaffson's patch, compiles here on ppc and x86. Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
Name: moduleloader.h
Author: Anders Gustafsson
Status: Experimental
Depends: Module/module-i386.patch.gz
D: Separates the module loading function prototypes (and elf.h) into
D: moduleloader.h. AT_GID in elf.h clashes with xfs.h, but this also
D: makes module.h less cluttered.
arch/i386/kernel/module.c +1 -1
@@ -15,7 +15,7 @@along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include <linux/module.h> +#include <linux/moduleloader.h> #include <linux/elf.h> #include <linux/vmalloc.h> #include <linux/fs.h>
arch/sparc/kernel/module.c +1 -1
@@ -4,7 +4,7 @@* Copyright (C) 2002 David S. Miller. */ -#include <linux/module.h> +#include <linux/moduleloader.h> #include <linux/kernel.h> #include <linux/elf.h> #include <linux/vmalloc.h>
arch/sparc64/kernel/module.c +1 -1
@@ -4,7 +4,7 @@* Copyright (C) 2002 David S. Miller. */ -#include <linux/module.h> +#include <linux/moduleloader.h> #include <linux/kernel.h> #include <linux/elf.h> #include <linux/vmalloc.h>
include/linux/module.h +0 -48
60 lines not on this page · raw message
include/linux/moduleloader.h +55 -0
55 lines not on this page · raw message
kernel/module.c +1 -0
@@ -17,6 +17,7 @@*/ #include <linux/config.h> #include <linux/module.h> +#include <linux/moduleloader.h> #include <linux/init.h> #include <linux/slab.h> #include <linux/vmalloc.h>