linux/samples/livepatch
Nicholas Mc Guire b73d5dc722 livepatch: samples: non static warnings fix
Sparse reported warnings about non-static symbols. For the variables
a simple static attribute is fine - for the functions referenced by
livepatch via klp_func the symbol-names must be unmodified in the
symbol table and the patchable code has to be emitted. The resolution
is to attach __used attribute to the shared statically declared functions.

Link: https://lore.kernel.org/lkml/1544965657-26804-1-git-send-email-hofrat@osadl.org/
Suggested-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Acked-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2019-01-25 16:43:35 +01:00
..
livepatch-callbacks-busymod.c livepatch: add (un)patch callbacks 2017-10-19 10:08:56 +02:00
livepatch-callbacks-demo.c livepatch: Remove immediate feature 2018-01-11 10:58:03 +01:00
livepatch-callbacks-mod.c livepatch: add (un)patch callbacks 2017-10-19 10:08:56 +02:00
livepatch-sample.c livepatch: Remove immediate feature 2018-01-11 10:58:03 +01:00
livepatch-shadow-fix1.c livepatch: samples: non static warnings fix 2019-01-25 16:43:35 +01:00
livepatch-shadow-fix2.c livepatch: samples: non static warnings fix 2019-01-25 16:43:35 +01:00
livepatch-shadow-mod.c livepatch: samples: non static warnings fix 2019-01-25 16:43:35 +01:00
Makefile livepatch: add (un)patch callbacks 2017-10-19 10:08:56 +02:00