mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
livepatch: make kobject in klp_object statically allocated
Make kobj variable (of type struct kobject) statically allocated in klp_object structure. It will allow us to move in the func-object-patch hierarchy through kobject links. The only reason to have it dynamic was to not have empty release callback in the code. However we have empty callbacks for function and patch in the code now, so it is no longer valid and the advantage of static allocation is clear. Signed-off-by: Miroslav Benes <mbenes@suse.cz> Signed-off-by: Jiri Slaby <jslaby@suse.cz> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
36e505c16e
commit
cad706df7e
2 changed files with 17 additions and 7 deletions
|
@ -99,7 +99,7 @@ struct klp_object {
|
|||
struct klp_func *funcs;
|
||||
|
||||
/* internal */
|
||||
struct kobject *kobj;
|
||||
struct kobject kobj;
|
||||
struct module *mod;
|
||||
enum klp_state state;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue