[PATCH] cifs: set 'caps' variable as __maybe_unused in cifs_ioctl()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The variable is only used when
CONFIG_CIFS_ALLOW_INSECURE_LEGACY && CONFIG_CIFS_POSIX.

Mark it as "__maybe_unused" (instead of ifdef'ing it).

Signed-off-by: Enzo Matsumiya <ematsumiya@xxxxxxx>
---
 fs/cifs/ioctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/cifs/ioctl.c b/fs/cifs/ioctl.c
index b6e6e5d6c8dd..5d5d7de793d9 100644
--- a/fs/cifs/ioctl.c
+++ b/fs/cifs/ioctl.c
@@ -321,7 +321,7 @@ long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg)
 	struct tcon_link *tlink;
 	struct cifs_sb_info *cifs_sb;
 	__u64	ExtAttrBits = 0;
-	__u64   caps;
+	__u64   caps __maybe_unused; /* SMB1+UNIX only */
 
 	xid = get_xid();
 
-- 
2.35.3




[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux