diff options
author | Petr Mladek <pmladek@suse.com> | 2019-02-04 14:56:50 +0100 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2019-02-06 10:49:30 +0100 |
commit | ecba29f434a8fa333356d54d2491d174c4aab8de (patch) | |
tree | 5b094d13703679b37c690bc6b0db2ad4d324fd00 /kernel/livepatch/transition.c | |
parent | 375bfca3459db1c5596c28c56d2ebac26e51c7b3 (diff) | |
download | linux-ecba29f434a8fa333356d54d2491d174c4aab8de.tar.bz2 |
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>
Diffstat (limited to 'kernel/livepatch/transition.c')
-rw-r--r-- | kernel/livepatch/transition.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/livepatch/transition.c b/kernel/livepatch/transition.c index 300273819674..a3a6f32c6fd0 100644 --- a/kernel/livepatch/transition.c +++ b/kernel/livepatch/transition.c @@ -642,6 +642,6 @@ void klp_force_transition(void) for_each_possible_cpu(cpu) klp_update_patch_state(idle_task(cpu)); - list_for_each_entry(patch, &klp_patches, list) + klp_for_each_patch(patch) patch->forced = true; } |