diff options
Diffstat (limited to 'samples/livepatch/livepatch-callbacks-demo.c')
-rw-r--r-- | samples/livepatch/livepatch-callbacks-demo.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/samples/livepatch/livepatch-callbacks-demo.c b/samples/livepatch/livepatch-callbacks-demo.c index 3d115bd68442..72f9e6d1387b 100644 --- a/samples/livepatch/livepatch-callbacks-demo.c +++ b/samples/livepatch/livepatch-callbacks-demo.c | |||
@@ -197,21 +197,6 @@ static int livepatch_callbacks_demo_init(void) | |||
197 | { | 197 | { |
198 | int ret; | 198 | int ret; |
199 | 199 | ||
200 | if (!klp_have_reliable_stack() && !patch.immediate) { | ||
201 | /* | ||
202 | * WARNING: Be very careful when using 'patch.immediate' in | ||
203 | * your patches. It's ok to use it for simple patches like | ||
204 | * this, but for more complex patches which change function | ||
205 | * semantics, locking semantics, or data structures, it may not | ||
206 | * be safe. Use of this option will also prevent removal of | ||
207 | * the patch. | ||
208 | * | ||
209 | * See Documentation/livepatch/livepatch.txt for more details. | ||
210 | */ | ||
211 | patch.immediate = true; | ||
212 | pr_notice("The consistency model isn't supported for your architecture. Bypassing safety mechanisms and applying the patch immediately.\n"); | ||
213 | } | ||
214 | |||
215 | ret = klp_register_patch(&patch); | 200 | ret = klp_register_patch(&patch); |
216 | if (ret) | 201 | if (ret) |
217 | return ret; | 202 | return ret; |