Whamcloud - gitweb
EX-9681 build: disable objtool and UBSAN warnings
authorJian Yu <yujian@whamcloud.com>
Mon, 29 Apr 2024 08:24:41 +0000 (01:24 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 1 May 2024 22:29:57 +0000 (22:29 +0000)
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 <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/54948
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
build/Rules.in

index 38f5e14..610a88e 100644 (file)
 # DIST_SOURCES = $(<module-name>-objs:.o=.c) <other sources>
 # 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