Unverified Commit 1a2a28b6 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!8229 LLVM fix compile warning options

Merge Pull Request from: @ci-robot 
 
PR sync from: Chen Zhongjin <chenzhongjin@huawei.com>
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/JXVRN66UFPGTSVWA4VO5LVU2OV3EKWSI/ 
When compiled with LLVM, there will be some false positive warnings.
Add options to ignore these warning.

Chen Zhongjin (2):
  Makefile: Exclude false positive warning options for Clang
  kbuild: Fix grep -q waring


-- 
2.25.1
 
https://gitee.com/openeuler/kernel/issues/I9SOCR 
 
Link:https://gitee.com/openeuler/kernel/pulls/8229

 

Reviewed-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parents e46e4a83 15e50d63
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -32,6 +32,9 @@ $(obj)/%.stub.o: $(obj)/%.o FORCE

obj-$(CONFIG_AARCH32_EL0)			+= binfmt_elf32.o sys32.o signal32.o			\
					   sys_compat.o
ifdef CONFIG_CC_IS_CLANG
CFLAGS_binfmt_elf32.o := $(call cc-disable-warning, macro-redefined)
endif
obj-$(CONFIG_AARCH32_EL0)			+= sigreturn32.o
obj-$(CONFIG_KUSER_HELPERS)		+= kuser32.o
obj-$(CONFIG_ARM64_ILP32)		+= binfmt_ilp32.o sys_ilp32.o 		\
+3 −0
Original line number Diff line number Diff line
@@ -9,6 +9,9 @@ obj-$(CONFIG_BLOCK) := bio.o elevator.o blk-core.o blk-sysfs.o \
			blk-lib.o blk-mq.o blk-mq-tag.o blk-stat.o \
			blk-mq-sysfs.o blk-mq-cpumap.o blk-mq-sched.o ioctl.o \
			genhd.o ioprio.o badblocks.o partitions/ blk-rq-qos.o
ifdef CONFIG_CC_IS_CLANG
CFLAGS_blk-mq.o := $(call cc-disable-warning, align-mismatch)
endif

obj-$(CONFIG_BOUNCE)		+= bounce.o
obj-$(CONFIG_BLK_SCSI_REQUEST)	+= scsi_ioctl.o
+3 −0
Original line number Diff line number Diff line
@@ -15,6 +15,9 @@ obj-y := open.o read_write.o file_table.o super.o \
		stack.o fs_struct.o statfs.o fs_pin.o nsfs.o \
		fs_types.o fs_context.o fs_parser.o fsopen.o init.o \
		kernel_read_file.o remap_range.o
ifdef CONFIG_CC_IS_CLANG
CFLAGS_namei.o := $(call cc-disable-warning, bitwise-instead-of-logical)
endif

ifeq ($(CONFIG_BLOCK),y)
obj-y +=	buffer.o block_dev.o direct-io.o mpage.o
+2 −2
Original line number Diff line number Diff line
@@ -167,7 +167,7 @@ ifdef CONFIG_MODVERSIONS
# o remove .tmp_<file>.o to <file>.o

cmd_modversions_c =								\
	if $(OBJDUMP) -h $@ | grep -q __ksymtab; then				\
	if $(OBJDUMP) -h $@ | grep __ksymtab > /dev/null; then			\
		$(call cmd_gensymtypes_c,$(KBUILD_SYMTYPES),$(@:.o=.symtypes))	\
		    > $(@D)/.tmp_$(@F:.o=.ver);					\
										\
@@ -352,7 +352,7 @@ ifdef CONFIG_ASM_MODVERSIONS
# we parse asm-prototypes.h C header to get function definitions.

cmd_modversions_S =								\
	if $(OBJDUMP) -h $@ | grep -q __ksymtab; then				\
	if $(OBJDUMP) -h $@ | grep __ksymtab > /dev/null; then			\
		$(call cmd_gensymtypes_S,$(KBUILD_SYMTYPES),$(@:.o=.symtypes))	\
		    > $(@D)/.tmp_$(@F:.o=.ver);					\
										\