diff options
author | Miroslav Benes <mbenes@suse.cz> | 2015-05-19 12:01:18 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2015-05-19 23:56:41 +0200 |
commit | cad706df7e4a00a595f2662f32c0fc174aa4e61f (patch) | |
tree | cd289c2f2478ad3c269b00bf22d2bd39818d0df6 /include/linux/livepatch.h | |
parent | 36e505c16e610403c110bab76a95cbfa0436a928 (diff) | |
download | talos-obmc-linux-cad706df7e4a00a595f2662f32c0fc174aa4e61f.tar.gz talos-obmc-linux-cad706df7e4a00a595f2662f32c0fc174aa4e61f.zip |
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>
Diffstat (limited to 'include/linux/livepatch.h')
-rw-r--r-- | include/linux/livepatch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/livepatch.h b/include/linux/livepatch.h index ee6dbb39a809..fe45f2f02c8d 100644 --- a/include/linux/livepatch.h +++ b/include/linux/livepatch.h @@ -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; }; |