Whamcloud - gitweb
LU-16510 build: check if CONFIG_FORTIFY_SOURCE is defined
authorJian Yu <yujian@whamcloud.com>
Fri, 18 Aug 2023 17:33:29 +0000 (10:33 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 21 Aug 2023 08:44:25 +0000 (08:44 +0000)
commit88bf10c0c76a044b8a8109674590c86fef51cf1a
treed06c0295e14c91231aa82368d0bce5bb6ae4ba12
parentb0b262fe098ddaead239e277b095e8dfaafaafd9
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.

Lustre-change: https://review.whamcloud.com/51973
Lustre-commit: TBD (from 06956ef63fd7a0489648fe85c2f1e1904e78424e)

Fixes: 919b93b951d4 ("LU-16510 build: fortified memcpy from linux 6.1")
Change-Id: I2e1905406e892b182f143d512a2d3722b141e52d
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52000
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
libcfs/include/libcfs/linux/linux-fortify-string.h