File tree 1 file changed +8
-1
lines changed
tools/testing/selftests/mm
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 33
33
# LDLIBS.
34
34
MAKEFLAGS += --no-builtin-rules
35
35
36
- CFLAGS = -Wall -I $(top_srcdir ) $(EXTRA_CFLAGS ) $(KHDR_INCLUDES ) $(TOOLS_INCLUDES )
36
+ CFLAGS = -Wall -O2 - I $(top_srcdir ) $(EXTRA_CFLAGS ) $(KHDR_INCLUDES ) $(TOOLS_INCLUDES )
37
37
LDLIBS = -lrt -lpthread -lm
38
38
39
+ # Some distributions (such as Ubuntu) configure GCC so that _FORTIFY_SOURCE is
40
+ # automatically enabled at -O1 or above. This triggers various unused-result
41
+ # warnings where functions such as read() or write() are called and their
42
+ # return value is not checked. Disable _FORTIFY_SOURCE to silence those
43
+ # warnings.
44
+ CFLAGS += -U_FORTIFY_SOURCE
45
+
39
46
KDIR ?= /lib/modules/$(shell uname -r) /build
40
47
ifneq (,$(wildcard $(KDIR ) /Module.symvers) )
41
48
ifneq (,$(wildcard $(KDIR ) /include/linux/page_frag_cache.h) )
You can’t perform that action at this time.
0 commit comments