Skip to content

Commit

Permalink
lapb: move EXPORT_SYMBOL after functions.
Browse files Browse the repository at this point in the history
See Documentation/CodingStyle Chapter 6

Signed-off-by: Fabian Frederick <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Fabian Frederick authored and davem330 committed Oct 24, 2014
1 parent 5f3619f commit 75da146
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions net/lapb/lapb_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ static void __lapb_remove_cb(struct lapb_cb *lapb)
lapb_put(lapb);
}
}
EXPORT_SYMBOL(lapb_register);

/*
* Add a socket to the bound sockets list.
Expand Down Expand Up @@ -195,6 +196,7 @@ int lapb_unregister(struct net_device *dev)
write_unlock_bh(&lapb_list_lock);
return rc;
}
EXPORT_SYMBOL(lapb_unregister);

int lapb_getparms(struct net_device *dev, struct lapb_parms_struct *parms)
{
Expand Down Expand Up @@ -227,6 +229,7 @@ int lapb_getparms(struct net_device *dev, struct lapb_parms_struct *parms)
out:
return rc;
}
EXPORT_SYMBOL(lapb_getparms);

int lapb_setparms(struct net_device *dev, struct lapb_parms_struct *parms)
{
Expand Down Expand Up @@ -262,6 +265,7 @@ int lapb_setparms(struct net_device *dev, struct lapb_parms_struct *parms)
out:
return rc;
}
EXPORT_SYMBOL(lapb_setparms);

int lapb_connect_request(struct net_device *dev)
{
Expand Down Expand Up @@ -290,6 +294,7 @@ int lapb_connect_request(struct net_device *dev)
out:
return rc;
}
EXPORT_SYMBOL(lapb_connect_request);

int lapb_disconnect_request(struct net_device *dev)
{
Expand Down Expand Up @@ -334,6 +339,7 @@ int lapb_disconnect_request(struct net_device *dev)
out:
return rc;
}
EXPORT_SYMBOL(lapb_disconnect_request);

int lapb_data_request(struct net_device *dev, struct sk_buff *skb)
{
Expand All @@ -355,6 +361,7 @@ int lapb_data_request(struct net_device *dev, struct sk_buff *skb)
out:
return rc;
}
EXPORT_SYMBOL(lapb_data_request);

int lapb_data_received(struct net_device *dev, struct sk_buff *skb)
{
Expand All @@ -369,6 +376,7 @@ int lapb_data_received(struct net_device *dev, struct sk_buff *skb)

return rc;
}
EXPORT_SYMBOL(lapb_data_received);

void lapb_connect_confirmation(struct lapb_cb *lapb, int reason)
{
Expand Down Expand Up @@ -415,15 +423,6 @@ int lapb_data_transmit(struct lapb_cb *lapb, struct sk_buff *skb)
return used;
}

EXPORT_SYMBOL(lapb_register);
EXPORT_SYMBOL(lapb_unregister);
EXPORT_SYMBOL(lapb_getparms);
EXPORT_SYMBOL(lapb_setparms);
EXPORT_SYMBOL(lapb_connect_request);
EXPORT_SYMBOL(lapb_disconnect_request);
EXPORT_SYMBOL(lapb_data_request);
EXPORT_SYMBOL(lapb_data_received);

static int __init lapb_init(void)
{
return 0;
Expand Down

0 comments on commit 75da146

Please sign in to comment.