list_debug: Introduce inline wrappers for debug checks
authorMarco Elver <elver@google.com>
Fri, 11 Aug 2023 15:18:39 +0000 (17:18 +0200)
committerKees Cook <keescook@chromium.org>
Tue, 15 Aug 2023 21:57:24 +0000 (14:57 -0700)
commitb16c42c8fde808b4f047d94f1f2aeda93487670d
treead5c919963b834eec92156a496043827e16d8352
parent7a0fd5e1678505534573b3c14c6ff69ed8592596
list_debug: Introduce inline wrappers for debug checks

Turn the list debug checking functions __list_*_valid() into inline
functions that wrap the out-of-line functions. Care is taken to ensure
the inline wrappers are always inlined, so that additional compiler
instrumentation (such as sanitizers) does not result in redundant
outlining.

This change is preparation for performing checks in the inline wrappers.

No functional change intended.

Signed-off-by: Marco Elver <elver@google.com>
Link: https://lore.kernel.org/r/20230811151847.1594958-2-elver@google.com
Signed-off-by: Kees Cook <keescook@chromium.org>
arch/arm64/kvm/hyp/nvhe/list_debug.c
include/linux/list.h
lib/list_debug.c