summaryrefslogtreecommitdiffstats
path: root/kernel/livepatch/patch.c
diff options
context:
space:
mode:
authorMiroslav Benes <mbenes@suse.cz>2017-05-26 14:45:21 +0200
committerJiri Kosina <jkosina@suse.cz>2017-05-27 00:27:37 +0200
commit5720acf4bfc142ba568d5b6782fceaf62ed15e0b (patch)
tree1710c0e1717f88eb51d7c6536e357de89f6b076c /kernel/livepatch/patch.c
parent76f1948a79b26d5f57a5ee9941876b745c6baaea (diff)
downloadop-kernel-dev-5720acf4bfc142ba568d5b6782fceaf62ed15e0b.zip
op-kernel-dev-5720acf4bfc142ba568d5b6782fceaf62ed15e0b.tar.gz
livepatch: Make livepatch dependent on !TRIM_UNUSED_KSYMS
If TRIM_UNUSED_KSYMS is enabled, all unneeded exported symbols are made unexported. Two-pass build of the kernel is done to find out which symbols are needed based on a configuration. This effectively complicates things for out-of-tree modules. Livepatch exports functions to (un)register and enable/disable a live patch. The only in-tree module which uses these functions is a sample in samples/livepatch/. If the sample is disabled, the functions are trimmed and out-of-tree live patches cannot be built. Note that live patches are intended to be built out-of-tree. Suggested-by: Michal Marek <mmarek@suse.com> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com> Acked-by: Jessica Yu <jeyu@redhat.com> Signed-off-by: Miroslav Benes <mbenes@suse.cz> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'kernel/livepatch/patch.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud