Revert "BACKPORT: FROMGIT: module: allow UNUSED_KSYMS_WHITELIST ..."

Revert submission 3101887-android14-ksyms-wl

Reason for revert: Restore green in release builds

Reverted changes: /q/submissionid:3101887-android14-ksyms-wl

Change-Id: Ia6c694be720c7a07abdfee6a4720a4518ea59141
This commit is contained in:
Yifan Hong
2024-05-28 17:12:58 +00:00
committed by Gerrit Code Review
parent acacba8bfa
commit b7d4cf60e7
2 changed files with 2 additions and 2 deletions

View File

@@ -2375,7 +2375,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.
endif # MODULES

View File

@@ -36,7 +36,7 @@ ksym_wl=
if [ -n "$CONFIG_UNUSED_KSYMS_WHITELIST" ]; then
# Use 'eval' to expand the whitelist path and check if it is relative
eval ksym_wl="$CONFIG_UNUSED_KSYMS_WHITELIST"
[ "${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