diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2010-06-05 13:17:36 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2010-06-04 21:47:36 -0400 |
commit | 6407ebb271fc34440b306f305e1efb7685eece26 (patch) | |
tree | dd3fa7484bcaa4499138d2249dbed24f003fdf85 /include | |
parent | 80a3d1bb410e000e176931a076cdf19a1e89a955 (diff) |
module: Make module sysfs functions private.
These were placed in the header in ef665c1a06 to get the various
SYSFS/MODULE config combintations to compile.
That may have been necessary then, but it's not now. These functions
are all local to module.c.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/module.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index 5d8fca5dcff5..8a6b9fdc7ffa 100644 --- a/include/linux/module.h +++ b/include/linux/module.h | |||
@@ -672,43 +672,10 @@ static inline int module_get_iter_tracepoints(struct tracepoint_iter *iter) | |||
672 | 672 | ||
673 | #endif /* CONFIG_MODULES */ | 673 | #endif /* CONFIG_MODULES */ |
674 | 674 | ||
675 | struct device_driver; | ||
676 | #ifdef CONFIG_SYSFS | 675 | #ifdef CONFIG_SYSFS |
677 | struct module; | ||
678 | |||
679 | extern struct kset *module_kset; | 676 | extern struct kset *module_kset; |
680 | extern struct kobj_type module_ktype; | 677 | extern struct kobj_type module_ktype; |
681 | extern int module_sysfs_initialized; | 678 | extern int module_sysfs_initialized; |
682 | |||
683 | int mod_sysfs_init(struct module *mod); | ||
684 | int mod_sysfs_setup(struct module *mod, | ||
685 | struct kernel_param *kparam, | ||
686 | unsigned int num_params); | ||
687 | int module_add_modinfo_attrs(struct module *mod); | ||
688 | void module_remove_modinfo_attrs(struct module *mod); | ||
689 | |||
690 | #else /* !CONFIG_SYSFS */ | ||
691 | |||
692 | static inline int mod_sysfs_init(struct module *mod) | ||
693 | { | ||
694 | return 0; | ||
695 | } | ||
696 | |||
697 | static inline int mod_sysfs_setup(struct module *mod, | ||
698 | struct kernel_param *kparam, | ||
699 | unsigned int num_params) | ||
700 | { | ||
701 | return 0; | ||
702 | } | ||
703 | |||
704 | static inline int module_add_modinfo_attrs(struct module *mod) | ||
705 | { | ||
706 | return 0; | ||
707 | } | ||
708 | |||
709 | static inline void module_remove_modinfo_attrs(struct module *mod) | ||
710 | { } | ||
711 | |||
712 | #endif /* CONFIG_SYSFS */ | 679 | #endif /* CONFIG_SYSFS */ |
713 | 680 | ||
714 | #define symbol_request(x) try_then_request_module(symbol_get(x), "symbol:" #x) | 681 | #define symbol_request(x) try_then_request_module(symbol_get(x), "symbol:" #x) |