Skip to content

Commit

Permalink
[squash] modpost/livepatch: apply modinfo flag to all in-tree livepat…
Browse files Browse the repository at this point in the history
…ch modules

Note: squash with ("modpost: Add modinfo flag to livepatch modules")

Add LIVEPATCH_* statement for the rest of the livepatch samples and
selftests Makefiles.

Remove the MODULE_INFO(livepatch, "Y") from the same modules' source
files.

[joe: update all in-tree livepatches with LIVEPATCH_* modinfo flag]

Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
  • Loading branch information
joe-lawrence committed Mar 18, 2019
1 parent 4a61628 commit 22c59f0
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions lib/livepatch/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
#
# Makefile for livepatch test code.

LIVEPATCH_test_klp_atomic_replace.o := y
LIVEPATCH_test_klp_callbacks_demo.o := y
LIVEPATCH_test_klp_callbacks_demo2.o := y
LIVEPATCH_test_klp_livepatch.o := y

obj-$(CONFIG_TEST_LIVEPATCH) += test_klp_atomic_replace.o \
test_klp_callbacks_demo.o \
test_klp_callbacks_demo2.o \
Expand Down
1 change: 0 additions & 1 deletion lib/livepatch/test_klp_atomic_replace.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,5 @@ static void test_klp_atomic_replace_exit(void)
module_init(test_klp_atomic_replace_init);
module_exit(test_klp_atomic_replace_exit);
MODULE_LICENSE("GPL");
MODULE_INFO(livepatch, "Y");
MODULE_AUTHOR("Joe Lawrence <joe.lawrence@redhat.com>");
MODULE_DESCRIPTION("Livepatch test: atomic replace");
1 change: 0 additions & 1 deletion lib/livepatch/test_klp_callbacks_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,5 @@ static void test_klp_callbacks_demo_exit(void)
module_init(test_klp_callbacks_demo_init);
module_exit(test_klp_callbacks_demo_exit);
MODULE_LICENSE("GPL");
MODULE_INFO(livepatch, "Y");
MODULE_AUTHOR("Joe Lawrence <joe.lawrence@redhat.com>");
MODULE_DESCRIPTION("Livepatch test: livepatch demo");
1 change: 0 additions & 1 deletion lib/livepatch/test_klp_callbacks_demo2.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,5 @@ static void test_klp_callbacks_demo2_exit(void)
module_init(test_klp_callbacks_demo2_init);
module_exit(test_klp_callbacks_demo2_exit);
MODULE_LICENSE("GPL");
MODULE_INFO(livepatch, "Y");
MODULE_AUTHOR("Joe Lawrence <joe.lawrence@redhat.com>");
MODULE_DESCRIPTION("Livepatch test: livepatch demo2");
1 change: 0 additions & 1 deletion lib/livepatch/test_klp_livepatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,5 @@ static void test_klp_livepatch_exit(void)
module_init(test_klp_livepatch_init);
module_exit(test_klp_livepatch_exit);
MODULE_LICENSE("GPL");
MODULE_INFO(livepatch, "Y");
MODULE_AUTHOR("Seth Jennings <sjenning@redhat.com>");
MODULE_DESCRIPTION("Livepatch test: livepatch module");
4 changes: 4 additions & 0 deletions samples/livepatch/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
LIVEPATCH_livepatch-sample.o := y
LIVEPATCH_livepatch-shadow-fix1.o := y
LIVEPATCH_livepatch-shadow-fix2.o := y
LIVEPATCH_livepatch-callbacks-demo.o := y

obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-sample.o
obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-shadow-mod.o
obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-shadow-fix1.o
Expand Down

0 comments on commit 22c59f0

Please sign in to comment.