diff --git a/kernel/module/Kconfig b/kernel/module/Kconfig index ef66cce84d61..6b5c1175faea 100644 --- a/kernel/module/Kconfig +++ b/kernel/module/Kconfig @@ -311,7 +311,7 @@ config UNUSED_KSYMS_WHITELIST exported at all times, even in absence of in-tree users. The value to set here is the path to a text file containing the list of symbols, one per line. The path can be absolute, or relative to the kernel - source or obj tree. + source tree. config MODULES_TREE_LOOKUP def_bool y diff --git a/scripts/gen_autoksyms.sh b/scripts/gen_autoksyms.sh index e12178d677e2..653fadbad302 100755 --- a/scripts/gen_autoksyms.sh +++ b/scripts/gen_autoksyms.sh @@ -31,7 +31,7 @@ fi ksym_wl=$(sed -n 's/^CONFIG_UNUSED_KSYMS_WHITELIST=\(.*\)$/\1/p' include/config/auto.conf) if [ -n "$ksym_wl" ]; then - [ "${ksym_wl}" != "${ksym_wl#/}" ] || [ -f "$ksym_wl" ] || ksym_wl="$abs_srctree/$ksym_wl" + [ "${ksym_wl}" != "${ksym_wl#/}" ] || ksym_wl="$abs_srctree/$ksym_wl" if [ ! -f "$ksym_wl" ] || [ ! -r "$ksym_wl" ]; then echo "ERROR: '$ksym_wl' whitelist file not found" >&2 exit 1