mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
[PATCH] Remove MODULE_PARM
MODULE_PARM was actually breaking: recent gcc version optimize them out as unused. It's time to replace the last users, which are generally in the most unloved drivers anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
c721bccece
commit
8d3b33f67f
56 changed files with 146 additions and 329 deletions
|
|
@ -554,25 +554,6 @@ static inline void module_remove_driver(struct device_driver *driver)
|
|||
|
||||
/* BELOW HERE ALL THESE ARE OBSOLETE AND WILL VANISH */
|
||||
|
||||
struct obsolete_modparm {
|
||||
char name[64];
|
||||
char type[64-sizeof(void *)];
|
||||
void *addr;
|
||||
};
|
||||
|
||||
static inline void MODULE_PARM_(void) { }
|
||||
#ifdef MODULE
|
||||
/* DEPRECATED: Do not use. */
|
||||
#define MODULE_PARM(var,type) \
|
||||
extern struct obsolete_modparm __parm_##var \
|
||||
__attribute__((section("__obsparm"))); \
|
||||
struct obsolete_modparm __parm_##var = \
|
||||
{ __stringify(var), type, &MODULE_PARM_ }; \
|
||||
__MODULE_PARM_TYPE(var, type);
|
||||
#else
|
||||
#define MODULE_PARM(var,type) static void __attribute__((__unused__)) *__parm_##var = &MODULE_PARM_;
|
||||
#endif
|
||||
|
||||
#define __MODULE_STRING(x) __stringify(x)
|
||||
|
||||
/* Use symbol_get and symbol_put instead. You'll thank me. */
|
||||
|
|
|
|||
|
|
@ -1128,10 +1128,7 @@
|
|||
#endif
|
||||
|
||||
/* max number of simultaneous board */
|
||||
/* warning : make sure module array def's are coherent with PM3_MAX_BOARD */
|
||||
#define PM3_MAX_BOARD 4
|
||||
#define PM3_MAX_BOARD_MODULE_ARRAY_SHORT "1-4h"
|
||||
#define PM3_MAX_BOARD_MODULE_ARRAY_STRING "1-4s"
|
||||
|
||||
/* max size of options */
|
||||
#define PM3_OPTIONS_SIZE 256
|
||||
|
|
|
|||
Loading…
Reference in a new issue