From 62b72165ddfbc0b7f661eafe108664b25bd8b536 Mon Sep 17 00:00:00 2001 From: Jian Yu Date: Mon, 29 Apr 2024 01:24:41 -0700 Subject: [PATCH] EX-9681 build: disable objtool and UBSAN warnings While building and running Lustre client with kernel 6.8.0-31-generic, there are lots of objtool compile-time warnings as follows: warning: objtool: __cfs_fail_check_set() falls through to next function __cfs_fail_timeout_set() and also UBSAN runtime warnings as follow: UBSAN: array-index-out-of-bounds in libcfs_mem.c:97:3 index 0 is out of range for type 'void *[*]' Before all of the warnings are actually fixed, we temporarily disable them to quiet the warnings in build and system logs. Change-Id: I18630f9a8aa6fd7c2b33b4eb8103fd7e2f6e19de Test-Parameters: trivial Signed-off-by: Jian Yu Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/54948 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- build/Rules.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/Rules.in b/build/Rules.in index 38f5e14..610a88e 100644 --- a/build/Rules.in +++ b/build/Rules.in @@ -15,6 +15,12 @@ # DIST_SOURCES = $(-objs:.o=.c) # MOSTLYCLEANFILES = *.o *.ko *.mod.c +# Ignore objtool compile-time warning +OBJECT_FILES_NON_STANDARD := y + +# Suppress UBSAN run-time warning +UBSAN_SANITIZE := n + ifeq ($(PATCHLEVEL),) include autoMakefile -- 1.8.3.1