Skip to content

Commit fc54a4f

Browse files
jmberg-intelrichardweinberger
authored andcommitted
um: prevent user code in modules
By not doing the user code cflags mangling we can simply break the build for any user code sneaking into modules. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent 5d90cf6 commit fc54a4f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/um/scripts/Makefile.rules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# ===========================================================================
55

66
USER_SINGLE_OBJS := \
7-
$(foreach f,$(patsubst %.o,%,$(obj-y) $(obj-m)),$($(f)-objs))
8-
USER_OBJS += $(filter %_user.o,$(obj-y) $(obj-m) $(USER_SINGLE_OBJS))
7+
$(foreach f,$(patsubst %.o,%,$(obj-y)),$($(f)-objs))
8+
USER_OBJS += $(filter %_user.o,$(obj-y) $(USER_SINGLE_OBJS))
99
USER_OBJS := $(foreach file,$(USER_OBJS),$(obj)/$(file))
1010

1111
$(USER_OBJS:.o=.%): \

0 commit comments

Comments
 (0)