Geert Uytterhoeven
2014-08-10 20:51:48 UTC
If CONFIG_CIFS_WEAK_PW_HASH is not set:
fs/cifs/sess.c:751: warning: =E2=80=98sess_auth_lanman=E2=80=99 defined=
but not used
Commit cc87c47d9d7ac25554aa81cd8ded56e75f79c198 ("cifs: Separate
rawntlmssp auth from CIFS_SessSetup()") removed the sole user of the
dummy version of sess_auth_lanman() in the non-CONFIG_CIFS_WEAK_PW_HASH
case, but forgot to remove the actual function definition.
Remove the dummy version to fix this.
Signed-off-by: Geert Uytterhoeven <***@linux-m68k.org>
---
fs/cifs/sess.c | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c
index 39ee32688eac..8090ad3c5ea5 100644
--- a/fs/cifs/sess.c
+++ b/fs/cifs/sess.c
@@ -743,16 +743,7 @@ out:
sess_data->func =3D NULL;
sess_free_buffer(sess_data);
}
-
-#else
-
-static void
-sess_auth_lanman(struct sess_data *sess_data)
-{
- sess_data->result =3D -EOPNOTSUPP;
- sess_data->func =3D NULL;
-}
-#endif
+#endif /* CONFIG_CIFS_WEAK_PW_HASH */
=20
static void
sess_auth_ntlm(struct sess_data *sess_data)
--=20
1.9.1
fs/cifs/sess.c:751: warning: =E2=80=98sess_auth_lanman=E2=80=99 defined=
but not used
Commit cc87c47d9d7ac25554aa81cd8ded56e75f79c198 ("cifs: Separate
rawntlmssp auth from CIFS_SessSetup()") removed the sole user of the
dummy version of sess_auth_lanman() in the non-CONFIG_CIFS_WEAK_PW_HASH
case, but forgot to remove the actual function definition.
Remove the dummy version to fix this.
Signed-off-by: Geert Uytterhoeven <***@linux-m68k.org>
---
fs/cifs/sess.c | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c
index 39ee32688eac..8090ad3c5ea5 100644
--- a/fs/cifs/sess.c
+++ b/fs/cifs/sess.c
@@ -743,16 +743,7 @@ out:
sess_data->func =3D NULL;
sess_free_buffer(sess_data);
}
-
-#else
-
-static void
-sess_auth_lanman(struct sess_data *sess_data)
-{
- sess_data->result =3D -EOPNOTSUPP;
- sess_data->func =3D NULL;
-}
-#endif
+#endif /* CONFIG_CIFS_WEAK_PW_HASH */
=20
static void
sess_auth_ntlm(struct sess_data *sess_data)
--=20
1.9.1