Commit 580c4c3b authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Module headers cleanup

From: Brian Gerst <bgerst@didntduck.org>

Cleans up some leftovers from the old module loader:

- Remove unused defines from modules.h

- Remove unused file modsetver.h
parent e954d910
......@@ -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 */
......@@ -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 */
......@@ -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;
......
/* 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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment