]> git.baikalelectronics.ru Git - kernel.git/commit
livepatch: Introduce klp_for_each_patch macro
authorPetr Mladek <pmladek@suse.com>
Mon, 4 Feb 2019 13:56:50 +0000 (14:56 +0100)
committerPetr Mladek <pmladek@suse.com>
Wed, 6 Feb 2019 09:49:30 +0000 (10:49 +0100)
commitb9ca8833049ef13b622dcd16ed4b296e05c5d42f
tree5b094d13703679b37c690bc6b0db2ad4d324fd00
parent989023631bf30556f3a655b6573dd502c34a8bae
livepatch: Introduce klp_for_each_patch macro

There are already macros to iterate over struct klp_func and klp_object.

Add also klp_for_each_patch(). But make it internal because also
klp_patches list is internal.

Suggested-by: Josh Poimboeuf <jpoimboe@redhat.com>
Acked-by: Miroslav Benes <mbenes@suse.cz>
Acked-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
kernel/livepatch/core.c
kernel/livepatch/core.h
kernel/livepatch/transition.c