summaryrefslogtreecommitdiff
path: root/fs/ksmbd/server.h
diff options
context:
space:
mode:
authorNamjae Jeon <namjae.jeon@samsung.com>2021-06-30 09:39:15 +0900
committerNamjae Jeon <namjae.jeon@samsung.com>2021-06-30 14:44:01 +0900
commitc63ee4a521e766da6ec5ee1d2058d1ec06216214 (patch)
treeae6c2c368de79071ef216ff314c700da3df51a08 /fs/ksmbd/server.h
parentb9cbfb524d73ca953604dc421098b4a3aa14d095 (diff)
ksmbd: change server config string index to enumeration
Change server config string index 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.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/fs/ksmbd/server.h b/fs/ksmbd/server.h
index 2fce06e8b833..ac9d932f8c8a 100644
--- a/fs/ksmbd/server.h
+++ b/fs/ksmbd/server.h
@@ -18,9 +18,14 @@ enum {
SERVER_STATE_SHUTTING_DOWN,
};
-#define SERVER_CONF_NETBIOS_NAME 0
-#define SERVER_CONF_SERVER_STRING 1
-#define SERVER_CONF_WORK_GROUP 2
+/*
+ * Server global config string index
+ */
+enum {
+ SERVER_CONF_NETBIOS_NAME,
+ SERVER_CONF_SERVER_STRING,
+ SERVER_CONF_WORK_GROUP,
+};
struct ksmbd_server_config {
unsigned int flags;