summaryrefslogtreecommitdiff
path: root/fs/ksmbd/server.h
diff options
context:
space:
mode:
authorNamjae Jeon <namjae.jeon@samsung.com>2021-06-30 09:38:46 +0900
committerNamjae Jeon <namjae.jeon@samsung.com>2021-06-30 14:43:59 +0900
commitb9cbfb524d73ca953604dc421098b4a3aa14d095 (patch)
treebb4485b10b59c5fbae82659b44604794dd0d39b6 /fs/ksmbd/server.h
parent12411ad59d49e415f987719b8f676e2c6b99be37 (diff)
ksmbd: change server state type macro to enumeration
Change server state type macro to enumeration. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/ksmbd/server.h')
-rw-r--r--fs/ksmbd/server.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/fs/ksmbd/server.h b/fs/ksmbd/server.h
index b682d28963e8..2fce06e8b833 100644
--- a/fs/ksmbd/server.h
+++ b/fs/ksmbd/server.h
@@ -8,10 +8,15 @@
#include "smbacl.h"
-#define SERVER_STATE_STARTING_UP 0
-#define SERVER_STATE_RUNNING 1
-#define SERVER_STATE_RESETTING 2
-#define SERVER_STATE_SHUTTING_DOWN 3
+/*
+ * Server state type
+ */
+enum {
+ SERVER_STATE_STARTING_UP,
+ SERVER_STATE_RUNNING,
+ SERVER_STATE_RESETTING,
+ SERVER_STATE_SHUTTING_DOWN,
+};
#define SERVER_CONF_NETBIOS_NAME 0
#define SERVER_CONF_SERVER_STRING 1