mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
kset: remove decl_subsys macro
This macro is no longer used. ksets should be created dynamically with a call to kset_create_and_add() not declared statically. Yes, there are 5 remaining static struct kset usages in the kernel tree, but they will be fixed up soon. Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
830d3cfb16
commit
5c03c7ab88
2 changed files with 9 additions and 8 deletions
|
@ -198,12 +198,6 @@ extern struct kobject * kset_find_obj(struct kset *, const char *);
|
|||
#define set_kset_name(str) .kset = { .kobj = { .k_name = str } }
|
||||
|
||||
|
||||
#define decl_subsys(_name,_uevent_ops) \
|
||||
struct kset _name##_subsys = { \
|
||||
.kobj = { .k_name = __stringify(_name) }, \
|
||||
.uevent_ops =_uevent_ops, \
|
||||
}
|
||||
|
||||
/* The global /sys/kernel/ kset for people to chain off of */
|
||||
extern struct kset *kernel_kset;
|
||||
/* The global /sys/hypervisor/ kobject for people to chain off of */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue