提交 a26ba7fa 编写于 作者: R Rashika Kheria 提交者: Jens Axboe

drivers: block: Mark the functions as static in skd_main.c

Mark functions skd_skmsg_state_to_str() and skd_skreq_state_to_str() as
static in skd_main.c because they are not used outside this file.

This eliminates the following warnings in skd_main.c:
drivers/block/skd_main.c:5272:13: warning: no previous prototype for ‘skd_skmsg_state_to_str’ [-Wmissing-prototypes]
drivers/block/skd_main.c:5284:13: warning: no previous prototype for ‘skd_skreq_state_to_str’ [-Wmissing-prototypes]
Signed-off-by: NRashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: NJosh Triplett <josh@joshtriplett.org>
Signed-off-by: NJens Axboe <axboe@kernel.dk>
上级 60e53a67
...@@ -5269,7 +5269,7 @@ const char *skd_skdev_state_to_str(enum skd_drvr_state state) ...@@ -5269,7 +5269,7 @@ const char *skd_skdev_state_to_str(enum skd_drvr_state state)
} }
} }
const char *skd_skmsg_state_to_str(enum skd_fit_msg_state state) static const char *skd_skmsg_state_to_str(enum skd_fit_msg_state state)
{ {
switch (state) { switch (state) {
case SKD_MSG_STATE_IDLE: case SKD_MSG_STATE_IDLE:
...@@ -5281,7 +5281,7 @@ const char *skd_skmsg_state_to_str(enum skd_fit_msg_state state) ...@@ -5281,7 +5281,7 @@ const char *skd_skmsg_state_to_str(enum skd_fit_msg_state state)
} }
} }
const char *skd_skreq_state_to_str(enum skd_req_state state) static const char *skd_skreq_state_to_str(enum skd_req_state state)
{ {
switch (state) { switch (state) {
case SKD_REQ_STATE_IDLE: case SKD_REQ_STATE_IDLE:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册