Thread (3 messages) 3 messages, 2 authors, 2016-09-07

Re: [PATCH] net: hns: declare function as static

flat view

From: David Miller <davem@davemloft.net>
Date: 2016-09-06 23:21:00
Also in: lkml

From: Kefeng Wang <redacted>
Date: Tue, 6 Sep 2016 19:53:11 +0800
Declare function as static to kill warning about missing-prototypes.

Cc: Yisen Zhuang <redacted>
Cc: Kejian Yan <redacted>
Signed-off-by: Kefeng Wang <redacted>
 ...
quoted hunk ↗ jump to hunk
@@ -73,7 +73,7 @@ static struct ring_pair_cb *hns_ae_get_ring_pair(struct hnae_queue *q)
 	return container_of(q, struct ring_pair_cb, q);
 }
 
-struct hnae_handle *hns_ae_get_handle(struct hnae_ae_dev *dev,
+static struct hnae_handle *hns_ae_get_handle(struct hnae_ae_dev *dev,
 				      u32 port_id)
You have to adjust the indentation of the arguments on the following lines
if you change where the openning parenthesis is.  They must start exactly
at the column folling that openning parenthesis.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help