mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[NETLINK]: Possible cleanups.
- make the following needlessly global variables static: - core/rtnetlink.c: struct rtnl_msg_handlers[] - netfilter/nf_conntrack_proto.c: struct nf_ct_protos[] - make the following needlessly global functions static: - core/rtnetlink.c: rtnl_dump_all() - netlink/af_netlink.c: netlink_queue_skip() Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
55404bca6c
commit
42bad1da50
6 changed files with 5 additions and 11 deletions
|
|
@ -121,6 +121,7 @@ static DECLARE_WAIT_QUEUE_HEAD(nl_table_wait);
|
|||
|
||||
static int netlink_dump(struct sock *sk);
|
||||
static void netlink_destroy_callback(struct netlink_callback *cb);
|
||||
static void netlink_queue_skip(struct nlmsghdr *nlh, struct sk_buff *skb);
|
||||
|
||||
static DEFINE_RWLOCK(nl_table_lock);
|
||||
static atomic_t nl_table_users = ATOMIC_INIT(0);
|
||||
|
|
@ -1568,7 +1569,7 @@ void netlink_run_queue(struct sock *sk, unsigned int *qlen,
|
|||
* Pulls the given netlink message off the socket buffer so the next
|
||||
* call to netlink_queue_run() will not reconsider the message.
|
||||
*/
|
||||
void netlink_queue_skip(struct nlmsghdr *nlh, struct sk_buff *skb)
|
||||
static void netlink_queue_skip(struct nlmsghdr *nlh, struct sk_buff *skb)
|
||||
{
|
||||
int msglen = NLMSG_ALIGN(nlh->nlmsg_len);
|
||||
|
||||
|
|
@ -1851,7 +1852,6 @@ core_initcall(netlink_proto_init);
|
|||
|
||||
EXPORT_SYMBOL(netlink_ack);
|
||||
EXPORT_SYMBOL(netlink_run_queue);
|
||||
EXPORT_SYMBOL(netlink_queue_skip);
|
||||
EXPORT_SYMBOL(netlink_broadcast);
|
||||
EXPORT_SYMBOL(netlink_dump_start);
|
||||
EXPORT_SYMBOL(netlink_kernel_create);
|
||||
|
|
|
|||
Loading…
Reference in a new issue