Something went wrong. Try again.
(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Something went wrong. Try again.
12345678910111213141516171819202122// SPDX-License-Identifier: GPL-2.0/* Function introduced by the patch. noinline keeps it from being folded. */
static const char __modinfo[] __attribute__((section(".modinfo"), used, aligned(1))) = "\0name=vmlinux";
#ifdef PATCHEDstatic __attribute__((noinline)) int klp_new_helper(int x){ return x * 7;}#endif
int target(int x){#ifdef PATCHED return klp_new_helper(x);#else return x;#endif}