[LU-16785] if IS_ENCRYPTED is defined throws a warning Created: 01/May/23  Updated: 31/May/23  Resolved: 31/May/23

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.16.0

Type: Bug Priority: Trivial
Reporter: Shaun Tancheff Assignee: Shaun Tancheff
Resolution: Fixed Votes: 0
Labels: None

Rank (Obsolete): 9223372036854775807

 Description   

LB_CHECK_COMPILE([if IS_ENCRYPTED is defined],
is_encrypted, [
#include <linux/fs.h>
],[
IS_ENCRYPTED((struct inode *)0);
...
Throws a warning with -Wunused-value and can be seen in the config.log

include/linux/fs.h:2066:47: warning: statement with no effect [-Wunused-value]

Change this to explicitly ignore the value
(void)IS_ENCRYPTED((struct inode *)1);



 Comments   
Comment by Gerrit Updater [ 01/May/23 ]

"Shaun Tancheff <shaun.tancheff@hpe.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/50818
Subject: LU-16785 build: Cleanup test for IS_ENCRYPTED macro
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 46cb118112d9dbcf30e895a9b7f4358a61c6edeb

Comment by Gerrit Updater [ 31/May/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/50818/
Subject: LU-16785 build: Cleanup test for IS_ENCRYPTED macro
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: eb54edd69760df1a2772b21d85eb9756e8441180

Comment by Peter Jones [ 31/May/23 ]

Landed for 2.16

Generated at Sat Feb 10 03:29:59 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.