Commit c88c8d7a authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman

slimbus: make functions slim_ack_txn and slim_alloc_txbuf static

The functions slim_ack_txn and slim_alloc_txbuf are local to the
source and do not need to be in global scope, so make them static.

Cleans up sparse warnings:
symbol 'slim_ack_txn' was not declared. Should it be static?
symbol 'slim_alloc_txbuf' was not declared. Should it be static?
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 551b9ee4
...@@ -146,7 +146,7 @@ static void *slim_alloc_rxbuf(struct qcom_slim_ctrl *ctrl) ...@@ -146,7 +146,7 @@ static void *slim_alloc_rxbuf(struct qcom_slim_ctrl *ctrl)
return ctrl->rx.base + (idx * ctrl->rx.sl_sz); return ctrl->rx.base + (idx * ctrl->rx.sl_sz);
} }
void slim_ack_txn(struct qcom_slim_ctrl *ctrl, int err) static void slim_ack_txn(struct qcom_slim_ctrl *ctrl, int err)
{ {
struct completion *comp; struct completion *comp;
unsigned long flags; unsigned long flags;
...@@ -299,8 +299,9 @@ static int qcom_clk_pause_wakeup(struct slim_controller *sctrl) ...@@ -299,8 +299,9 @@ static int qcom_clk_pause_wakeup(struct slim_controller *sctrl)
return 0; return 0;
} }
void *slim_alloc_txbuf(struct qcom_slim_ctrl *ctrl, struct slim_msg_txn *txn, static void *slim_alloc_txbuf(struct qcom_slim_ctrl *ctrl,
struct completion *done) struct slim_msg_txn *txn,
struct completion *done)
{ {
unsigned long flags; unsigned long flags;
int idx; int idx;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment