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)
commit62b72165ddfbc0b7f661eafe108664b25bd8b536
tree5e12042e9cc22ab988a5760d604000fe8b8ac405
parent6b7176d889d95cd3f85978bd37c2d84582c8a344
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 <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