Skip to contentSkip to conversation

Module headers cleanup

PATCH New Brian Gerst 1 participant 1 message Feb 13, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Module headers cleanup

Cleans up some leftovers from the old module loader:
- Remove unused defines from modules.h
- Remove unused file modsetver.h

--
Brian Gerst

include/asm-arm26/module.h +0 -5
diff -urN linux-2.6.2-bk/include/asm-arm26/module.h linux/include/asm-arm26/module.h
@@ -4,9 +4,4 @@
  * This file contains the arm architecture specific module code.
  */
 
-#define module_map(x)		vmalloc(x)
-#define module_unmap(x)		vfree(x)
-#define module_arch_init(x)	(0)
-#define arch_init_modules(x)	do { } while (0)
-
 #endif /* _ASM_ARM_MODULE_H */
include/asm-h8300/module.h +0 -5
diff -urN linux-2.6.2-bk/include/asm-h8300/module.h linux/include/asm-h8300/module.h
@@ -4,9 +4,4 @@
  * This file contains the H8/300 architecture specific module code.
  */
 
-#define module_map(x)		vmalloc(x)
-#define module_unmap(x)		vfree(x)
-#define module_arch_init(x)	(0)
-#define arch_init_modules(x)	do { } while (0)
-
 #endif /* _ASM_H8/300_MODULE_H */
include/asm-parisc/module.h +0 -5
diff -urN linux-2.6.2-bk/include/asm-parisc/module.h linux/include/asm-parisc/module.h
@@ -17,11 +17,6 @@
 #define Elf_Rela Elf32_Rela
 #endif
 
-#define module_map(x)		vmalloc(x)
-#define module_unmap(x)		vfree(x)
-#define module_arch_init(x)	(0)
-#define arch_init_modules(x)	do { } while (0)
-
 struct mod_arch_specific
 {
 	unsigned long got_offset, got_count, got_max;
include/linux/modsetver.h +0 -10
diff -urN linux-2.6.2-bk/include/linux/modsetver.h linux/include/linux/modsetver.h
@@ -1,10 +0,0 @@
-/* Symbol versioning nastiness.  */
-
-#define __SYMBOL_VERSION(x)       __ver_ ## x
-#define __VERSIONED_SYMBOL2(x,v)  x ## _R ## v
-#define __VERSIONED_SYMBOL1(x,v)  __VERSIONED_SYMBOL2(x,v)
-#define __VERSIONED_SYMBOL(x)     __VERSIONED_SYMBOL1(x,__SYMBOL_VERSION(x))
-
-#ifndef _set_ver
-#define _set_ver(x)		  __VERSIONED_SYMBOL(x)
-#endif