]> git.baikalelectronics.ru Git - kernel.git/commit
kfence, x86: only define helpers if !MODULE
authorMarco Elver <elver@google.com>
Wed, 28 Jul 2021 19:57:41 +0000 (21:57 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Fri, 30 Jul 2021 15:09:01 +0000 (17:09 +0200)
commitf6810f0e41219c53dfdc90aacdf5cb0416f2e2c9
tree7a5140cf406c79753487514e31912a030b3fd2c6
parentcafb51148a5294255f064da5af069a0e615d7481
kfence, x86: only define helpers if !MODULE

x86's <asm/tlbflush.h> only declares non-module accessible functions
(such as flush_tlb_one_kernel) if !MODULE.

In preparation of including <asm/kfence.h> from the KFENCE test module,
only define the helpers if !MODULE to avoid breaking the build with
CONFIG_KFENCE_KUNIT_TEST=m.

Signed-off-by: Marco Elver <elver@google.com>
Link: https://lore.kernel.org/r/YQJdarx6XSUQ1tFZ@elver.google.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/x86/include/asm/kfence.h