Message ID | 20220823142603.9126-1-ematsumiya@suse.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | cifs: set 'caps' variable as __maybe_unused in cifs_ioctl() | expand |
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();
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@suse.de> --- fs/cifs/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)