aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/livepatch/core.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/livepatch/core.h')
-rw-r--r--kernel/livepatch/core.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/livepatch/core.h b/kernel/livepatch/core.h
index e6200f38701f..ec43a40b853f 100644
--- a/kernel/livepatch/core.h
+++ b/kernel/livepatch/core.h
@@ -7,6 +7,12 @@
7extern struct mutex klp_mutex; 7extern struct mutex klp_mutex;
8extern struct list_head klp_patches; 8extern struct list_head klp_patches;
9 9
10#define klp_for_each_patch_safe(patch, tmp_patch) \
11 list_for_each_entry_safe(patch, tmp_patch, &klp_patches, list)
12
13#define klp_for_each_patch(patch) \
14 list_for_each_entry(patch, &klp_patches, list)
15
10void klp_free_patch_start(struct klp_patch *patch); 16void klp_free_patch_start(struct klp_patch *patch);
11void klp_discard_replaced_patches(struct klp_patch *new_patch); 17void klp_discard_replaced_patches(struct klp_patch *new_patch);
12void klp_discard_nops(struct klp_patch *new_patch); 18void klp_discard_nops(struct klp_patch *new_patch);