Skip to content

Commit

Permalink
net: Make static
Browse files Browse the repository at this point in the history
Sparse asked whether these could be static.

Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
RoelKluin authored and davem330 committed Dec 10, 2008
1 parent 2107fb8 commit 5eaa65b
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion net/decnet/dn_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ static void dn_dev_set_timer(struct net_device *dev)
add_timer(&dn_db->timer);
}

struct dn_dev *dn_dev_create(struct net_device *dev, int *err)
static struct dn_dev *dn_dev_create(struct net_device *dev, int *err)
{
int i;
struct dn_dev_parms *p = dn_dev_list;
Expand Down
4 changes: 2 additions & 2 deletions net/decnet/dn_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ static int dn_insert_route(struct dn_route *rt, unsigned hash, struct dn_route *
return 0;
}

void dn_run_flush(unsigned long dummy)
static void dn_run_flush(unsigned long dummy)
{
int i;
struct dn_route *rt, *next;
Expand Down Expand Up @@ -1422,7 +1422,7 @@ static int dn_route_input_slow(struct sk_buff *skb)
goto done;
}

int dn_route_input(struct sk_buff *skb)
static int dn_route_input(struct sk_buff *skb)
{
struct dn_route *rt;
struct dn_skb_cb *cb = DN_SKB_CB(skb);
Expand Down
4 changes: 2 additions & 2 deletions net/dsa/mv88e6060.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,14 +273,14 @@ static struct dsa_switch_driver mv88e6060_switch_driver = {
.poll_link = mv88e6060_poll_link,
};

int __init mv88e6060_init(void)
static int __init mv88e6060_init(void)
{
register_switch_driver(&mv88e6060_switch_driver);
return 0;
}
module_init(mv88e6060_init);

void __exit mv88e6060_cleanup(void)
static void __exit mv88e6060_cleanup(void)
{
unregister_switch_driver(&mv88e6060_switch_driver);
}
Expand Down
4 changes: 2 additions & 2 deletions net/dsa/mv88e6123_61_65.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,14 +407,14 @@ static struct dsa_switch_driver mv88e6123_61_65_switch_driver = {
.get_sset_count = mv88e6123_61_65_get_sset_count,
};

int __init mv88e6123_61_65_init(void)
static int __init mv88e6123_61_65_init(void)
{
register_switch_driver(&mv88e6123_61_65_switch_driver);
return 0;
}
module_init(mv88e6123_61_65_init);

void __exit mv88e6123_61_65_cleanup(void)
static void __exit mv88e6123_61_65_cleanup(void)
{
unregister_switch_driver(&mv88e6123_61_65_switch_driver);
}
Expand Down
4 changes: 2 additions & 2 deletions net/dsa/mv88e6131.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,14 +366,14 @@ static struct dsa_switch_driver mv88e6131_switch_driver = {
.get_sset_count = mv88e6131_get_sset_count,
};

int __init mv88e6131_init(void)
static int __init mv88e6131_init(void)
{
register_switch_driver(&mv88e6131_switch_driver);
return 0;
}
module_init(mv88e6131_init);

void __exit mv88e6131_cleanup(void)
static void __exit mv88e6131_cleanup(void)
{
unregister_switch_driver(&mv88e6131_switch_driver);
}
Expand Down
14 changes: 7 additions & 7 deletions net/irda/irttp.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static void irttp_todo_expired(unsigned long data)
*
* Flushes (removes all frames) in transitt-buffer (tx_list)
*/
void irttp_flush_queues(struct tsap_cb *self)
static void irttp_flush_queues(struct tsap_cb *self)
{
struct sk_buff* skb;

Expand Down Expand Up @@ -1266,9 +1266,9 @@ static void irttp_connect_confirm(void *instance, void *sap,
* Some other device is connecting to this TSAP
*
*/
void irttp_connect_indication(void *instance, void *sap, struct qos_info *qos,
__u32 max_seg_size, __u8 max_header_size,
struct sk_buff *skb)
static void irttp_connect_indication(void *instance, void *sap,
struct qos_info *qos, __u32 max_seg_size, __u8 max_header_size,
struct sk_buff *skb)
{
struct tsap_cb *self;
struct lsap_cb *lsap;
Expand Down Expand Up @@ -1579,8 +1579,8 @@ EXPORT_SYMBOL(irttp_disconnect_request);
* Disconnect indication, TSAP disconnected by peer?
*
*/
void irttp_disconnect_indication(void *instance, void *sap, LM_REASON reason,
struct sk_buff *skb)
static void irttp_disconnect_indication(void *instance, void *sap,
LM_REASON reason, struct sk_buff *skb)
{
struct tsap_cb *self;

Expand Down Expand Up @@ -1664,7 +1664,7 @@ static void irttp_do_data_indication(struct tsap_cb *self, struct sk_buff *skb)
* Check if we have any frames to be transmitted, or if we have any
* available credit to give away.
*/
void irttp_run_rx_queue(struct tsap_cb *self)
static void irttp_run_rx_queue(struct tsap_cb *self)
{
struct sk_buff *skb;
int more = 0;
Expand Down
2 changes: 1 addition & 1 deletion net/irda/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ static void irlap_backoff_timer_expired(void *data)
*
*
*/
void irlap_media_busy_expired(void* data)
static void irlap_media_busy_expired(void *data)
{
struct irlap_cb *self = (struct irlap_cb *) data;

Expand Down
2 changes: 1 addition & 1 deletion net/phonet/sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static struct ctl_table phonet_table[] = {
{ .ctl_name = 0 }
};

struct ctl_path phonet_ctl_path[] = {
static struct ctl_path phonet_ctl_path[] = {
{ .procname = "net", .ctl_name = CTL_NET, },
{ .procname = "phonet", .ctl_name = CTL_UNNUMBERED, },
{ },
Expand Down
2 changes: 1 addition & 1 deletion net/rxrpc/ar-connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ static void rxrpc_destroy_connection(struct rxrpc_connection *conn)
/*
* reap dead connections
*/
void rxrpc_connection_reaper(struct work_struct *work)
static void rxrpc_connection_reaper(struct work_struct *work)
{
struct rxrpc_connection *conn, *_p;
unsigned long now, earliest, reap_time;
Expand Down
2 changes: 1 addition & 1 deletion net/rxrpc/ar-connevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ static int rxrpc_abort_connection(struct rxrpc_connection *conn,
* mark a call as being on a now-secured channel
* - must be called with softirqs disabled
*/
void rxrpc_call_is_secure(struct rxrpc_call *call)
static void rxrpc_call_is_secure(struct rxrpc_call *call)
{
_enter("%p", call);
if (call) {
Expand Down
2 changes: 1 addition & 1 deletion net/rxrpc/ar-security.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static void rxrpc_security_put(struct rxrpc_security *sec)
/*
* look up an rxrpc security module
*/
struct rxrpc_security *rxrpc_security_lookup(u8 security_index)
static struct rxrpc_security *rxrpc_security_lookup(u8 security_index)
{
struct rxrpc_security *sec = NULL;

Expand Down
2 changes: 1 addition & 1 deletion net/sunrpc/xprtrdma/svc_rdma_sendto.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
* array is only concerned with the reply we are assured that we have
* on extra page for the RPCRMDA header.
*/
int fast_reg_xdr(struct svcxprt_rdma *xprt,
static int fast_reg_xdr(struct svcxprt_rdma *xprt,
struct xdr_buf *xdr,
struct svc_rdma_req_map *vec)
{
Expand Down
2 changes: 1 addition & 1 deletion net/sunrpc/xprtrdma/svc_rdma_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static int svc_rdma_has_wspace(struct svc_xprt *xprt);
static void rq_cq_reap(struct svcxprt_rdma *xprt);
static void sq_cq_reap(struct svcxprt_rdma *xprt);

DECLARE_TASKLET(dto_tasklet, dto_tasklet_func, 0UL);
static DECLARE_TASKLET(dto_tasklet, dto_tasklet_func, 0UL);
static DEFINE_SPINLOCK(dto_lock);
static LIST_HEAD(dto_xprt_q);

Expand Down

0 comments on commit 5eaa65b

Please sign in to comment.