Commit 5719e5eb authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller

net: hinic: make functions set_ctrl0 and set_ctrl1 static

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

Cleans up sparse warnings:
symbol 'set_ctrl0' was not declared. Should it be static?
symbol 'set_ctrl1' was not declared. Should it be static?
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 257a7303
...@@ -423,7 +423,7 @@ static irqreturn_t ceq_interrupt(int irq, void *data) ...@@ -423,7 +423,7 @@ static irqreturn_t ceq_interrupt(int irq, void *data)
return IRQ_HANDLED; return IRQ_HANDLED;
} }
void set_ctrl0(struct hinic_eq *eq) static void set_ctrl0(struct hinic_eq *eq)
{ {
struct msix_entry *msix_entry = &eq->msix_entry; struct msix_entry *msix_entry = &eq->msix_entry;
enum hinic_eq_type type = eq->type; enum hinic_eq_type type = eq->type;
...@@ -474,7 +474,7 @@ void set_ctrl0(struct hinic_eq *eq) ...@@ -474,7 +474,7 @@ void set_ctrl0(struct hinic_eq *eq)
} }
} }
void set_ctrl1(struct hinic_eq *eq) static void set_ctrl1(struct hinic_eq *eq)
{ {
enum hinic_eq_type type = eq->type; enum hinic_eq_type type = eq->type;
u32 page_size_val, elem_size; u32 page_size_val, elem_size;
......
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