Kbuild: CFLAGS Review.
This commit removes original linux CFLAGS that needed review. Change-Id: Ieeb13dcd3fc4d8c76bf48b6efbb3d6fa7767dfe2 Signed-off-by: Juan Manuel Cruz <juan.m.cruz.alcaraz@linux.intel.com>
This commit is contained in:
parent
d2b1bdd552
commit
99b340e2ef
1 changed files with 0 additions and 13 deletions
13
Makefile
13
Makefile
|
@ -669,19 +669,10 @@ ifdef CONFIG_DEBUG_SECTION_MISMATCH
|
||||||
KBUILD_CFLAGS += $(call cc-option, -fno-inline-functions-called-once)
|
KBUILD_CFLAGS += $(call cc-option, -fno-inline-functions-called-once)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Adding specific KBUILD_CFLAGS. This one is an specific example of how to set up KBUILD flags
|
|
||||||
KBUILD_ARFLAGS := $(call ar-option,D)
|
|
||||||
|
|
||||||
#FIXME This group of flags are under review
|
|
||||||
ifdef REVIEW_BLOCK
|
|
||||||
|
|
||||||
# arch Makefile may override CC so keep this after arch Makefile is included
|
# arch Makefile may override CC so keep this after arch Makefile is included
|
||||||
NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
|
NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
|
||||||
CHECKFLAGS += $(NOSTDINC_FLAGS)
|
CHECKFLAGS += $(NOSTDINC_FLAGS)
|
||||||
|
|
||||||
# warn about C99 declaration after statement
|
|
||||||
KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
|
|
||||||
|
|
||||||
# disable pointer signed / unsigned warnings in gcc 4.0
|
# disable pointer signed / unsigned warnings in gcc 4.0
|
||||||
KBUILD_CFLAGS += $(call cc-disable-warning, pointer-sign)
|
KBUILD_CFLAGS += $(call cc-disable-warning, pointer-sign)
|
||||||
|
|
||||||
|
@ -694,12 +685,8 @@ KBUILD_CFLAGS += $(call cc-option,-fconserve-stack)
|
||||||
# disallow errors like 'EXPORT_GPL(foo);' with missing header
|
# disallow errors like 'EXPORT_GPL(foo);' with missing header
|
||||||
KBUILD_CFLAGS += $(call cc-option,-Werror=implicit-int)
|
KBUILD_CFLAGS += $(call cc-option,-Werror=implicit-int)
|
||||||
|
|
||||||
# require functions to have arguments in prototypes, not empty 'int foo()'
|
|
||||||
KBUILD_CFLAGS += $(call cc-option,-Werror=strict-prototypes)
|
|
||||||
|
|
||||||
# Prohibit date/time macros, which would make the build non-deterministic
|
# Prohibit date/time macros, which would make the build non-deterministic
|
||||||
KBUILD_CFLAGS += $(call cc-option,-Werror=date-time)
|
KBUILD_CFLAGS += $(call cc-option,-Werror=date-time)
|
||||||
endif
|
|
||||||
|
|
||||||
# use the deterministic mode of AR if available
|
# use the deterministic mode of AR if available
|
||||||
KBUILD_ARFLAGS := $(call ar-option,D)
|
KBUILD_ARFLAGS := $(call ar-option,D)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue