Skip to content

Commit

Permalink
Merge branch 'net-whitespace-cleanups'
Browse files Browse the repository at this point in the history
Stephen Hemminger says:

====================
net whitespace cleanups

Ran script that I use to check for trailing whitespace and
blank lines at end of files across all files in net/ directory.
These are errors that checkpatch reports and git flags.

These are the resulting fixes broken up mostly by subsystem.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jul 24, 2018
2 parents 8dd3020 + e446a27 commit 7836899
Show file tree
Hide file tree
Showing 60 changed files with 15 additions and 75 deletions.
1 change: 0 additions & 1 deletion net/8021q/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ obj-$(CONFIG_VLAN_8021Q) += 8021q.o
8021q-$(CONFIG_VLAN_8021Q_GVRP) += vlan_gvrp.o
8021q-$(CONFIG_VLAN_8021Q_MVRP) += vlan_mvrp.o
8021q-$(CONFIG_PROC_FS) += vlanproc.o

2 changes: 1 addition & 1 deletion net/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ menuconfig NET
The reason is that some programs need kernel networking support even
when running on a stand-alone machine that isn't connected to any
other computer.

If you are upgrading from an older kernel, you
should consider updating your networking tools too because changes
in the kernel and the tools often go hand in hand. The tools are
Expand Down
6 changes: 0 additions & 6 deletions net/atm/mpoa_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,3 @@ void mpc_proc_clean(void)
}

#endif /* CONFIG_PROC_FS */






1 change: 0 additions & 1 deletion net/ax25/ax25_addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,4 +304,3 @@ void ax25_digi_invert(const ax25_digi *in, ax25_digi *out)
}
}
}

1 change: 0 additions & 1 deletion net/ax25/ax25_ds_in.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,4 +299,3 @@ int ax25_ds_frame_in(ax25_cb *ax25, struct sk_buff *skb, int type)

return queued;
}

1 change: 0 additions & 1 deletion net/ax25/ax25_ds_subr.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,4 +205,3 @@ void ax25_dama_off(ax25_cb *ax25)
ax25->condition &= ~AX25_COND_DAMA_MODE;
ax25_dev_dama_off(ax25->ax25_dev);
}

1 change: 0 additions & 1 deletion net/ax25/ax25_ip.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,3 @@ const struct header_ops ax25_header_ops = {

EXPORT_SYMBOL(ax25_header_ops);
EXPORT_SYMBOL(ax25_ip_xmit);

1 change: 0 additions & 1 deletion net/ax25/ax25_out.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,4 +394,3 @@ int ax25_check_iframes_acked(ax25_cb *ax25, unsigned short nr)
}
return 0;
}

1 change: 0 additions & 1 deletion net/bpfilter/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ config BPFILTER_UMH
help
This builds bpfilter kernel module with embedded user mode helper
endif

1 change: 0 additions & 1 deletion net/core/neighbour.c
Original file line number Diff line number Diff line change
Expand Up @@ -3274,4 +3274,3 @@ static int __init neigh_init(void)
}

subsys_initcall(neigh_init);

1 change: 0 additions & 1 deletion net/decnet/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@ config DECNET_ROUTER
to work.

See <file:Documentation/networking/decnet.txt> for more information.

1 change: 0 additions & 1 deletion net/decnet/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ decnet-$(CONFIG_DECNET_ROUTER) += dn_fib.o dn_rules.o dn_table.o
decnet-y += sysctl_net_decnet.o

obj-$(CONFIG_NETFILTER) += netfilter/

5 changes: 2 additions & 3 deletions net/decnet/TODO
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ Steve's quick list of things that need finishing off:

o Verify errors etc. against POSIX 1003.1g (draft)

o Using send/recvmsg() to get at connect/disconnect data (POSIX 1003.1g)
o Using send/recvmsg() to get at connect/disconnect data (POSIX 1003.1g)
[maybe this should be done at socket level... the control data in the
send/recvmsg() calls should simply be a vector of set/getsockopt()
calls]

o check MSG_CTRUNC is set where it should be.

o Find all the commonality between DECnet and IPv4 routing code and extract
o Find all the commonality between DECnet and IPv4 routing code and extract
it into a small library of routines. [probably a project for 2.7.xx]

o Add perfect socket hashing - an idea suggested by Paul Koning. Currently
Expand All @@ -38,4 +38,3 @@ Steve's quick list of things that need finishing off:
o DECnet sendpages() function

o AIO for DECnet

2 changes: 0 additions & 2 deletions net/decnet/dn_fib.c
Original file line number Diff line number Diff line change
Expand Up @@ -797,5 +797,3 @@ void __init dn_fib_init(void)
rtnl_register_module(THIS_MODULE, PF_DECnet, RTM_DELROUTE,
dn_fib_rtm_delroute, NULL, 0);
}


1 change: 0 additions & 1 deletion net/decnet/dn_nsp_in.c
Original file line number Diff line number Diff line change
Expand Up @@ -912,4 +912,3 @@ int dn_nsp_backlog_rcv(struct sock *sk, struct sk_buff *skb)

return NET_RX_SUCCESS;
}

1 change: 0 additions & 1 deletion net/decnet/dn_nsp_out.c
Original file line number Diff line number Diff line change
Expand Up @@ -701,4 +701,3 @@ void dn_nsp_send_conninit(struct sock *sk, unsigned char msgflg)

dn_nsp_send(skb);
}

1 change: 0 additions & 1 deletion net/decnet/dn_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -1925,4 +1925,3 @@ void __exit dn_route_cleanup(void)
remove_proc_entry("decnet_cache", init_net.proc_net);
dst_entries_destroy(&dn_dst_ops);
}

2 changes: 0 additions & 2 deletions net/decnet/dn_rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,5 +256,3 @@ void __exit dn_fib_rules_cleanup(void)
rtnl_unlock();
rcu_barrier();
}


1 change: 0 additions & 1 deletion net/decnet/netfilter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
#

obj-$(CONFIG_DECNET_NF_GRABULATOR) += dn_rtmsg.o

1 change: 0 additions & 1 deletion net/decnet/netfilter/dn_rtmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,3 @@ MODULE_ALIAS_NET_PF_PROTO(PF_NETLINK, NETLINK_DNRTMSG);

module_init(dn_rtmsg_init);
module_exit(dn_rtmsg_fini);

1 change: 0 additions & 1 deletion net/dns_resolver/dns_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,4 +320,3 @@ static void __exit exit_dns_resolver(void)
module_init(init_dns_resolver)
module_exit(exit_dns_resolver)
MODULE_LICENSE("GPL");

1 change: 0 additions & 1 deletion net/ieee802154/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,4 +400,3 @@ module_exit(wpan_phy_class_exit);
MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("IEEE 802.15.4 configuration interface");
MODULE_AUTHOR("Dmitry Eremin-Solenikov");

1 change: 0 additions & 1 deletion net/ieee802154/nl_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,3 @@ const struct nla_policy ieee802154_policy[IEEE802154_ATTR_MAX + 1] = {
[IEEE802154_ATTR_LLSEC_DEV_OVERRIDE] = { .type = NLA_U8, },
[IEEE802154_ATTR_LLSEC_DEV_KEY_MODE] = { .type = NLA_U8, },
};

4 changes: 2 additions & 2 deletions net/ipv4/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ config INET_DIAG
Support for INET (TCP, DCCP, etc) socket monitoring interface used by
native Linux tools such as ss. ss is included in iproute2, currently
downloadable at:

http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2

If unsure, say Y.
Expand Down Expand Up @@ -600,7 +600,7 @@ config TCP_CONG_VENO
distinguishing to circumvent the difficult judgment of the packet loss
type. TCP Veno cuts down less congestion window in response to random
loss packets.
See <http://ieeexplore.ieee.org/xpl/freeabs_all.jsp?arnumber=1177186>
See <http://ieeexplore.ieee.org/xpl/freeabs_all.jsp?arnumber=1177186>

config TCP_CONG_YEAH
tristate "YeAH TCP"
Expand Down
2 changes: 1 addition & 1 deletion net/ipv4/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ obj-$(CONFIG_INET_XFRM_MODE_TRANSPORT) += xfrm4_mode_transport.o
obj-$(CONFIG_INET_XFRM_MODE_TUNNEL) += xfrm4_mode_tunnel.o
obj-$(CONFIG_IP_PNP) += ipconfig.o
obj-$(CONFIG_NETFILTER) += netfilter.o netfilter/
obj-$(CONFIG_INET_DIAG) += inet_diag.o
obj-$(CONFIG_INET_DIAG) += inet_diag.o
obj-$(CONFIG_INET_TCP_DIAG) += tcp_diag.o
obj-$(CONFIG_INET_UDP_DIAG) += udp_diag.o
obj-$(CONFIG_INET_RAW_DIAG) += raw_diag.o
Expand Down
1 change: 0 additions & 1 deletion net/ipv4/bpfilter/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
obj-$(CONFIG_BPFILTER) += sockopt.o

2 changes: 1 addition & 1 deletion net/ipv6/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ menuconfig IPV6
Documentation/networking/ipv6.txt and read the HOWTO at
<http://www.tldp.org/HOWTO/Linux+IPv6-HOWTO/>

To compile this protocol support as a module, choose M here: the
To compile this protocol support as a module, choose M here: the
module will be called ipv6.

if IPV6
Expand Down
1 change: 0 additions & 1 deletion net/ipv6/ila/ila_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,3 @@ void ila_update_ipv6_locator(struct sk_buff *skb, struct ila_params *p,
/* Now change destination address */
iaddr->loc = p->locator;
}

1 change: 0 additions & 1 deletion net/ipv6/ila/ila_xlat.c
Original file line number Diff line number Diff line change
Expand Up @@ -663,4 +663,3 @@ static int ila_xlat_addr(struct sk_buff *skb, bool sir2ila)

return 0;
}

1 change: 0 additions & 1 deletion net/iucv/af_iucv.c
Original file line number Diff line number Diff line change
Expand Up @@ -2515,4 +2515,3 @@ MODULE_DESCRIPTION("IUCV Sockets ver " VERSION);
MODULE_VERSION(VERSION);
MODULE_LICENSE("GPL");
MODULE_ALIAS_NETPROTO(PF_IUCV);

1 change: 0 additions & 1 deletion net/kcm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ config AF_KCM
KCM (Kernel Connection Multiplexor) sockets provide a method
for multiplexing messages of a message based application
protocol over kernel connectons (e.g. TCP connections).

1 change: 0 additions & 1 deletion net/kcm/kcmsock.c
Original file line number Diff line number Diff line change
Expand Up @@ -2104,4 +2104,3 @@ module_exit(kcm_exit);

MODULE_LICENSE("GPL");
MODULE_ALIAS_NETPROTO(PF_KCM);

1 change: 0 additions & 1 deletion net/l2tp/l2tp_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1795,4 +1795,3 @@ MODULE_AUTHOR("James Chapman <jchapman@katalix.com>");
MODULE_DESCRIPTION("L2TP core");
MODULE_LICENSE("GPL");
MODULE_VERSION(L2TP_DRV_VERSION);

2 changes: 1 addition & 1 deletion net/llc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ config LLC2
tristate "ANSI/IEEE 802.2 LLC type 2 Support"
select LLC
help
This is a Logical Link Layer type 2, connection oriented support.
This is a Logical Link Layer type 2, connection oriented support.
Select this if you want to have support for PF_LLC sockets.
2 changes: 1 addition & 1 deletion net/llc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Copyright (c) 1997 by Procom Technology,Inc.
# 2001-2003 by Arnaldo Carvalho de Melo <acme@conectiva.com.br>
#
# This program can be redistributed or modified under the terms of the
# This program can be redistributed or modified under the terms of the
# GNU General Public License as published by the Free Software Foundation.
# This program is distributed without any warranty or implied warranty
# of merchantability or fitness for a particular purpose.
Expand Down
1 change: 0 additions & 1 deletion net/llc/llc_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,3 @@ int llc_send_disc(struct sock *sk)
sock_put(sk);
return rc;
}

1 change: 0 additions & 1 deletion net/mac80211/rc80211_minstrel.c
Original file line number Diff line number Diff line change
Expand Up @@ -751,4 +751,3 @@ rc80211_minstrel_exit(void)
{
ieee80211_rate_control_unregister(&mac80211_minstrel);
}

2 changes: 1 addition & 1 deletion net/mpls/mpls_iptunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ static int mpls_fill_encap_info(struct sk_buff *skb,
struct lwtunnel_state *lwtstate)
{
struct mpls_iptunnel_encap *tun_encap_info;

tun_encap_info = mpls_lwtunnel_encap(lwtstate);

if (nla_put_labels(skb, MPLS_IPTUNNEL_DST, tun_encap_info->labels,
Expand Down
1 change: 0 additions & 1 deletion net/rds/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ config RDS_DEBUG
bool "RDS debugging messages"
depends on RDS
default n

1 change: 0 additions & 1 deletion net/rds/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ rds_tcp-y := tcp.o tcp_connect.o tcp_listen.o tcp_recv.o \
tcp_send.o tcp_stats.o

ccflags-$(CONFIG_RDS_DEBUG) := -DRDS_DEBUG

1 change: 0 additions & 1 deletion net/rds/ib.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,4 +568,3 @@ int rds_ib_init(void)
}

MODULE_LICENSE("GPL");

1 change: 0 additions & 1 deletion net/rds/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -514,4 +514,3 @@ void rds_message_unmapped(struct rds_message *rm)
wake_up_interruptible(&rm->m_flush_wait);
}
EXPORT_SYMBOL_GPL(rds_message_unmapped);

1 change: 0 additions & 1 deletion net/rds/rdma_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,4 +281,3 @@ module_exit(rds_rdma_exit);
MODULE_AUTHOR("Oracle Corporation <rds-devel@oss.oracle.com>");
MODULE_DESCRIPTION("RDS: IB transport");
MODULE_LICENSE("Dual BSD/GPL");

1 change: 0 additions & 1 deletion net/rds/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,4 +717,3 @@ module_init(rds_tcp_init);
MODULE_AUTHOR("Oracle Corporation <rds-devel@oss.oracle.com>");
MODULE_DESCRIPTION("RDS: TCP transport");
MODULE_LICENSE("Dual BSD/GPL");

1 change: 0 additions & 1 deletion net/rds/transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,3 @@ unsigned int rds_trans_stats_info_copy(struct rds_info_iterator *iter,

return total;
}

4 changes: 2 additions & 2 deletions net/sched/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Traffic control configuration.
#
#

menuconfig NET_SCHED
bool "QoS and/or fair queueing"
Expand Down Expand Up @@ -706,7 +706,7 @@ config NET_CLS_ACT

config NET_ACT_POLICE
tristate "Traffic Policing"
depends on NET_CLS_ACT
depends on NET_CLS_ACT
---help---
Say Y here if you want to do traffic policing, i.e. strict
bandwidth limiting. This action replaces the existing policing
Expand Down
2 changes: 1 addition & 1 deletion net/sched/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ obj-$(CONFIG_NET_SCH_HTB) += sch_htb.o
obj-$(CONFIG_NET_SCH_HFSC) += sch_hfsc.o
obj-$(CONFIG_NET_SCH_RED) += sch_red.o
obj-$(CONFIG_NET_SCH_GRED) += sch_gred.o
obj-$(CONFIG_NET_SCH_INGRESS) += sch_ingress.o
obj-$(CONFIG_NET_SCH_INGRESS) += sch_ingress.o
obj-$(CONFIG_NET_SCH_DSMARK) += sch_dsmark.o
obj-$(CONFIG_NET_SCH_SFB) += sch_sfb.o
obj-$(CONFIG_NET_SCH_SFQ) += sch_sfq.o
Expand Down
1 change: 0 additions & 1 deletion net/sched/act_connmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,3 @@ module_exit(connmark_cleanup_module);
MODULE_AUTHOR("Felix Fietkau <nbd@openwrt.org>");
MODULE_DESCRIPTION("Connection tracking mark restoring");
MODULE_LICENSE("GPL");

1 change: 0 additions & 1 deletion net/sched/act_pedit.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,4 +516,3 @@ static void __exit pedit_cleanup_module(void)

module_init(pedit_init_module);
module_exit(pedit_cleanup_module);

1 change: 0 additions & 1 deletion net/sched/cls_basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,4 +324,3 @@ static void __exit exit_basic(void)
module_init(init_basic)
module_exit(exit_basic)
MODULE_LICENSE("GPL");

4 changes: 2 additions & 2 deletions net/sctp/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ config SCTP_DBG_OBJCNT
bool "SCTP: Debug object counts"
depends on PROC_FS
help
If you say Y, this will enable debugging support for counting the
type of objects that are currently allocated. This is useful for
If you say Y, this will enable debugging support for counting the
type of objects that are currently allocated. This is useful for
identifying memory leaks. This debug information can be viewed by
'cat /proc/net/sctp/sctp_dbg_objcnt'

Expand Down
1 change: 0 additions & 1 deletion net/sctp/sm_sideeffect.c
Original file line number Diff line number Diff line change
Expand Up @@ -1827,4 +1827,3 @@ static int sctp_cmd_interpreter(enum sctp_event event_type,
error = -ENOMEM;
goto out;
}

2 changes: 0 additions & 2 deletions net/wimax/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ wimax-y := \
stack.o

wimax-$(CONFIG_DEBUG_FS) += debugfs.o


2 changes: 0 additions & 2 deletions net/wimax/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,3 @@ void wimax_debugfs_rm(struct wimax_dev *wimax_dev)
{
debugfs_remove_recursive(wimax_dev->debugfs_dentry);
}


1 change: 0 additions & 1 deletion net/wimax/op-msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,4 +404,3 @@ int wimax_gnl_doit_msg_from_user(struct sk_buff *skb, struct genl_info *info)
d_fnend(3, NULL, "(skb %p info %p) = %d\n", skb, info, result);
return result;
}

1 change: 0 additions & 1 deletion net/wimax/stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,4 +630,3 @@ module_exit(wimax_subsys_exit);
MODULE_AUTHOR("Intel Corporation <linux-wimax@intel.com>");
MODULE_DESCRIPTION("Linux WiMAX stack");
MODULE_LICENSE("GPL");

2 changes: 0 additions & 2 deletions net/x25/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,3 @@ config X25

To compile this driver as a module, choose M here: the module
will be called x25. If unsure, say N.


1 change: 0 additions & 1 deletion net/x25/x25_subr.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,4 +381,3 @@ void x25_check_rbuf(struct sock *sk)
x25_stop_timer(sk);
}
}

1 change: 0 additions & 1 deletion net/xfrm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,3 @@ config NET_KEY_MIGRATE
<draft-sugimoto-mip6-pfkey-migrate>.

If unsure, say N.

1 change: 0 additions & 1 deletion net/xfrm/xfrm_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -3280,4 +3280,3 @@ module_init(xfrm_user_init);
module_exit(xfrm_user_exit);
MODULE_LICENSE("GPL");
MODULE_ALIAS_NET_PF_PROTO(PF_NETLINK, NETLINK_XFRM);

0 comments on commit 7836899

Please sign in to comment.