summaryrefslogtreecommitdiff
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-01-10 23:51:05 +0300
committerSteve French <smfrench@gmail.com>2018-01-25 04:49:07 +0300
commite36c048a9bd853b64c2b32a2ed90be2eff9bbd62 (patch)
treec8fcfbc2f3d3936af66ce872a19b0c068b97d7a1 /fs/cifs/connect.c
parent9aca7e454415f7878b28524e76bebe1170911a88 (diff)
downloadlinux-e36c048a9bd853b64c2b32a2ed90be2eff9bbd62.tar.xz
CIFS: SMBD: work around gcc -Wmaybe-uninitialized warning
GCC versions from 4.9 to 6.3 produce a false-positive warning when dealing with a conditional spin_lock_irqsave(): fs/cifs/smbdirect.c: In function 'smbd_recv_buf': include/linux/spinlock.h:260:3: warning: 'flags' may be used uninitialized in this function [-Wmaybe-uninitialized] This function calls some sleeping interfaces, so it is clear that it does not get called with interrupts disabled and there is no need to save the irq state before taking the spinlock. This lets us remove the variable, which makes the function slightly more efficient and avoids the warning. A further cleanup could do the same change for other functions in this file, but I did not want to take this too far for now. Fixes: ac69f66e54ca ("CIFS: SMBD: Implement function to receive data via RDMA receive") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/connect.c')
0 files changed, 0 insertions, 0 deletions