47,60d46 < struct module; < < struct module_attribute { < struct attribute attr; < ssize_t (*show)(struct module *, char *); < ssize_t (*store)(struct module *, const char *, size_t count); < }; < < struct module_kobject < { < struct kobject kobj; < struct module *mod; < }; < 76,77d61 < extern struct subsystem module_subsys; < 160c144,145 < local headers in "srcversion". --- > local headers to the end. Use MODULE_VERSION("") if you want just > this. Macro includes room for this. 162c147,148 < #define MODULE_VERSION(_version) MODULE_INFO(version, _version) --- > #define MODULE_VERSION(_version) \ > MODULE_INFO(version, _version "\0xxxxxxxxxxxxxxxxxxxxxxxx") 224a211,227 > /* sysfs stuff */ > struct module_attribute > { > struct attribute attr; > struct kernel_param *param; > }; > > struct module_kobject > { > /* Everyone should have one of these. */ > struct kobject kobj; > > /* We always have refcnt, we may have others from module_param(). */ > unsigned int num_attributes; > struct module_attribute attr[0]; > }; > 240d242 < struct param_kobject; 254d255 < struct param_kobject *params_kobject; 305a307,309 > > /* Fake kernel param for refcnt. */ > struct kernel_param refcnt_param; 444,448d447 < < struct device_driver; < void module_add_driver(struct module *, struct device_driver *); < void module_remove_driver(struct device_driver *); < 538,549d536 < < struct device_driver; < struct module; < < static inline void module_add_driver(struct module *module, struct device_driver *driver) < { < } < < static inline void module_remove_driver(struct device_driver *driver) < { < } < 561,562d547 < < static inline void __deprecated MODULE_PARM_(void) { } 567c552,572 < { __stringify(var), type, &MODULE_PARM_ }; --- > { __stringify(var), type }; > > static inline void __deprecated MOD_INC_USE_COUNT(struct module *module) > { > __unsafe(module); > > #if defined(CONFIG_MODULE_UNLOAD) && defined(MODULE) > local_inc(&module->ref[get_cpu()].count); > put_cpu(); > #else > (void)try_module_get(module); > #endif > } > > static inline void __deprecated MOD_DEC_USE_COUNT(struct module *module) > { > module_put(module); > } > > #define MOD_INC_USE_COUNT MOD_INC_USE_COUNT(THIS_MODULE) > #define MOD_DEC_USE_COUNT MOD_DEC_USE_COUNT(THIS_MODULE) 569c574,576 < #define MODULE_PARM(var,type) static void __attribute__((__unused__)) *__parm_##var = &MODULE_PARM_; --- > #define MODULE_PARM(var,type) > #define MOD_INC_USE_COUNT do { } while (0) > #define MOD_DEC_USE_COUNT do { } while (0) 576,582c583,587 < extern void __deprecated inter_module_register(const char *, < struct module *, const void *); < extern void __deprecated inter_module_unregister(const char *); < extern const void * __deprecated inter_module_get(const char *); < extern const void * __deprecated inter_module_get_request(const char *, < const char *); < extern void __deprecated inter_module_put(const char *); --- > extern void inter_module_register(const char *, struct module *, const void *); > extern void inter_module_unregister(const char *); > extern const void *inter_module_get(const char *); > extern const void *inter_module_get_request(const char *, const char *); > extern void inter_module_put(const char *);