Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-16785

if IS_ENCRYPTED is defined throws a warning

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Trivial
    • Lustre 2.16.0
    • None
    • None
    • 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);

      Attachments

        Activity

          People

            stancheff Shaun Tancheff
            stancheff Shaun Tancheff
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: