Whamcloud - gitweb
LU-16510 build: check if CONFIG_FORTIFY_SOURCE is defined 73/51973/1
authorJian Yu <yujian@whamcloud.com>
Thu, 17 Aug 2023 20:46:38 +0000 (13:46 -0700)
committerJian Yu <yujian@whamcloud.com>
Thu, 17 Aug 2023 20:46:38 +0000 (13:46 -0700)
commit06956ef63fd7a0489648fe85c2f1e1904e78424e
treed4cf0f00c7dfab47da028fcce51b38af4046a1fd
parent0d0a419151ab32ceb7d75a2660a74be5ea168bc1
LU-16510 build: check if CONFIG_FORTIFY_SOURCE is defined

The linux/fortify-string.h header file should not be
included while the kernel config option CONFIG_FORTIFY_SOURCE
is not defined.

Change-Id: I2e1905406e892b182f143d512a2d3722b141e52d
Fixes: 919b93b951d4 ("LU-16510 build: fortified memcpy from linux 6.1")
Signed-off-by: Jian Yu <yujian@whamcloud.com>
libcfs/include/libcfs/linux/linux-fortify-string.h