ANDROID: Limit vfs-only namespace to GKI builds

The VFS namespace breaks several kenelci builds/tests. Limit the
namespace restrictions to GKI builds:

Example: build of multi_v5_defconfig:

ERROR: modpost: module configfs uses symbol kern_path from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it.

Fixes: a38b207d4f ("ANDROID: GKI: set vfs-only exports into their own namespace")
Signed-off-by: Todd Kjos <tkjos@google.com>
Change-Id: I7e2c0a3fe561eb85e725e2fb611c6a2b0ee171e7
This commit is contained in:
Todd Kjos 2024-06-25 18:05:46 +00:00 committed by Treehugger Robot
parent 4b9c4f5f50
commit 85f00ea4c7
2 changed files with 8 additions and 0 deletions

View File

@ -6,7 +6,11 @@
# Rewritten to use lists instead of if-statements.
#
ifdef CONFIG_GKI_HACKS_TO_FIX
subdir-ccflags-y += -DANDROID_GKI_VFS_EXPORT_ONLY=VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver
else
subdir-ccflags-y += -DANDROID_GKI_VFS_EXPORT_ONLY=""
endif
obj-y := open.o read_write.o file_table.o super.o \
char_dev.o stat.o exec.o pipe.o namei.o fcntl.o \

View File

@ -3,7 +3,11 @@
# Makefile for the linux kernel.
#
ifdef CONFIG_GKI_HACKS_TO_FIX
CFLAGS_cred.o = -DANDROID_GKI_VFS_EXPORT_ONLY=VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver
else
CFLAGS_cred.o = -DANDROID_GKI_VFS_EXPORT_ONLY=""
endif
obj-y = fork.o exec_domain.o panic.o \
cpu.o exit.o softirq.o resource.o \
sysctl.o capability.o ptrace.o user.o \