Skip to content

Commit c1848f7

Browse files
AttilaFueloepbehlendorf
authored andcommitted
Linux build: always use objtool
We silence `objtool` warnings on some object files using `OBJECT_FILES_NON_STANDARD_some_file.o`. Nowadays `objtool` is needed for CPU vulnerability mitigations and a lot more functionality so its use is desirable. Just remove the `OBJECT_FILES_NON_STANDARD` definitions. A follow-up commit is needed to make the offending files standard and address the compile time warnings. Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Attila Fülöp <attila@fueloep.org> Closes openzfs#17401 Closes openzfs#17364
1 parent d92827b commit c1848f7

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

module/Kbuild.in

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,6 @@ $(addprefix $(obj)/icp/,$(ICP_OBJS) $(ICP_OBJS_X86) $(ICP_OBJS_X86_64) \
180180
$(addprefix $(obj)/icp/,$(ICP_OBJS) $(ICP_OBJS_X86) $(ICP_OBJS_X86_64) \
181181
$(ICP_OBJS_ARM64) $(ICP_OBJS_PPC_PPC64)) : ccflags-y += -I$(icp_include) -I$(zfs_include)/os/linux/spl -I$(zfs_include)
182182

183-
# Suppress objtool "return with modified stack frame" warnings.
184-
OBJECT_FILES_NON_STANDARD_aesni-gcm-x86_64.o := y
185-
186-
# Suppress objtool "unsupported stack pointer realignment" warnings.
187-
# See #6950 for the reasoning.
188-
OBJECT_FILES_NON_STANDARD_sha256-x86_64.o := y
189-
OBJECT_FILES_NON_STANDARD_sha512-x86_64.o := y
190-
191183
LUA_OBJS := \
192184
lapi.o \
193185
lauxlib.o \
@@ -498,11 +490,6 @@ UBSAN_SANITIZE_sa.o := n
498490
UBSAN_SANITIZE_zfs/zap_micro.o := n
499491
UBSAN_SANITIZE_zfs/sa.o := n
500492

501-
# Suppress incorrect warnings from versions of objtool which are not
502-
# aware of x86 EVEX prefix instructions used for AVX512.
503-
OBJECT_FILES_NON_STANDARD_vdev_raidz_math_avx512bw.o := y
504-
OBJECT_FILES_NON_STANDARD_vdev_raidz_math_avx512f.o := y
505-
506493
ifeq ($(CONFIG_ALTIVEC),y)
507494
$(obj)/zfs/vdev_raidz_math_powerpc_altivec.o : c_flags += -maltivec
508495
endif

0 commit comments

Comments
 (0)