Whamcloud - gitweb
LU-16510 build: check if CONFIG_FORTIFY_SOURCE is defined 73/51973/2
authorJian Yu <yujian@whamcloud.com>
Thu, 17 Aug 2023 20:46:38 +0000 (13:46 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 31 Aug 2023 06:39:53 +0000 (06:39 +0000)
commita52545afeda06441841f6143d8fd563251549acb
tree4c8115b0a87e64f6a59a65e572377e31619c647b
parent479f9585b0bf02bdc43346dfd037837b8340dde7
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>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51973
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
libcfs/include/libcfs/linux/linux-fortify-string.h