OSDN Git Service

cifs: hide unused functions
authorArnd Bergmann <arnd@arndb.de>
Tue, 27 Jun 2017 15:06:13 +0000 (17:06 +0200)
committerSteve French <smfrench@gmail.com>
Thu, 6 Jul 2017 00:58:02 +0000 (19:58 -0500)
commit84908426f2097d5c6e254c73ffcb6923a355dbda
tree08ac00ffedecc9922fd9d7be593693889bd66857
parent2f1afe25997fc28027ae95d89ccf03e1eef2dca1
cifs: hide unused functions

Some functions are only referenced under an #ifdef, causing a harmless
warning:

fs/cifs/smb2ops.c:1374:1: error: 'get_smb2_acl' defined but not used [-Werror=unused-function]

We could mark them __maybe_unused or add another #ifdef, I picked
the second approach here.

Fixes: b3fdda4d1e1b ("cifs: Use smb 2 - 3 and cifsacl mount options getacl functions")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/smb2ops.c