]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: hide unused functions
authorArnd Bergmann <arnd@arndb.de>
Tue, 5 Sep 2017 09:24:15 +0000 (11:24 +0200)
committerSteve French <smfrench@gmail.com>
Mon, 18 Sep 2017 04:10:48 +0000 (23:10 -0500)
commit1368f155a972eab037f81b5dea82afd544227552
tree6105e5d1fb2fdaa4d188093f974f51a015c3a291
parent9764c02fcbad40001fd3f63558d918e4d519bb75
cifs: hide unused functions

The newly added SMB2+ attribute support causes unused function
warnings when CONFIG_CIFS_XATTR is disabled:

fs/cifs/smb2ops.c:563:1: error: 'smb2_set_ea' defined but not used [-Werror=unused-function]
 smb2_set_ea(const unsigned int xid, struct cifs_tcon *tcon,
fs/cifs/smb2ops.c:513:1: error: 'smb2_query_eas' defined but not used [-Werror=unused-function]
 smb2_query_eas(const unsigned int xid, struct cifs_tcon *tcon,

This adds another #ifdef around the affected functions.

Fixes: 5517554e4313 ("cifs: Add support for writing attributes on SMB2+")
Fixes: 95907fea4fd8 ("cifs: Add support for reading attributes on SMB2+")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/smb2ops.c