* [PATCH net-next 00/13] net: header and core spelling corrections
@ 2024-08-22 12:57 Simon Horman
2024-08-22 12:57 ` [PATCH net-next 01/13] packet: Correct spelling in if_packet.h Simon Horman
` (14 more replies)
0 siblings, 15 replies; 25+ messages in thread
From: Simon Horman @ 2024-08-22 12:57 UTC (permalink / raw)
To: Willem de Bruijn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Alexandra Winter, Thorsten Winkler, David Ahern,
Jay Vosburgh, Andy Gospodarek, Subash Abhinov Kasiviswanathan,
Sean Tranchetti, Paul Moore, Krzysztof Kozlowski,
Jamal Hadi Salim, Cong Wang, Jiri Pirko, Marcelo Ricardo Leitner,
Xin Long, Martin Schiller
Cc: netdev, linux-s390, linux-security-module, linux-sctp, linux-x25
This patchset addresses a number of spelling errors in comments in
Networking files under include/, and files in net/core/. Spelling
problems are as flagged by codespell.
It aims to provide patches that can be accepted directly into net-next.
And splits patches up based on maintainer boundaries: many things
feed directly into net-next. This is a complex process and I apologise
for any errors.
I also plan to address, via separate patches, spelling errors in other
files in the same directories, for files whose changes typically go
through trees other than net-next (which feed into net-next).
---
Simon Horman (13):
packet: Correct spelling in if_packet.h
s390/iucv: Correct spelling in iucv.h
ip_tunnel: Correct spelling in ip_tunnels.h
ipv6: Correct spelling in ipv6.h
bonding: Correct spelling in headers
net: qualcomm: rmnet: Correct spelling in if_rmnet.h
netlabel: Correct spelling in netlabel.h
NFC: Correct spelling in headers
net: sched: Correct spelling in headers
sctp: Correct spelling in headers
x25: Correct spelling in x25.h
net: Correct spelling in headers
net: Correct spelling in net/core
include/linux/etherdevice.h | 2 +-
include/linux/if_rmnet.h | 2 +-
include/linux/netdevice.h | 8 ++++----
include/net/addrconf.h | 2 +-
include/net/bond_3ad.h | 5 ++++-
include/net/bond_alb.h | 2 +-
include/net/busy_poll.h | 2 +-
include/net/caif/caif_layer.h | 4 ++--
include/net/caif/cfpkt.h | 2 +-
include/net/dropreason-core.h | 6 +++---
include/net/dst.h | 2 +-
include/net/dst_cache.h | 2 +-
include/net/erspan.h | 4 ++--
include/net/hwbm.h | 4 ++--
include/net/ip_tunnels.h | 2 +-
include/net/ipv6.h | 4 ++--
include/net/iucv/iucv.h | 2 +-
include/net/llc_pdu.h | 2 +-
include/net/netlabel.h | 2 +-
include/net/netlink.h | 16 ++++++++--------
include/net/netns/sctp.h | 4 ++--
include/net/nfc/nci.h | 2 +-
include/net/nfc/nfc.h | 8 ++++----
include/net/pkt_cls.h | 2 +-
include/net/red.h | 8 ++++----
include/net/regulatory.h | 2 +-
include/net/sctp/sctp.h | 2 +-
include/net/sctp/structs.h | 20 ++++++++++----------
include/net/sock.h | 4 ++--
include/net/udp.h | 2 +-
include/net/x25.h | 2 +-
include/uapi/linux/if_packet.h | 7 ++++---
include/uapi/linux/in.h | 2 +-
include/uapi/linux/inet_diag.h | 2 +-
net/core/dev.c | 6 +++---
net/core/dev_addr_lists.c | 6 +++---
net/core/fib_rules.c | 2 +-
net/core/gro.c | 2 +-
net/core/netpoll.c | 2 +-
net/core/pktgen.c | 10 +++++-----
net/core/skbuff.c | 4 ++--
net/core/sock.c | 6 +++---
net/core/utils.c | 2 +-
43 files changed, 93 insertions(+), 89 deletions(-)
base-commit: 001b98c9897352e914c71d8ffbfa9b79a6e12c3c
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH net-next 01/13] packet: Correct spelling in if_packet.h
2024-08-22 12:57 [PATCH net-next 00/13] net: header and core spelling corrections Simon Horman
@ 2024-08-22 12:57 ` Simon Horman
2024-08-23 12:42 ` Willem de Bruijn
2024-08-22 12:57 ` [PATCH net-next 02/13] s390/iucv: Correct spelling in iucv.h Simon Horman
` (13 subsequent siblings)
14 siblings, 1 reply; 25+ messages in thread
From: Simon Horman @ 2024-08-22 12:57 UTC (permalink / raw)
To: Willem de Bruijn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Alexandra Winter, Thorsten Winkler, David Ahern,
Jay Vosburgh, Andy Gospodarek, Subash Abhinov Kasiviswanathan,
Sean Tranchetti, Paul Moore, Krzysztof Kozlowski,
Jamal Hadi Salim, Cong Wang, Jiri Pirko, Marcelo Ricardo Leitner,
Xin Long, Martin Schiller
Cc: netdev, linux-s390, linux-security-module, linux-sctp, linux-x25
Correct spelling in if_packet.h
As reported by codespell.
Cc: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Signed-off-by: Simon Horman <horms@kernel.org>
---
include/uapi/linux/if_packet.h | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/include/uapi/linux/if_packet.h b/include/uapi/linux/if_packet.h
index 9efc42382fdb..1d2718dd9647 100644
--- a/include/uapi/linux/if_packet.h
+++ b/include/uapi/linux/if_packet.h
@@ -230,8 +230,8 @@ struct tpacket_hdr_v1 {
* ts_first_pkt:
* Is always the time-stamp when the block was opened.
* Case a) ZERO packets
- * No packets to deal with but atleast you know the
- * time-interval of this block.
+ * No packets to deal with but at least you know
+ * the time-interval of this block.
* Case b) Non-zero packets
* Use the ts of the first packet in the block.
*
@@ -265,7 +265,8 @@ enum tpacket_versions {
- struct tpacket_hdr
- pad to TPACKET_ALIGNMENT=16
- struct sockaddr_ll
- - Gap, chosen so that packet data (Start+tp_net) alignes to TPACKET_ALIGNMENT=16
+ - Gap, chosen so that packet data (Start+tp_net) aligns to
+ TPACKET_ALIGNMENT=16
- Start+tp_mac: [ Optional MAC header ]
- Start+tp_net: Packet data, aligned to TPACKET_ALIGNMENT=16.
- Pad to align to TPACKET_ALIGNMENT=16
--
2.43.0
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [PATCH net-next 02/13] s390/iucv: Correct spelling in iucv.h
2024-08-22 12:57 [PATCH net-next 00/13] net: header and core spelling corrections Simon Horman
2024-08-22 12:57 ` [PATCH net-next 01/13] packet: Correct spelling in if_packet.h Simon Horman
@ 2024-08-22 12:57 ` Simon Horman
2024-08-22 12:57 ` [PATCH net-next 03/13] ip_tunnel: Correct spelling in ip_tunnels.h Simon Horman
` (12 subsequent siblings)
14 siblings, 0 replies; 25+ messages in thread
From: Simon Horman @ 2024-08-22 12:57 UTC (permalink / raw)
To: Willem de Bruijn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Alexandra Winter, Thorsten Winkler, David Ahern,
Jay Vosburgh, Andy Gospodarek, Subash Abhinov Kasiviswanathan,
Sean Tranchetti, Paul Moore, Krzysztof Kozlowski,
Jamal Hadi Salim, Cong Wang, Jiri Pirko, Marcelo Ricardo Leitner,
Xin Long, Martin Schiller
Cc: netdev, linux-s390, linux-security-module, linux-sctp, linux-x25
Correct spelling in iucv.h
As reported by codespell.
Cc: Alexandra Winter <wintera@linux.ibm.com>
Cc: Thorsten Winkler <twinkler@linux.ibm.com>
Cc: linux-s390@vger.kernel.org
Signed-off-by: Simon Horman <horms@kernel.org>
---
include/net/iucv/iucv.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/net/iucv/iucv.h b/include/net/iucv/iucv.h
index 4d114e6d6d23..dd9e93c12260 100644
--- a/include/net/iucv/iucv.h
+++ b/include/net/iucv/iucv.h
@@ -15,7 +15,7 @@
* To explore any of the IUCV functions, one must first register their
* program using iucv_register(). Once your program has successfully
* completed a register, it can exploit the other functions.
- * For furthur reference on all IUCV functionality, refer to the
+ * For further reference on all IUCV functionality, refer to the
* CP Programming Services book, also available on the web thru
* www.vm.ibm.com/pubs, manual # SC24-6084
*
--
2.43.0
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [PATCH net-next 03/13] ip_tunnel: Correct spelling in ip_tunnels.h
2024-08-22 12:57 [PATCH net-next 00/13] net: header and core spelling corrections Simon Horman
2024-08-22 12:57 ` [PATCH net-next 01/13] packet: Correct spelling in if_packet.h Simon Horman
2024-08-22 12:57 ` [PATCH net-next 02/13] s390/iucv: Correct spelling in iucv.h Simon Horman
@ 2024-08-22 12:57 ` Simon Horman
2024-08-22 12:57 ` [PATCH net-next 04/13] ipv6: Correct spelling in ipv6.h Simon Horman
` (11 subsequent siblings)
14 siblings, 0 replies; 25+ messages in thread
From: Simon Horman @ 2024-08-22 12:57 UTC (permalink / raw)
To: Willem de Bruijn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Alexandra Winter, Thorsten Winkler, David Ahern,
Jay Vosburgh, Andy Gospodarek, Subash Abhinov Kasiviswanathan,
Sean Tranchetti, Paul Moore, Krzysztof Kozlowski,
Jamal Hadi Salim, Cong Wang, Jiri Pirko, Marcelo Ricardo Leitner,
Xin Long, Martin Schiller
Cc: netdev, linux-s390, linux-security-module, linux-sctp, linux-x25
Correct spelling in ip_tunnels.h
As reported by codespell.
Cc: David Ahern <dsahern@kernel.org>
Signed-off-by: Simon Horman <horms@kernel.org>
---
include/net/ip_tunnels.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/net/ip_tunnels.h b/include/net/ip_tunnels.h
index 1db2417b8ff5..6194fbb564c6 100644
--- a/include/net/ip_tunnels.h
+++ b/include/net/ip_tunnels.h
@@ -573,7 +573,7 @@ static inline u8 ip_tunnel_get_ttl(const struct iphdr *iph,
return 0;
}
-/* Propogate ECN bits out */
+/* Propagate ECN bits out */
static inline u8 ip_tunnel_ecn_encap(u8 tos, const struct iphdr *iph,
const struct sk_buff *skb)
{
--
2.43.0
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [PATCH net-next 04/13] ipv6: Correct spelling in ipv6.h
2024-08-22 12:57 [PATCH net-next 00/13] net: header and core spelling corrections Simon Horman
` (2 preceding siblings ...)
2024-08-22 12:57 ` [PATCH net-next 03/13] ip_tunnel: Correct spelling in ip_tunnels.h Simon Horman
@ 2024-08-22 12:57 ` Simon Horman
2024-08-22 12:57 ` [PATCH net-next 05/13] bonding: Correct spelling in headers Simon Horman
` (10 subsequent siblings)
14 siblings, 0 replies; 25+ messages in thread
From: Simon Horman @ 2024-08-22 12:57 UTC (permalink / raw)
To: Willem de Bruijn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Alexandra Winter, Thorsten Winkler, David Ahern,
Jay Vosburgh, Andy Gospodarek, Subash Abhinov Kasiviswanathan,
Sean Tranchetti, Paul Moore, Krzysztof Kozlowski,
Jamal Hadi Salim, Cong Wang, Jiri Pirko, Marcelo Ricardo Leitner,
Xin Long, Martin Schiller
Cc: netdev, linux-s390, linux-security-module, linux-sctp, linux-x25
Correct spelling in ip_tunnels.h
As reported by codespell.
Cc: David Ahern <dsahern@kernel.org>
Signed-off-by: Simon Horman <horms@kernel.org>
---
include/net/ipv6.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/net/ipv6.h b/include/net/ipv6.h
index e7113855a10f..248bfb26e2af 100644
--- a/include/net/ipv6.h
+++ b/include/net/ipv6.h
@@ -851,7 +851,7 @@ static inline int __ipv6_addr_diff32(const void *token1, const void *token2, int
* we should *never* get to this point since that
* would mean the addrs are equal
*
- * However, we do get to it 8) And exacly, when
+ * However, we do get to it 8) And exactly, when
* addresses are equal 8)
*
* ip route add 1111::/128 via ...
@@ -973,7 +973,7 @@ static inline __be32 ip6_make_flowlabel(struct net *net, struct sk_buff *skb,
hash = skb_get_hash_flowi6(skb, fl6);
/* Since this is being sent on the wire obfuscate hash a bit
- * to minimize possbility that any useful information to an
+ * to minimize possibility that any useful information to an
* attacker is leaked. Only lower 20 bits are relevant.
*/
hash = rol32(hash, 16);
--
2.43.0
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [PATCH net-next 05/13] bonding: Correct spelling in headers
2024-08-22 12:57 [PATCH net-next 00/13] net: header and core spelling corrections Simon Horman
` (3 preceding siblings ...)
2024-08-22 12:57 ` [PATCH net-next 04/13] ipv6: Correct spelling in ipv6.h Simon Horman
@ 2024-08-22 12:57 ` Simon Horman
2024-08-22 12:57 ` [PATCH net-next 06/13] net: qualcomm: rmnet: Correct spelling in if_rmnet.h Simon Horman
` (9 subsequent siblings)
14 siblings, 0 replies; 25+ messages in thread
From: Simon Horman @ 2024-08-22 12:57 UTC (permalink / raw)
To: Willem de Bruijn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Alexandra Winter, Thorsten Winkler, David Ahern,
Jay Vosburgh, Andy Gospodarek, Subash Abhinov Kasiviswanathan,
Sean Tranchetti, Paul Moore, Krzysztof Kozlowski,
Jamal Hadi Salim, Cong Wang, Jiri Pirko, Marcelo Ricardo Leitner,
Xin Long, Martin Schiller
Cc: netdev, linux-s390, linux-security-module, linux-sctp, linux-x25
Correct spelling in bond_3ad.h and bond_alb.h.
As reported by codespell.
Cc: Jay Vosburgh <jv@jvosburgh.net>
Cc: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Simon Horman <horms@kernel.org>
---
include/net/bond_3ad.h | 5 ++++-
include/net/bond_alb.h | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/include/net/bond_3ad.h b/include/net/bond_3ad.h
index 9ce5ac2bfbad..2053cd8e788a 100644
--- a/include/net/bond_3ad.h
+++ b/include/net/bond_3ad.h
@@ -231,7 +231,10 @@ typedef struct port {
mux_states_t sm_mux_state; /* state machine mux state */
u16 sm_mux_timer_counter; /* state machine mux timer counter */
tx_states_t sm_tx_state; /* state machine tx state */
- u16 sm_tx_timer_counter; /* state machine tx timer counter(allways on - enter to transmit state 3 time per second) */
+ u16 sm_tx_timer_counter; /* state machine tx timer counter
+ * (always on - enter to transmit
+ * state 3 time per second)
+ */
u16 sm_churn_actor_timer_counter;
u16 sm_churn_partner_timer_counter;
u32 churn_actor_count;
diff --git a/include/net/bond_alb.h b/include/net/bond_alb.h
index 9dc082b2d543..e5945427f38d 100644
--- a/include/net/bond_alb.h
+++ b/include/net/bond_alb.h
@@ -53,7 +53,7 @@ struct slave;
struct tlb_client_info {
- struct slave *tx_slave; /* A pointer to slave used for transmiting
+ struct slave *tx_slave; /* A pointer to slave used for transmitting
* packets to a Client that the Hash function
* gave this entry index.
*/
--
2.43.0
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [PATCH net-next 06/13] net: qualcomm: rmnet: Correct spelling in if_rmnet.h
2024-08-22 12:57 [PATCH net-next 00/13] net: header and core spelling corrections Simon Horman
` (4 preceding siblings ...)
2024-08-22 12:57 ` [PATCH net-next 05/13] bonding: Correct spelling in headers Simon Horman
@ 2024-08-22 12:57 ` Simon Horman
2024-08-23 5:07 ` Subash Abhinov Kasiviswanathan (KS)
2024-08-22 12:57 ` [PATCH net-next 07/13] netlabel: Correct spelling in netlabel.h Simon Horman
` (8 subsequent siblings)
14 siblings, 1 reply; 25+ messages in thread
From: Simon Horman @ 2024-08-22 12:57 UTC (permalink / raw)
To: Willem de Bruijn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Alexandra Winter, Thorsten Winkler, David Ahern,
Jay Vosburgh, Andy Gospodarek, Subash Abhinov Kasiviswanathan,
Sean Tranchetti, Paul Moore, Krzysztof Kozlowski,
Jamal Hadi Salim, Cong Wang, Jiri Pirko, Marcelo Ricardo Leitner,
Xin Long, Martin Schiller
Cc: netdev, linux-s390, linux-security-module, linux-sctp, linux-x25
Correct spelling in if_rmnet.h
As reported by codespell.
Cc: Subash Abhinov Kasiviswanathan <quic_subashab@quicinc.com>
Cc: Sean Tranchetti <quic_stranche@quicinc.com>
Signed-off-by: Simon Horman <horms@kernel.org>
---
include/linux/if_rmnet.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/if_rmnet.h b/include/linux/if_rmnet.h
index 839d1e48b85e..c44bf6e80ecb 100644
--- a/include/linux/if_rmnet.h
+++ b/include/linux/if_rmnet.h
@@ -42,7 +42,7 @@ struct rmnet_map_ul_csum_header {
/* csum_info field:
* OFFSET: where (offset in bytes) to insert computed checksum
- * UDP: 1 = UDP checksum (zero checkum means no checksum)
+ * UDP: 1 = UDP checksum (zero checksum means no checksum)
* ENABLED: 1 = checksum computation requested
*/
#define MAP_CSUM_UL_OFFSET_MASK GENMASK(13, 0)
--
2.43.0
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [PATCH net-next 07/13] netlabel: Correct spelling in netlabel.h
2024-08-22 12:57 [PATCH net-next 00/13] net: header and core spelling corrections Simon Horman
` (5 preceding siblings ...)
2024-08-22 12:57 ` [PATCH net-next 06/13] net: qualcomm: rmnet: Correct spelling in if_rmnet.h Simon Horman
@ 2024-08-22 12:57 ` Simon Horman
2024-08-22 12:57 ` [PATCH net-next 08/13] NFC: Correct spelling in headers Simon Horman
` (7 subsequent siblings)
14 siblings, 0 replies; 25+ messages in thread
From: Simon Horman @ 2024-08-22 12:57 UTC (permalink / raw)
To: Willem de Bruijn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Alexandra Winter, Thorsten Winkler, David Ahern,
Jay Vosburgh, Andy Gospodarek, Subash Abhinov Kasiviswanathan,
Sean Tranchetti, Paul Moore, Krzysztof Kozlowski,
Jamal Hadi Salim, Cong Wang, Jiri Pirko, Marcelo Ricardo Leitner,
Xin Long, Martin Schiller
Cc: netdev, linux-s390, linux-security-module, linux-sctp, linux-x25
Correct spelling in netlabel.h.
As reported by codespell.
Cc: Paul Moore <paul@paul-moore.com>
Cc: linux-security-module@vger.kernel.org
Signed-off-by: Simon Horman <horms@kernel.org>
---
include/net/netlabel.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/net/netlabel.h b/include/net/netlabel.h
index 654bc777d2a7..529160f76cac 100644
--- a/include/net/netlabel.h
+++ b/include/net/netlabel.h
@@ -30,7 +30,7 @@ struct calipso_doi;
/*
* NetLabel - A management interface for maintaining network packet label
- * mapping tables for explicit packet labling protocols.
+ * mapping tables for explicit packet labeling protocols.
*
* Network protocols such as CIPSO and RIPSO require a label translation layer
* to convert the label on the packet into something meaningful on the host
--
2.43.0
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [PATCH net-next 08/13] NFC: Correct spelling in headers
2024-08-22 12:57 [PATCH net-next 00/13] net: header and core spelling corrections Simon Horman
` (6 preceding siblings ...)
2024-08-22 12:57 ` [PATCH net-next 07/13] netlabel: Correct spelling in netlabel.h Simon Horman
@ 2024-08-22 12:57 ` Simon Horman
2024-08-23 13:40 ` Krzysztof Kozlowski
2024-08-22 12:57 ` [PATCH net-next 09/13] net: sched: " Simon Horman
` (6 subsequent siblings)
14 siblings, 1 reply; 25+ messages in thread
From: Simon Horman @ 2024-08-22 12:57 UTC (permalink / raw)
To: Willem de Bruijn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Alexandra Winter, Thorsten Winkler, David Ahern,
Jay Vosburgh, Andy Gospodarek, Subash Abhinov Kasiviswanathan,
Sean Tranchetti, Paul Moore, Krzysztof Kozlowski,
Jamal Hadi Salim, Cong Wang, Jiri Pirko, Marcelo Ricardo Leitner,
Xin Long, Martin Schiller
Cc: netdev, linux-s390, linux-security-module, linux-sctp, linux-x25
Correct spelling in NFC headers.
As reported by codespell.
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Simon Horman <horms@kernel.org>
---
include/net/nfc/nci.h | 2 +-
include/net/nfc/nfc.h | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/net/nfc/nci.h b/include/net/nfc/nci.h
index e82f55f543bb..dc36519d16aa 100644
--- a/include/net/nfc/nci.h
+++ b/include/net/nfc/nci.h
@@ -332,7 +332,7 @@ struct nci_core_init_rsp_1 {
__le32 nfcc_features;
__u8 num_supported_rf_interfaces;
__u8 supported_rf_interfaces[]; /* variable size array */
- /* continuted in nci_core_init_rsp_2 */
+ /* continued in nci_core_init_rsp_2 */
} __packed;
struct nci_core_init_rsp_2 {
diff --git a/include/net/nfc/nfc.h b/include/net/nfc/nfc.h
index 3d07abacf08b..3a3781838c67 100644
--- a/include/net/nfc/nfc.h
+++ b/include/net/nfc/nfc.h
@@ -80,7 +80,7 @@ struct nfc_ops {
#define NFC_ATR_REQ_GT_OFFSET 14
/**
- * struct nfc_target - NFC target descriptiom
+ * struct nfc_target - NFC target description
*
* @sens_res: 2 bytes describing the target SENS_RES response, if the target
* is a type A one. The %sens_res most significant byte must be byte 2
@@ -230,10 +230,10 @@ static inline void nfc_set_parent_dev(struct nfc_dev *nfc_dev,
}
/**
- * nfc_set_drvdata - set driver specifc data
+ * nfc_set_drvdata - set driver specific data
*
* @dev: The nfc device
- * @data: Pointer to driver specifc data
+ * @data: Pointer to driver specific data
*/
static inline void nfc_set_drvdata(struct nfc_dev *dev, void *data)
{
@@ -241,7 +241,7 @@ static inline void nfc_set_drvdata(struct nfc_dev *dev, void *data)
}
/**
- * nfc_get_drvdata - get driver specifc data
+ * nfc_get_drvdata - get driver specific data
*
* @dev: The nfc device
*/
--
2.43.0
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [PATCH net-next 09/13] net: sched: Correct spelling in headers
2024-08-22 12:57 [PATCH net-next 00/13] net: header and core spelling corrections Simon Horman
` (7 preceding siblings ...)
2024-08-22 12:57 ` [PATCH net-next 08/13] NFC: Correct spelling in headers Simon Horman
@ 2024-08-22 12:57 ` Simon Horman
2024-08-22 12:57 ` [PATCH net-next 10/13] sctp: " Simon Horman
` (5 subsequent siblings)
14 siblings, 0 replies; 25+ messages in thread
From: Simon Horman @ 2024-08-22 12:57 UTC (permalink / raw)
To: Willem de Bruijn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Alexandra Winter, Thorsten Winkler, David Ahern,
Jay Vosburgh, Andy Gospodarek, Subash Abhinov Kasiviswanathan,
Sean Tranchetti, Paul Moore, Krzysztof Kozlowski,
Jamal Hadi Salim, Cong Wang, Jiri Pirko, Marcelo Ricardo Leitner,
Xin Long, Martin Schiller
Cc: netdev, linux-s390, linux-security-module, linux-sctp, linux-x25
Correct spelling in pkt_cls.h and red.h.
As reported by codespell.
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Simon Horman <horms@kernel.org>
---
include/net/pkt_cls.h | 2 +-
include/net/red.h | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h
index 41297bd38dff..4880b3a7aced 100644
--- a/include/net/pkt_cls.h
+++ b/include/net/pkt_cls.h
@@ -491,7 +491,7 @@ int __tcf_em_tree_match(struct sk_buff *, struct tcf_ematch_tree *,
struct tcf_pkt_info *);
/**
- * tcf_em_tree_match - evaulate an ematch tree
+ * tcf_em_tree_match - evaluate an ematch tree
*
* @skb: socket buffer of the packet in question
* @tree: ematch tree to be used for evaluation
diff --git a/include/net/red.h b/include/net/red.h
index 802287d52c9e..159a09359fc0 100644
--- a/include/net/red.h
+++ b/include/net/red.h
@@ -40,7 +40,7 @@
max_P should be small (not 1), usually 0.01..0.02 is good value.
max_P is chosen as a number, so that max_P/(th_max-th_min)
- is a negative power of two in order arithmetics to contain
+ is a negative power of two in order arithmetic to contain
only shifts.
@@ -159,7 +159,7 @@ static inline u32 red_maxp(u8 Plog)
static inline void red_set_vars(struct red_vars *v)
{
/* Reset average queue length, the value is strictly bound
- * to the parameters below, reseting hurts a bit but leaving
+ * to the parameters below, resetting hurts a bit but leaving
* it might result in an unreasonable qavg for a while. --TGR
*/
v->qavg = 0;
@@ -340,7 +340,7 @@ static inline unsigned long red_calc_qavg_no_idle_time(const struct red_parms *p
{
/*
* NOTE: v->qavg is fixed point number with point at Wlog.
- * The formula below is equvalent to floating point
+ * The formula below is equivalent to floating point
* version:
*
* qavg = qavg*(1-W) + backlog*W;
@@ -375,7 +375,7 @@ static inline int red_mark_probability(const struct red_parms *p,
OK. qR is random number in the interval
(0..1/max_P)*(qth_max-qth_min)
i.e. 0..(2^Plog). If we used floating point
- arithmetics, it would be: (2^Plog)*rnd_num,
+ arithmetic, it would be: (2^Plog)*rnd_num,
where rnd_num is less 1.
Taking into account, that qavg have fixed
--
2.43.0
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [PATCH net-next 10/13] sctp: Correct spelling in headers
2024-08-22 12:57 [PATCH net-next 00/13] net: header and core spelling corrections Simon Horman
` (8 preceding siblings ...)
2024-08-22 12:57 ` [PATCH net-next 09/13] net: sched: " Simon Horman
@ 2024-08-22 12:57 ` Simon Horman
2024-08-22 14:01 ` Xin Long
2024-08-22 12:57 ` [PATCH net-next 11/13] x25: Correct spelling in x25.h Simon Horman
` (4 subsequent siblings)
14 siblings, 1 reply; 25+ messages in thread
From: Simon Horman @ 2024-08-22 12:57 UTC (permalink / raw)
To: Willem de Bruijn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Alexandra Winter, Thorsten Winkler, David Ahern,
Jay Vosburgh, Andy Gospodarek, Subash Abhinov Kasiviswanathan,
Sean Tranchetti, Paul Moore, Krzysztof Kozlowski,
Jamal Hadi Salim, Cong Wang, Jiri Pirko, Marcelo Ricardo Leitner,
Xin Long, Martin Schiller
Cc: netdev, linux-s390, linux-security-module, linux-sctp, linux-x25
Correct spelling in sctp.h and structs.h.
As reported by codespell.
Cc: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Cc: Xin Long <lucien.xin@gmail.com>
Cc: linux-sctp@vger.kernel.org
Signed-off-by: Simon Horman <horms@kernel.org>
---
include/net/sctp/sctp.h | 2 +-
include/net/sctp/structs.h | 20 ++++++++++----------
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h
index a2310fa995f6..84e6b9fd5610 100644
--- a/include/net/sctp/sctp.h
+++ b/include/net/sctp/sctp.h
@@ -28,7 +28,7 @@
#define __net_sctp_h__
/* Header Strategy.
- * Start getting some control over the header file depencies:
+ * Start getting some control over the header file dependencies:
* includes
* constants
* structs
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h
index f24a1bbcb3ef..31248cfdfb23 100644
--- a/include/net/sctp/structs.h
+++ b/include/net/sctp/structs.h
@@ -521,7 +521,7 @@ struct sctp_datamsg {
refcount_t refcnt;
/* When is this message no longer interesting to the peer? */
unsigned long expires_at;
- /* Did the messenge fail to send? */
+ /* Did the message fail to send? */
int send_error;
u8 send_failed:1,
can_delay:1, /* should this message be Nagle delayed */
@@ -792,7 +792,7 @@ struct sctp_transport {
*/
hb_sent:1,
- /* Is the Path MTU update pending on this tranport */
+ /* Is the Path MTU update pending on this transport */
pmtu_pending:1,
dst_pending_confirm:1, /* need to confirm neighbour */
@@ -1223,7 +1223,7 @@ enum sctp_endpoint_type {
};
/*
- * A common base class to bridge the implmentation view of a
+ * A common base class to bridge the implementation view of a
* socket (usually listening) endpoint versus an association's
* local endpoint.
* This common structure is useful for several purposes:
@@ -1353,7 +1353,7 @@ struct sctp_endpoint {
struct rcu_head rcu;
};
-/* Recover the outter endpoint structure. */
+/* Recover the outer endpoint structure. */
static inline struct sctp_endpoint *sctp_ep(struct sctp_ep_common *base)
{
struct sctp_endpoint *ep;
@@ -1906,7 +1906,7 @@ struct sctp_association {
__u32 rwnd_over;
/* Keeps treack of rwnd pressure. This happens when we have
- * a window, but not recevie buffer (i.e small packets). This one
+ * a window, but not receive buffer (i.e small packets). This one
* is releases slowly (1 PMTU at a time ).
*/
__u32 rwnd_press;
@@ -1994,7 +1994,7 @@ struct sctp_association {
/* ADDIP Section 5.2 Upon reception of an ASCONF Chunk.
*
- * This is needed to implement itmes E1 - E4 of the updated
+ * This is needed to implement items E1 - E4 of the updated
* spec. Here is the justification:
*
* Since the peer may bundle multiple ASCONF chunks toward us,
@@ -2005,7 +2005,7 @@ struct sctp_association {
/* These ASCONF chunks are waiting to be sent.
*
- * These chunaks can't be pushed to outqueue until receiving
+ * These chunks can't be pushed to outqueue until receiving
* ASCONF_ACK for the previous ASCONF indicated by
* addip_last_asconf, so as to guarantee that only one ASCONF
* is in flight at any time.
@@ -2059,13 +2059,13 @@ struct sctp_association {
struct sctp_transport *new_transport;
/* SCTP AUTH: list of the endpoint shared keys. These
- * keys are provided out of band by the user applicaton
+ * keys are provided out of band by the user application
* and can't change during the lifetime of the association
*/
struct list_head endpoint_shared_keys;
/* SCTP AUTH:
- * The current generated assocaition shared key (secret)
+ * The current generated association shared key (secret)
*/
struct sctp_auth_bytes *asoc_shared_key;
struct sctp_shared_key *shkey;
@@ -2121,7 +2121,7 @@ enum {
SCTP_ASSOC_EYECATCHER = 0xa550c123,
};
-/* Recover the outter association structure. */
+/* Recover the outer association structure. */
static inline struct sctp_association *sctp_assoc(struct sctp_ep_common *base)
{
struct sctp_association *asoc;
--
2.43.0
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [PATCH net-next 11/13] x25: Correct spelling in x25.h
2024-08-22 12:57 [PATCH net-next 00/13] net: header and core spelling corrections Simon Horman
` (9 preceding siblings ...)
2024-08-22 12:57 ` [PATCH net-next 10/13] sctp: " Simon Horman
@ 2024-08-22 12:57 ` Simon Horman
2024-08-23 5:27 ` Martin Schiller
2024-08-22 12:57 ` [PATCH net-next 12/13] net: Correct spelling in headers Simon Horman
` (3 subsequent siblings)
14 siblings, 1 reply; 25+ messages in thread
From: Simon Horman @ 2024-08-22 12:57 UTC (permalink / raw)
To: Willem de Bruijn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Alexandra Winter, Thorsten Winkler, David Ahern,
Jay Vosburgh, Andy Gospodarek, Subash Abhinov Kasiviswanathan,
Sean Tranchetti, Paul Moore, Krzysztof Kozlowski,
Jamal Hadi Salim, Cong Wang, Jiri Pirko, Marcelo Ricardo Leitner,
Xin Long, Martin Schiller
Cc: netdev, linux-s390, linux-security-module, linux-sctp, linux-x25
Correct spelling in x25.h
As reported by codespell.
Cc: Martin Schiller <ms@dev.tdt.de>
Cc: linux-x25@vger.kernel.org
Signed-off-by: Simon Horman <horms@kernel.org>
---
include/net/x25.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/net/x25.h b/include/net/x25.h
index 597eb53c471e..5e833cfc864e 100644
--- a/include/net/x25.h
+++ b/include/net/x25.h
@@ -81,7 +81,7 @@ enum {
#define X25_DEFAULT_WINDOW_SIZE 2 /* Default Window Size */
#define X25_DEFAULT_PACKET_SIZE X25_PS128 /* Default Packet Size */
-#define X25_DEFAULT_THROUGHPUT 0x0A /* Deafult Throughput */
+#define X25_DEFAULT_THROUGHPUT 0x0A /* Default Throughput */
#define X25_DEFAULT_REVERSE 0x00 /* Default Reverse Charging */
#define X25_SMODULUS 8
--
2.43.0
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [PATCH net-next 12/13] net: Correct spelling in headers
2024-08-22 12:57 [PATCH net-next 00/13] net: header and core spelling corrections Simon Horman
` (10 preceding siblings ...)
2024-08-22 12:57 ` [PATCH net-next 11/13] x25: Correct spelling in x25.h Simon Horman
@ 2024-08-22 12:57 ` Simon Horman
2024-08-26 16:45 ` Jakub Kicinski
2024-08-22 12:57 ` [PATCH net-next 13/13] net: Correct spelling in net/core Simon Horman
` (2 subsequent siblings)
14 siblings, 1 reply; 25+ messages in thread
From: Simon Horman @ 2024-08-22 12:57 UTC (permalink / raw)
To: Willem de Bruijn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Alexandra Winter, Thorsten Winkler, David Ahern,
Jay Vosburgh, Andy Gospodarek, Subash Abhinov Kasiviswanathan,
Sean Tranchetti, Paul Moore, Krzysztof Kozlowski,
Jamal Hadi Salim, Cong Wang, Jiri Pirko, Marcelo Ricardo Leitner,
Xin Long, Martin Schiller
Cc: netdev, linux-s390, linux-security-module, linux-sctp, linux-x25
Correct spelling in Networking headers.
As reported by codespell.
Signed-off-by: Simon Horman <horms@kernel.org>
---
include/linux/etherdevice.h | 2 +-
include/linux/netdevice.h | 8 ++++----
include/net/addrconf.h | 2 +-
include/net/busy_poll.h | 2 +-
include/net/caif/caif_layer.h | 4 ++--
include/net/caif/cfpkt.h | 2 +-
include/net/dropreason-core.h | 6 +++---
include/net/dst.h | 2 +-
include/net/dst_cache.h | 2 +-
include/net/erspan.h | 4 ++--
include/net/hwbm.h | 4 ++--
include/net/llc_pdu.h | 2 +-
include/net/netlink.h | 16 ++++++++--------
include/net/netns/sctp.h | 4 ++--
include/net/regulatory.h | 2 +-
include/net/sock.h | 4 ++--
include/net/udp.h | 2 +-
include/uapi/linux/in.h | 2 +-
include/uapi/linux/inet_diag.h | 2 +-
19 files changed, 36 insertions(+), 36 deletions(-)
diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h
index 0ed47d00549b..30114c25ad12 100644
--- a/include/linux/etherdevice.h
+++ b/include/linux/etherdevice.h
@@ -645,7 +645,7 @@ static inline struct ethhdr *eth_skb_pull_mac(struct sk_buff *skb)
}
/**
- * eth_skb_pad - Pad buffer to mininum number of octets for Ethernet frame
+ * eth_skb_pad - Pad buffer to minimum number of octets for Ethernet frame
* @skb: Buffer to pad
*
* An Ethernet frame should have a minimum size of 60 bytes. This function
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 614ec5d3d75b..c7822380281b 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1237,7 +1237,7 @@ struct netdev_net_notifier {
* int (*ndo_fdb_del)(struct ndmsg *ndm, struct nlattr *tb[],
* struct net_device *dev,
* const unsigned char *addr, u16 vid)
- * Deletes the FDB entry from dev coresponding to addr.
+ * Deletes the FDB entry from dev corresponding to addr.
* int (*ndo_fdb_del_bulk)(struct nlmsghdr *nlh, struct net_device *dev,
* struct netlink_ext_ack *extack);
* int (*ndo_fdb_dump)(struct sk_buff *skb, struct netlink_callback *cb,
@@ -3512,7 +3512,7 @@ static inline void netdev_tx_completed_queue(struct netdev_queue *dev_queue,
dql_completed(&dev_queue->dql, bytes);
/*
- * Without the memory barrier there is a small possiblity that
+ * Without the memory barrier there is a small possibility that
* netdev_tx_sent_queue will miss the update and cause the queue to
* be stopped forever
*/
@@ -4580,7 +4580,7 @@ void dev_uc_flush(struct net_device *dev);
void dev_uc_init(struct net_device *dev);
/**
- * __dev_uc_sync - Synchonize device's unicast list
+ * __dev_uc_sync - Synchronize device's unicast list
* @dev: device to sync
* @sync: function to call if address should be added
* @unsync: function to call if address should be removed
@@ -4624,7 +4624,7 @@ void dev_mc_flush(struct net_device *dev);
void dev_mc_init(struct net_device *dev);
/**
- * __dev_mc_sync - Synchonize device's multicast list
+ * __dev_mc_sync - Synchronize device's multicast list
* @dev: device to sync
* @sync: function to call if address should be added
* @unsync: function to call if address should be removed
diff --git a/include/net/addrconf.h b/include/net/addrconf.h
index c8ed31828db3..363dd63babe7 100644
--- a/include/net/addrconf.h
+++ b/include/net/addrconf.h
@@ -333,7 +333,7 @@ static inline struct inet6_dev *__in6_dev_get(const struct net_device *dev)
/**
* __in6_dev_stats_get - get inet6_dev pointer for stats
* @dev: network device
- * @skb: skb for original incoming interface if neeeded
+ * @skb: skb for original incoming interface if needed
*
* Caller must hold rcu_read_lock or RTNL, because this function
* does not take a reference on the inet6_dev.
diff --git a/include/net/busy_poll.h b/include/net/busy_poll.h
index 9b09acac538e..5e3b5703e4ab 100644
--- a/include/net/busy_poll.h
+++ b/include/net/busy_poll.h
@@ -131,7 +131,7 @@ static inline void skb_mark_napi_id(struct sk_buff *skb,
#endif
}
-/* used in the protocol hanlder to propagate the napi_id to the socket */
+/* used in the protocol handler to propagate the napi_id to the socket */
static inline void sk_mark_napi_id(struct sock *sk, const struct sk_buff *skb)
{
#ifdef CONFIG_NET_RX_BUSY_POLL
diff --git a/include/net/caif/caif_layer.h b/include/net/caif/caif_layer.h
index 0f45d875905f..053e7c6a6a66 100644
--- a/include/net/caif/caif_layer.h
+++ b/include/net/caif/caif_layer.h
@@ -20,7 +20,7 @@ struct caif_payload_info;
* @assert: expression to evaluate.
*
* This function will print a error message and a do WARN_ON if the
- * assertion failes. Normally this will do a stack up at the current location.
+ * assertion fails. Normally this will do a stack up at the current location.
*/
#define caif_assert(assert) \
do { \
@@ -116,7 +116,7 @@ enum caif_direction {
* @dn: Pointer down to the layer below.
* @node: List node used when layer participate in a list.
* @receive: Packet receive function.
- * @transmit: Packet transmit funciton.
+ * @transmit: Packet transmit function.
* @ctrlcmd: Used for control signalling upwards in the stack.
* @modemcmd: Used for control signaling downwards in the stack.
* @id: The identity of this layer
diff --git a/include/net/caif/cfpkt.h b/include/net/caif/cfpkt.h
index 44d914a50369..acf664227d96 100644
--- a/include/net/caif/cfpkt.h
+++ b/include/net/caif/cfpkt.h
@@ -18,7 +18,7 @@ struct cfpkt *cfpkt_create(u16 len);
/*
* Destroy a CAIF Packet.
- * pkt Packet to be destoyed.
+ * pkt Packet to be destroyed.
*/
void cfpkt_destroy(struct cfpkt *pkt);
diff --git a/include/net/dropreason-core.h b/include/net/dropreason-core.h
index 9707ab54fdd5..4748680e8c88 100644
--- a/include/net/dropreason-core.h
+++ b/include/net/dropreason-core.h
@@ -155,8 +155,8 @@ enum skb_drop_reason {
/** @SKB_DROP_REASON_SOCKET_RCVBUFF: socket receive buff is full */
SKB_DROP_REASON_SOCKET_RCVBUFF,
/**
- * @SKB_DROP_REASON_PROTO_MEM: proto memory limition, such as udp packet
- * drop out of udp_memory_allocated.
+ * @SKB_DROP_REASON_PROTO_MEM: proto memory limitation, such as
+ * udp packet drop out of udp_memory_allocated.
*/
SKB_DROP_REASON_PROTO_MEM,
/**
@@ -217,7 +217,7 @@ enum skb_drop_reason {
*/
SKB_DROP_REASON_TCP_ZEROWINDOW,
/**
- * @SKB_DROP_REASON_TCP_OLD_DATA: the TCP data reveived is already
+ * @SKB_DROP_REASON_TCP_OLD_DATA: the TCP data received is already
* received before (spurious retrans may happened), see
* LINUX_MIB_DELAYEDACKLOST
*/
diff --git a/include/net/dst.h b/include/net/dst.h
index 0aa331bd2fdb..0f303cc60252 100644
--- a/include/net/dst.h
+++ b/include/net/dst.h
@@ -341,7 +341,7 @@ static inline void __skb_tunnel_rx(struct sk_buff *skb, struct net_device *dev,
skb->dev = dev;
/*
- * Clear hash so that we can recalulate the hash for the
+ * Clear hash so that we can recalculate the hash for the
* encapsulated packet, unless we have already determine the hash
* over the L4 4-tuple.
*/
diff --git a/include/net/dst_cache.h b/include/net/dst_cache.h
index b4a55d2d5e71..1961699598e2 100644
--- a/include/net/dst_cache.h
+++ b/include/net/dst_cache.h
@@ -102,7 +102,7 @@ int dst_cache_init(struct dst_cache *dst_cache, gfp_t gfp);
* @dst_cache: the cache
*
* No synchronization is enforced: it must be called only when the cache
- * is unsed.
+ * is unused.
*/
void dst_cache_destroy(struct dst_cache *dst_cache);
diff --git a/include/net/erspan.h b/include/net/erspan.h
index 6cb4cbd6a48f..c6209e7b6c96 100644
--- a/include/net/erspan.h
+++ b/include/net/erspan.h
@@ -89,7 +89,7 @@ enum erspan_encap_type {
ERSPAN_ENCAP_NOVLAN = 0x0, /* originally without VLAN tag */
ERSPAN_ENCAP_ISL = 0x1, /* originally ISL encapsulated */
ERSPAN_ENCAP_8021Q = 0x2, /* originally 802.1Q encapsulated */
- ERSPAN_ENCAP_INFRAME = 0x3, /* VLAN tag perserved in frame */
+ ERSPAN_ENCAP_INFRAME = 0x3, /* VLAN tag preserved in frame */
};
#define ERSPAN_V1_MDSIZE 4
@@ -192,7 +192,7 @@ static inline void erspan_build_header(struct sk_buff *skb,
enc_type = ERSPAN_ENCAP_NOVLAN;
/* If mirrored packet has vlan tag, extract tci and
- * perserve vlan header in the mirrored frame.
+ * preserve vlan header in the mirrored frame.
*/
if (eth->h_proto == htons(ETH_P_8021Q)) {
qp = (struct qtag_prefix *)(skb->data + 2 * ETH_ALEN);
diff --git a/include/net/hwbm.h b/include/net/hwbm.h
index aa495decec35..bdbe91c609ff 100644
--- a/include/net/hwbm.h
+++ b/include/net/hwbm.h
@@ -11,9 +11,9 @@ struct hwbm_pool {
int frag_size;
/* Number of buffers currently used by this pool */
int buf_num;
- /* constructor called during alocation */
+ /* constructor called during allocation */
int (*construct)(struct hwbm_pool *bm_pool, void *buf);
- /* protect acces to the buffer counter*/
+ /* protect access to the buffer counter*/
struct mutex buf_lock;
/* private data */
void *priv;
diff --git a/include/net/llc_pdu.h b/include/net/llc_pdu.h
index 1d55ba7c45be..86681f29bda7 100644
--- a/include/net/llc_pdu.h
+++ b/include/net/llc_pdu.h
@@ -254,7 +254,7 @@ static inline void llc_pdu_header_init(struct sk_buff *skb, u8 type,
}
/**
- * llc_pdu_decode_sa - extracs source address (MAC) of input frame
+ * llc_pdu_decode_sa - extracts, source address (MAC) of input frame
* @skb: input skb that source address must be extracted from it.
* @sa: pointer to source address (6 byte array).
*
diff --git a/include/net/netlink.h b/include/net/netlink.h
index e78ce008e07c..db6af207287c 100644
--- a/include/net/netlink.h
+++ b/include/net/netlink.h
@@ -827,7 +827,7 @@ nlmsg_parse_deprecated_strict(const struct nlmsghdr *nlh, int hdrlen,
/**
* nlmsg_find_attr - find a specific attribute in a netlink message
* @nlh: netlink message header
- * @hdrlen: length of familiy specific header
+ * @hdrlen: length of family specific header
* @attrtype: type of attribute to look for
*
* Returns the first attribute which matches the specified type.
@@ -849,7 +849,7 @@ static inline struct nlattr *nlmsg_find_attr(const struct nlmsghdr *nlh,
*
* Validates all attributes in the specified attribute stream against the
* specified policy. Validation is done in liberal mode.
- * See documenation of struct nla_policy for more details.
+ * See documentation of struct nla_policy for more details.
*
* Returns 0 on success or a negative error code.
*/
@@ -872,7 +872,7 @@ static inline int nla_validate_deprecated(const struct nlattr *head, int len,
*
* Validates all attributes in the specified attribute stream against the
* specified policy. Validation is done in strict mode.
- * See documenation of struct nla_policy for more details.
+ * See documentation of struct nla_policy for more details.
*
* Returns 0 on success or a negative error code.
*/
@@ -887,7 +887,7 @@ static inline int nla_validate(const struct nlattr *head, int len, int maxtype,
/**
* nlmsg_validate_deprecated - validate a netlink message including attributes
* @nlh: netlinket message header
- * @hdrlen: length of familiy specific header
+ * @hdrlen: length of family specific header
* @maxtype: maximum attribute type to be expected
* @policy: validation policy
* @extack: extended ACK report struct
@@ -933,7 +933,7 @@ static inline u32 nlmsg_seq(const struct nlmsghdr *nlh)
* nlmsg_for_each_attr - iterate over a stream of attributes
* @pos: loop counter, set to current attribute
* @nlh: netlink message header
- * @hdrlen: length of familiy specific header
+ * @hdrlen: length of family specific header
* @rem: initialized to len, holds bytes currently remaining in stream
*/
#define nlmsg_for_each_attr(pos, nlh, hdrlen, rem) \
@@ -1034,7 +1034,7 @@ static inline struct sk_buff *nlmsg_new_large(size_t payload)
* @skb: socket buffer the message is stored in
* @nlh: netlink message header
*
- * Corrects the netlink message header to include the appeneded
+ * Corrects the netlink message header to include the appended
* attributes. Only necessary if attributes have been added to
* the message.
*/
@@ -1954,7 +1954,7 @@ static inline struct nlattr *nla_nest_start(struct sk_buff *skb, int attrtype)
* @start: container attribute
*
* Corrects the container attribute header to include the all
- * appeneded attributes.
+ * appended attributes.
*
* Returns the total data length of the skb.
*/
@@ -1987,7 +1987,7 @@ static inline void nla_nest_cancel(struct sk_buff *skb, struct nlattr *start)
*
* Validates all attributes in the nested attribute stream against the
* specified policy. Attributes with a type exceeding maxtype will be
- * ignored. See documenation of struct nla_policy for more details.
+ * ignored. See documentation of struct nla_policy for more details.
*
* Returns 0 on success or a negative error code.
*/
diff --git a/include/net/netns/sctp.h b/include/net/netns/sctp.h
index 7eff3d981b89..d25cd7a9c5ff 100644
--- a/include/net/netns/sctp.h
+++ b/include/net/netns/sctp.h
@@ -125,14 +125,14 @@ struct netns_sctp {
int pf_expose;
/*
- * Policy for preforming sctp/socket accounting
+ * Policy for performing sctp/socket accounting
* 0 - do socket level accounting, all assocs share sk_sndbuf
* 1 - do sctp accounting, each asoc may use sk_sndbuf bytes
*/
int sndbuf_policy;
/*
- * Policy for preforming sctp/socket accounting
+ * Policy for performing sctp/socket accounting
* 0 - do socket level accounting, all assocs share sk_rcvbuf
* 1 - do sctp accounting, each asoc may use sk_rcvbuf bytes
*/
diff --git a/include/net/regulatory.h b/include/net/regulatory.h
index a103f4c8cf75..6633627f6e76 100644
--- a/include/net/regulatory.h
+++ b/include/net/regulatory.h
@@ -121,7 +121,7 @@ struct regulatory_request {
* @REGULATORY_DISABLE_BEACON_HINTS: enable this if your driver needs to
* ensure that passive scan flags and beaconing flags may not be lifted by
* cfg80211 due to regulatory beacon hints. For more information on beacon
- * hints read the documenation for regulatory_hint_found_beacon()
+ * hints read the documentation for regulatory_hint_found_beacon()
* @REGULATORY_COUNTRY_IE_FOLLOW_POWER: for devices that have a preference
* that even though they may have programmed their own custom power
* setting prior to wiphy registration, they want to ensure their channel
diff --git a/include/net/sock.h b/include/net/sock.h
index cce23ac4d514..f51d61fab059 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -1624,7 +1624,7 @@ bool __lock_sock_fast(struct sock *sk) __acquires(&sk->sk_lock.slock);
* lock_sock_fast - fast version of lock_sock
* @sk: socket
*
- * This version should be used for very small section, where process wont block
+ * This version should be used for very small section, where process won't block
* return false if fast path is taken:
*
* sk_lock.slock locked, owned = 0, BH disabled
@@ -2546,7 +2546,7 @@ struct sock_skb_cb {
/* Store sock_skb_cb at the end of skb->cb[] so protocol families
* using skb->cb[] would keep using it directly and utilize its
- * alignement guarantee.
+ * alignment guarantee.
*/
#define SOCK_SKB_CB_OFFSET ((sizeof_field(struct sk_buff, cb) - \
sizeof(struct sock_skb_cb)))
diff --git a/include/net/udp.h b/include/net/udp.h
index 5ca53b1cec67..61222545ab1c 100644
--- a/include/net/udp.h
+++ b/include/net/udp.h
@@ -232,7 +232,7 @@ static inline __be16 udp_flow_src_port(struct net *net, struct sk_buff *skb,
}
/* Since this is being sent on the wire obfuscate hash a bit
- * to minimize possbility that any useful information to an
+ * to minimize possibility that any useful information to an
* attacker is leaked. Only upper 16 bits are relevant in the
* computation for 16 bit port value.
*/
diff --git a/include/uapi/linux/in.h b/include/uapi/linux/in.h
index d358add1611c..5d32d53508d9 100644
--- a/include/uapi/linux/in.h
+++ b/include/uapi/linux/in.h
@@ -141,7 +141,7 @@ struct in_addr {
*/
#define IP_PMTUDISC_INTERFACE 4
/* weaker version of IP_PMTUDISC_INTERFACE, which allows packets to get
- * fragmented if they exeed the interface mtu
+ * fragmented if they exceed the interface mtu
*/
#define IP_PMTUDISC_OMIT 5
diff --git a/include/uapi/linux/inet_diag.h b/include/uapi/linux/inet_diag.h
index 50655de04c9b..86bb2e8b17c9 100644
--- a/include/uapi/linux/inet_diag.h
+++ b/include/uapi/linux/inet_diag.h
@@ -143,7 +143,7 @@ enum {
INET_DIAG_SHUTDOWN,
/*
- * Next extenstions cannot be requested in struct inet_diag_req_v2:
+ * Next extensions cannot be requested in struct inet_diag_req_v2:
* its field idiag_ext has only 8 bits.
*/
--
2.43.0
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [PATCH net-next 13/13] net: Correct spelling in net/core
2024-08-22 12:57 [PATCH net-next 00/13] net: header and core spelling corrections Simon Horman
` (11 preceding siblings ...)
2024-08-22 12:57 ` [PATCH net-next 12/13] net: Correct spelling in headers Simon Horman
@ 2024-08-22 12:57 ` Simon Horman
2024-08-25 7:52 ` [PATCH net-next 00/13] net: header and core spelling corrections Philipp Stanner
2024-08-26 16:50 ` patchwork-bot+netdevbpf
14 siblings, 0 replies; 25+ messages in thread
From: Simon Horman @ 2024-08-22 12:57 UTC (permalink / raw)
To: Willem de Bruijn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Alexandra Winter, Thorsten Winkler, David Ahern,
Jay Vosburgh, Andy Gospodarek, Subash Abhinov Kasiviswanathan,
Sean Tranchetti, Paul Moore, Krzysztof Kozlowski,
Jamal Hadi Salim, Cong Wang, Jiri Pirko, Marcelo Ricardo Leitner,
Xin Long, Martin Schiller
Cc: netdev, linux-s390, linux-security-module, linux-sctp, linux-x25
Correct spelling in net/core.
As reported by codespell.
Signed-off-by: Simon Horman <horms@kernel.org>
---
net/core/dev.c | 6 +++---
net/core/dev_addr_lists.c | 6 +++---
net/core/fib_rules.c | 2 +-
net/core/gro.c | 2 +-
net/core/netpoll.c | 2 +-
net/core/pktgen.c | 10 +++++-----
net/core/skbuff.c | 4 ++--
net/core/sock.c | 6 +++---
net/core/utils.c | 2 +-
9 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/net/core/dev.c b/net/core/dev.c
index e7260889d4cb..2a7381e5cf88 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -3705,7 +3705,7 @@ struct sk_buff *validate_xmit_skb_list(struct sk_buff *skb, struct net_device *d
next = skb->next;
skb_mark_not_on_list(skb);
- /* in case skb wont be segmented, point to itself */
+ /* in case skb won't be segmented, point to itself */
skb->prev = skb;
skb = validate_xmit_skb(skb, dev, again);
@@ -11407,7 +11407,7 @@ void unregister_netdevice_many_notify(struct list_head *head,
* @head: list of devices
*
* Note: As most callers use a stack allocated list_head,
- * we force a list_del() to make sure stack wont be corrupted later.
+ * we force a list_del() to make sure stack won't be corrupted later.
*/
void unregister_netdevice_many(struct list_head *head)
{
@@ -11465,7 +11465,7 @@ int __dev_change_net_namespace(struct net_device *dev, struct net *net,
if (dev->features & NETIF_F_NETNS_LOCAL)
goto out;
- /* Ensure the device has been registrered */
+ /* Ensure the device has been registered */
if (dev->reg_state != NETREG_REGISTERED)
goto out;
diff --git a/net/core/dev_addr_lists.c b/net/core/dev_addr_lists.c
index baa63dee2829..166e404f7c03 100644
--- a/net/core/dev_addr_lists.c
+++ b/net/core/dev_addr_lists.c
@@ -262,7 +262,7 @@ static int __hw_addr_sync_multiple(struct netdev_hw_addr_list *to_list,
}
/* This function only works where there is a strict 1-1 relationship
- * between source and destionation of they synch. If you ever need to
+ * between source and destination of they synch. If you ever need to
* sync addresses to more then 1 destination, you need to use
* __hw_addr_sync_multiple().
*/
@@ -299,8 +299,8 @@ void __hw_addr_unsync(struct netdev_hw_addr_list *to_list,
EXPORT_SYMBOL(__hw_addr_unsync);
/**
- * __hw_addr_sync_dev - Synchonize device's multicast list
- * @list: address list to syncronize
+ * __hw_addr_sync_dev - Synchronize device's multicast list
+ * @list: address list to synchronize
* @dev: device to sync
* @sync: function to call if address should be added
* @unsync: function to call if address should be removed
diff --git a/net/core/fib_rules.c b/net/core/fib_rules.c
index 6ebffbc63236..644c49079bb1 100644
--- a/net/core/fib_rules.c
+++ b/net/core/fib_rules.c
@@ -72,7 +72,7 @@ int fib_default_rule_add(struct fib_rules_ops *ops,
r->suppress_prefixlen = -1;
r->suppress_ifgroup = -1;
- /* The lock is not required here, the list in unreacheable
+ /* The lock is not required here, the list in unreachable
* at the moment this function is called */
list_add_tail(&r->list, &ops->rules_list);
return 0;
diff --git a/net/core/gro.c b/net/core/gro.c
index b3b43de1a650..3abad1b567dd 100644
--- a/net/core/gro.c
+++ b/net/core/gro.c
@@ -374,7 +374,7 @@ static void gro_list_prepare(const struct list_head *head,
skb_mac_header(skb),
maclen);
- /* in most common scenarions 'slow_gro' is 0
+ /* in most common scenarios 'slow_gro' is 0
* otherwise we are already on some slower paths
* either skip all the infrequent tests altogether or
* avoid trying too hard to skip each of them individually
diff --git a/net/core/netpoll.c b/net/core/netpoll.c
index a58ea724790c..8debf27f383b 100644
--- a/net/core/netpoll.c
+++ b/net/core/netpoll.c
@@ -162,7 +162,7 @@ static void poll_one_napi(struct napi_struct *napi)
if (test_and_set_bit(NAPI_STATE_NPSVC, &napi->state))
return;
- /* We explicilty pass the polling call a budget of 0 to
+ /* We explicitly pass the polling call a budget of 0 to
* indicate that we are clearing the Tx path only.
*/
work = napi->poll(napi, 0);
diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index ea55a758a475..4baf02db1f6a 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -69,7 +69,7 @@
*
* By design there should only be *one* "controlling" process. In practice
* multiple write accesses gives unpredictable result. Understood by "write"
- * to /proc gives result code thats should be read be the "writer".
+ * to /proc gives result code that should be read be the "writer".
* For practical use this should be no problem.
*
* Note when adding devices to a specific CPU there good idea to also assign
@@ -2371,11 +2371,11 @@ static void get_ipsec_sa(struct pktgen_dev *pkt_dev, int flow)
if (pkt_dev->spi) {
/* We need as quick as possible to find the right SA
- * Searching with minimum criteria to archieve this.
+ * Searching with minimum criteria to achieve, this.
*/
x = xfrm_state_lookup_byspi(pn->net, htonl(pkt_dev->spi), AF_INET);
} else {
- /* slow path: we dont already have xfrm_state */
+ /* slow path: we don't already have xfrm_state */
x = xfrm_stateonly_find(pn->net, DUMMY_MARK, 0,
(xfrm_address_t *)&pkt_dev->cur_daddr,
(xfrm_address_t *)&pkt_dev->cur_saddr,
@@ -3838,8 +3838,8 @@ static int pktgen_add_device(struct pktgen_thread *t, const char *ifname)
pkt_dev->ipsmode = XFRM_MODE_TRANSPORT;
pkt_dev->ipsproto = IPPROTO_ESP;
- /* xfrm tunnel mode needs additional dst to extract outter
- * ip header protocol/ttl/id field, here creat a phony one.
+ /* xfrm tunnel mode needs additional dst to extract outer
+ * ip header protocol/ttl/id field, here create a phony one.
* instead of looking for a valid rt, which definitely hurting
* performance under such circumstance.
*/
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 1748673e1fe0..6022c7359385 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -5163,7 +5163,7 @@ EXPORT_SYMBOL_GPL(skb_to_sgvec);
* 3. sg_unmark_end
* 4. skb_to_sgvec(payload2)
*
- * When mapping mutilple payload conditionally, skb_to_sgvec_nomark
+ * When mapping multiple payload conditionally, skb_to_sgvec_nomark
* is more preferable.
*/
int skb_to_sgvec_nomark(struct sk_buff *skb, struct scatterlist *sg,
@@ -6021,7 +6021,7 @@ EXPORT_SYMBOL(skb_try_coalesce);
* @skb: buffer to clean
* @xnet: packet is crossing netns
*
- * skb_scrub_packet can be used after encapsulating or decapsulting a packet
+ * skb_scrub_packet can be used after encapsulating or decapsulating a packet
* into/from a tunnel. Some information have to be cleared during these
* operations.
* skb_scrub_packet can also be used to clean a skb before injecting it in
diff --git a/net/core/sock.c b/net/core/sock.c
index 9abc4fe25953..468b1239606c 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -2048,7 +2048,7 @@ static inline void sock_lock_init(struct sock *sk)
/*
* Copy all fields from osk to nsk but nsk->sk_refcnt must not change yet,
- * even temporarly, because of RCU lookups. sk_node should also be left as is.
+ * even temporarily, because of RCU lookups. sk_node should also be left as is.
* We must not copy fields between sk_dontcopy_begin and sk_dontcopy_end
*/
static void sock_copy(struct sock *nsk, const struct sock *osk)
@@ -2538,7 +2538,7 @@ void skb_set_owner_w(struct sk_buff *skb, struct sock *sk)
skb_set_hash_from_sk(skb, sk);
/*
* We used to take a refcount on sk, but following operation
- * is enough to guarantee sk_free() wont free this sock until
+ * is enough to guarantee sk_free() won't free this sock until
* all in-flight packets are completed
*/
refcount_add(skb->truesize, &sk->sk_wmem_alloc);
@@ -3697,7 +3697,7 @@ EXPORT_SYMBOL(sock_recv_errqueue);
*
* FIX: POSIX 1003.1g is very ambiguous here. It states that
* asynchronous errors should be reported by getsockopt. We assume
- * this means if you specify SO_ERROR (otherwise whats the point of it).
+ * this means if you specify SO_ERROR (otherwise what is the point of it).
*/
int sock_common_getsockopt(struct socket *sock, int level, int optname,
char __user *optval, int __user *optlen)
diff --git a/net/core/utils.c b/net/core/utils.c
index c994e95172ac..27f4cffaae05 100644
--- a/net/core/utils.c
+++ b/net/core/utils.c
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
- * Generic address resultion entity
+ * Generic address resolution entity
*
* Authors:
* net_random Alan Cox
--
2.43.0
^ permalink raw reply related [flat|nested] 25+ messages in thread
* Re: [PATCH net-next 10/13] sctp: Correct spelling in headers
2024-08-22 12:57 ` [PATCH net-next 10/13] sctp: " Simon Horman
@ 2024-08-22 14:01 ` Xin Long
0 siblings, 0 replies; 25+ messages in thread
From: Xin Long @ 2024-08-22 14:01 UTC (permalink / raw)
To: Simon Horman
Cc: Willem de Bruijn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Alexandra Winter, Thorsten Winkler, David Ahern,
Jay Vosburgh, Andy Gospodarek, Subash Abhinov Kasiviswanathan,
Sean Tranchetti, Paul Moore, Krzysztof Kozlowski,
Jamal Hadi Salim, Cong Wang, Jiri Pirko, Marcelo Ricardo Leitner,
Martin Schiller, netdev, linux-s390, linux-security-module,
linux-sctp, linux-x25
On Thu, Aug 22, 2024 at 8:58 AM Simon Horman <horms@kernel.org> wrote:
>
> Correct spelling in sctp.h and structs.h.
> As reported by codespell.
>
> Cc: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
> Cc: Xin Long <lucien.xin@gmail.com>
> Cc: linux-sctp@vger.kernel.org
> Signed-off-by: Simon Horman <horms@kernel.org>
Acked-by: Xin Long <lucien.xin@gmail.com>
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH net-next 06/13] net: qualcomm: rmnet: Correct spelling in if_rmnet.h
2024-08-22 12:57 ` [PATCH net-next 06/13] net: qualcomm: rmnet: Correct spelling in if_rmnet.h Simon Horman
@ 2024-08-23 5:07 ` Subash Abhinov Kasiviswanathan (KS)
0 siblings, 0 replies; 25+ messages in thread
From: Subash Abhinov Kasiviswanathan (KS) @ 2024-08-23 5:07 UTC (permalink / raw)
To: Simon Horman, Willem de Bruijn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Alexandra Winter, Thorsten Winkler,
David Ahern, Jay Vosburgh, Andy Gospodarek, Sean Tranchetti,
Paul Moore, Krzysztof Kozlowski, Jamal Hadi Salim, Cong Wang,
Jiri Pirko, Marcelo Ricardo Leitner, Xin Long, Martin Schiller
Cc: netdev, linux-s390, linux-security-module, linux-sctp, linux-x25
On 8/22/2024 6:57 AM, Simon Horman wrote:
> Correct spelling in if_rmnet.h
> As reported by codespell.
>
> Cc: Subash Abhinov Kasiviswanathan <quic_subashab@quicinc.com>
> Cc: Sean Tranchetti <quic_stranche@quicinc.com>
> Signed-off-by: Simon Horman <horms@kernel.org>
> ---
> include/linux/if_rmnet.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/if_rmnet.h b/include/linux/if_rmnet.h
> index 839d1e48b85e..c44bf6e80ecb 100644
> --- a/include/linux/if_rmnet.h
> +++ b/include/linux/if_rmnet.h
> @@ -42,7 +42,7 @@ struct rmnet_map_ul_csum_header {
>
> /* csum_info field:
> * OFFSET: where (offset in bytes) to insert computed checksum
> - * UDP: 1 = UDP checksum (zero checkum means no checksum)
> + * UDP: 1 = UDP checksum (zero checksum means no checksum)
> * ENABLED: 1 = checksum computation requested
> */
> #define MAP_CSUM_UL_OFFSET_MASK GENMASK(13, 0)
>
Reviewed-by: Subash Abhinov Kasiviswanathan <quic_subashab@quicinc.com>
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH net-next 11/13] x25: Correct spelling in x25.h
2024-08-22 12:57 ` [PATCH net-next 11/13] x25: Correct spelling in x25.h Simon Horman
@ 2024-08-23 5:27 ` Martin Schiller
0 siblings, 0 replies; 25+ messages in thread
From: Martin Schiller @ 2024-08-23 5:27 UTC (permalink / raw)
To: Simon Horman
Cc: Willem de Bruijn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Alexandra Winter, Thorsten Winkler, David Ahern,
Jay Vosburgh, Andy Gospodarek, Subash Abhinov Kasiviswanathan,
Sean Tranchetti, Paul Moore, Krzysztof Kozlowski,
Jamal Hadi Salim, Cong Wang, Jiri Pirko, Marcelo Ricardo Leitner,
Xin Long, netdev, linux-s390, linux-security-module, linux-sctp,
linux-x25
On 2024-08-22 14:57, Simon Horman wrote:
> Correct spelling in x25.h
> As reported by codespell.
>
> Cc: Martin Schiller <ms@dev.tdt.de>
> Cc: linux-x25@vger.kernel.org
> Signed-off-by: Simon Horman <horms@kernel.org>
> ---
> include/net/x25.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/net/x25.h b/include/net/x25.h
> index 597eb53c471e..5e833cfc864e 100644
> --- a/include/net/x25.h
> +++ b/include/net/x25.h
> @@ -81,7 +81,7 @@ enum {
>
> #define X25_DEFAULT_WINDOW_SIZE 2 /* Default Window Size */
> #define X25_DEFAULT_PACKET_SIZE X25_PS128 /* Default Packet Size */
> -#define X25_DEFAULT_THROUGHPUT 0x0A /* Deafult Throughput */
> +#define X25_DEFAULT_THROUGHPUT 0x0A /* Default Throughput */
> #define X25_DEFAULT_REVERSE 0x00 /* Default Reverse Charging */
>
> #define X25_SMODULUS 8
Reviewed-by: Martin Schiller <ms@dev.tdt.de>
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH net-next 01/13] packet: Correct spelling in if_packet.h
2024-08-22 12:57 ` [PATCH net-next 01/13] packet: Correct spelling in if_packet.h Simon Horman
@ 2024-08-23 12:42 ` Willem de Bruijn
0 siblings, 0 replies; 25+ messages in thread
From: Willem de Bruijn @ 2024-08-23 12:42 UTC (permalink / raw)
To: Simon Horman, Willem de Bruijn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Alexandra Winter, Thorsten Winkler,
David Ahern, Jay Vosburgh, Andy Gospodarek,
Subash Abhinov Kasiviswanathan, Sean Tranchetti, Paul Moore,
Krzysztof Kozlowski, Jamal Hadi Salim, Cong Wang, Jiri Pirko,
Marcelo Ricardo Leitner, Xin Long, Martin Schiller
Cc: netdev, linux-s390, linux-security-module, linux-sctp, linux-x25
Simon Horman wrote:
> Correct spelling in if_packet.h
> As reported by codespell.
>
> Cc: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
> Signed-off-by: Simon Horman <horms@kernel.org>
Acked-by: Willem de Bruijn <willemb@google.com>
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH net-next 08/13] NFC: Correct spelling in headers
2024-08-22 12:57 ` [PATCH net-next 08/13] NFC: Correct spelling in headers Simon Horman
@ 2024-08-23 13:40 ` Krzysztof Kozlowski
0 siblings, 0 replies; 25+ messages in thread
From: Krzysztof Kozlowski @ 2024-08-23 13:40 UTC (permalink / raw)
To: Simon Horman, Willem de Bruijn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Alexandra Winter, Thorsten Winkler,
David Ahern, Jay Vosburgh, Andy Gospodarek,
Subash Abhinov Kasiviswanathan, Sean Tranchetti, Paul Moore,
Jamal Hadi Salim, Cong Wang, Jiri Pirko, Marcelo Ricardo Leitner,
Xin Long, Martin Schiller
Cc: netdev, linux-s390, linux-security-module, linux-sctp, linux-x25
On 22/08/2024 14:57, Simon Horman wrote:
> Correct spelling in NFC headers.
> As reported by codespell.
>
> Cc: Krzysztof Kozlowski <krzk@kernel.org>
> Signed-off-by: Simon Horman <horms@kernel.org>
> ---
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH net-next 00/13] net: header and core spelling corrections
2024-08-22 12:57 [PATCH net-next 00/13] net: header and core spelling corrections Simon Horman
` (12 preceding siblings ...)
2024-08-22 12:57 ` [PATCH net-next 13/13] net: Correct spelling in net/core Simon Horman
@ 2024-08-25 7:52 ` Philipp Stanner
2024-08-25 8:06 ` Krzysztof Kozlowski
2024-08-25 8:54 ` Simon Horman
2024-08-26 16:50 ` patchwork-bot+netdevbpf
14 siblings, 2 replies; 25+ messages in thread
From: Philipp Stanner @ 2024-08-25 7:52 UTC (permalink / raw)
To: Simon Horman, Willem de Bruijn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Alexandra Winter, Thorsten Winkler,
David Ahern, Jay Vosburgh, Andy Gospodarek,
Subash Abhinov Kasiviswanathan, Sean Tranchetti, Paul Moore,
Krzysztof Kozlowski, Jamal Hadi Salim, Cong Wang, Jiri Pirko,
Marcelo Ricardo Leitner, Xin Long, Martin Schiller
Cc: netdev, linux-s390, linux-security-module, linux-sctp, linux-x25
Am Donnerstag, dem 22.08.2024 um 13:57 +0100 schrieb Simon Horman:
> This patchset addresses a number of spelling errors in comments in
> Networking files under include/, and files in net/core/. Spelling
> problems are as flagged by codespell.
>
> It aims to provide patches that can be accepted directly into net-
> next.
> And splits patches up based on maintainer boundaries: many things
> feed directly into net-next. This is a complex process and I
> apologise
> for any errors.
Are you aware that this lessens git blame's ability to provide the
latest relevant change and associated commit message?
Many software projects suffer from whitespace and spelling fixes
preventing git blame from figuring out years later what original code
was intended to do.
I'd consider that improving spelling might not win that cost-benefit-
ratio.
Regards,
P.
>
> I also plan to address, via separate patches, spelling errors in
> other
> files in the same directories, for files whose changes typically go
> through trees other than net-next (which feed into net-next).
>
> ---
> Simon Horman (13):
> packet: Correct spelling in if_packet.h
> s390/iucv: Correct spelling in iucv.h
> ip_tunnel: Correct spelling in ip_tunnels.h
> ipv6: Correct spelling in ipv6.h
> bonding: Correct spelling in headers
> net: qualcomm: rmnet: Correct spelling in if_rmnet.h
> netlabel: Correct spelling in netlabel.h
> NFC: Correct spelling in headers
> net: sched: Correct spelling in headers
> sctp: Correct spelling in headers
> x25: Correct spelling in x25.h
> net: Correct spelling in headers
> net: Correct spelling in net/core
>
> include/linux/etherdevice.h | 2 +-
> include/linux/if_rmnet.h | 2 +-
> include/linux/netdevice.h | 8 ++++----
> include/net/addrconf.h | 2 +-
> include/net/bond_3ad.h | 5 ++++-
> include/net/bond_alb.h | 2 +-
> include/net/busy_poll.h | 2 +-
> include/net/caif/caif_layer.h | 4 ++--
> include/net/caif/cfpkt.h | 2 +-
> include/net/dropreason-core.h | 6 +++---
> include/net/dst.h | 2 +-
> include/net/dst_cache.h | 2 +-
> include/net/erspan.h | 4 ++--
> include/net/hwbm.h | 4 ++--
> include/net/ip_tunnels.h | 2 +-
> include/net/ipv6.h | 4 ++--
> include/net/iucv/iucv.h | 2 +-
> include/net/llc_pdu.h | 2 +-
> include/net/netlabel.h | 2 +-
> include/net/netlink.h | 16 ++++++++--------
> include/net/netns/sctp.h | 4 ++--
> include/net/nfc/nci.h | 2 +-
> include/net/nfc/nfc.h | 8 ++++----
> include/net/pkt_cls.h | 2 +-
> include/net/red.h | 8 ++++----
> include/net/regulatory.h | 2 +-
> include/net/sctp/sctp.h | 2 +-
> include/net/sctp/structs.h | 20 ++++++++++----------
> include/net/sock.h | 4 ++--
> include/net/udp.h | 2 +-
> include/net/x25.h | 2 +-
> include/uapi/linux/if_packet.h | 7 ++++---
> include/uapi/linux/in.h | 2 +-
> include/uapi/linux/inet_diag.h | 2 +-
> net/core/dev.c | 6 +++---
> net/core/dev_addr_lists.c | 6 +++---
> net/core/fib_rules.c | 2 +-
> net/core/gro.c | 2 +-
> net/core/netpoll.c | 2 +-
> net/core/pktgen.c | 10 +++++-----
> net/core/skbuff.c | 4 ++--
> net/core/sock.c | 6 +++---
> net/core/utils.c | 2 +-
> 43 files changed, 93 insertions(+), 89 deletions(-)
>
> base-commit: 001b98c9897352e914c71d8ffbfa9b79a6e12c3c
>
>
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH net-next 00/13] net: header and core spelling corrections
2024-08-25 7:52 ` [PATCH net-next 00/13] net: header and core spelling corrections Philipp Stanner
@ 2024-08-25 8:06 ` Krzysztof Kozlowski
2024-08-25 8:54 ` Simon Horman
1 sibling, 0 replies; 25+ messages in thread
From: Krzysztof Kozlowski @ 2024-08-25 8:06 UTC (permalink / raw)
To: Philipp Stanner, Simon Horman, Willem de Bruijn, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Alexandra Winter,
Thorsten Winkler, David Ahern, Jay Vosburgh, Andy Gospodarek,
Subash Abhinov Kasiviswanathan, Sean Tranchetti, Paul Moore,
Jamal Hadi Salim, Cong Wang, Jiri Pirko, Marcelo Ricardo Leitner,
Xin Long, Martin Schiller
Cc: netdev, linux-s390, linux-security-module, linux-sctp, linux-x25
On 25/08/2024 09:52, Philipp Stanner wrote:
> Am Donnerstag, dem 22.08.2024 um 13:57 +0100 schrieb Simon Horman:
>> This patchset addresses a number of spelling errors in comments in
>> Networking files under include/, and files in net/core/. Spelling
>> problems are as flagged by codespell.
>>
>> It aims to provide patches that can be accepted directly into net-
>> next.
>> And splits patches up based on maintainer boundaries: many things
>> feed directly into net-next. This is a complex process and I
>> apologise
>> for any errors.
>
> Are you aware that this lessens git blame's ability to provide the
> latest relevant change and associated commit message?
Considering how many code style changes the kernel receives, I already
(and not only me) moved away to just `git log --follow`, so I don't find
one more step for `git blame` a problem.
>
> Many software projects suffer from whitespace and spelling fixes
> preventing git blame from figuring out years later what original code
> was intended to do.
>
> I'd consider that improving spelling might not win that cost-benefit-
> ratio.
I would rather claim that impact on backporting is more important, yet
still fixing style makes code more readable thus maintainable. And
that's a benefit.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH net-next 00/13] net: header and core spelling corrections
2024-08-25 7:52 ` [PATCH net-next 00/13] net: header and core spelling corrections Philipp Stanner
2024-08-25 8:06 ` Krzysztof Kozlowski
@ 2024-08-25 8:54 ` Simon Horman
1 sibling, 0 replies; 25+ messages in thread
From: Simon Horman @ 2024-08-25 8:54 UTC (permalink / raw)
To: Philipp Stanner
Cc: Willem de Bruijn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Alexandra Winter, Thorsten Winkler, David Ahern,
Jay Vosburgh, Andy Gospodarek, Subash Abhinov Kasiviswanathan,
Sean Tranchetti, Paul Moore, Krzysztof Kozlowski,
Jamal Hadi Salim, Cong Wang, Jiri Pirko, Marcelo Ricardo Leitner,
Xin Long, Martin Schiller, netdev, linux-s390,
linux-security-module, linux-sctp, linux-x25
On Sun, Aug 25, 2024 at 07:52:45AM +0000, Philipp Stanner wrote:
> Am Donnerstag, dem 22.08.2024 um 13:57 +0100 schrieb Simon Horman:
> > This patchset addresses a number of spelling errors in comments in
> > Networking files under include/, and files in net/core/. Spelling
> > problems are as flagged by codespell.
> >
> > It aims to provide patches that can be accepted directly into net-
> > next.
> > And splits patches up based on maintainer boundaries: many things
> > feed directly into net-next. This is a complex process and I
> > apologise
> > for any errors.
>
> Are you aware that this lessens git blame's ability to provide the
> latest relevant change and associated commit message?
>
> Many software projects suffer from whitespace and spelling fixes
> preventing git blame from figuring out years later what original code
> was intended to do.
>
> I'd consider that improving spelling might not win that cost-benefit-
> ratio.
Sure, that is a judgment call that can be made. I think that it is pretty
common for spelling corrections to be accepted, and I do think there is a
value in having things spelt correctly. But if the consensus is otherwise,
then fine.
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH net-next 12/13] net: Correct spelling in headers
2024-08-22 12:57 ` [PATCH net-next 12/13] net: Correct spelling in headers Simon Horman
@ 2024-08-26 16:45 ` Jakub Kicinski
2024-08-27 8:25 ` Simon Horman
0 siblings, 1 reply; 25+ messages in thread
From: Jakub Kicinski @ 2024-08-26 16:45 UTC (permalink / raw)
To: Simon Horman
Cc: Willem de Bruijn, David S. Miller, Eric Dumazet, Paolo Abeni,
Alexandra Winter, Thorsten Winkler, David Ahern, Jay Vosburgh,
Andy Gospodarek, Subash Abhinov Kasiviswanathan, Sean Tranchetti,
Paul Moore, Krzysztof Kozlowski, Jamal Hadi Salim, Cong Wang,
Jiri Pirko, Marcelo Ricardo Leitner, Xin Long, Martin Schiller,
netdev, linux-s390, linux-security-module, linux-sctp, linux-x25
On Thu, 22 Aug 2024 13:57:33 +0100 Simon Horman wrote:
> diff --git a/include/net/dropreason-core.h b/include/net/dropreason-core.h
> index 9707ab54fdd5..4748680e8c88 100644
> --- a/include/net/dropreason-core.h
> +++ b/include/net/dropreason-core.h
> @@ -155,8 +155,8 @@ enum skb_drop_reason {
> /** @SKB_DROP_REASON_SOCKET_RCVBUFF: socket receive buff is full */
> SKB_DROP_REASON_SOCKET_RCVBUFF,
> /**
> - * @SKB_DROP_REASON_PROTO_MEM: proto memory limition, such as udp packet
> - * drop out of udp_memory_allocated.
> + * @SKB_DROP_REASON_PROTO_MEM: proto memory limitation, such as
> + * udp packet drop out of udp_memory_allocated.
> */
> SKB_DROP_REASON_PROTO_MEM,
> /**
> @@ -217,7 +217,7 @@ enum skb_drop_reason {
> */
> SKB_DROP_REASON_TCP_ZEROWINDOW,
> /**
> - * @SKB_DROP_REASON_TCP_OLD_DATA: the TCP data reveived is already
> + * @SKB_DROP_REASON_TCP_OLD_DATA: the TCP data received is already
> * received before (spurious retrans may happened), see
> * LINUX_MIB_DELAYEDACKLOST
> */
I'd have been tempted to improve the grammar of these while at it.
But I guess that'd make the patch more than a spelling fix.
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH net-next 00/13] net: header and core spelling corrections
2024-08-22 12:57 [PATCH net-next 00/13] net: header and core spelling corrections Simon Horman
` (13 preceding siblings ...)
2024-08-25 7:52 ` [PATCH net-next 00/13] net: header and core spelling corrections Philipp Stanner
@ 2024-08-26 16:50 ` patchwork-bot+netdevbpf
14 siblings, 0 replies; 25+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-08-26 16:50 UTC (permalink / raw)
To: Simon Horman
Cc: willemdebruijn.kernel, davem, edumazet, kuba, pabeni, wintera,
twinkler, dsahern, jv, andy, quic_subashab, quic_stranche, paul,
krzk, jhs, xiyou.wangcong, jiri, marcelo.leitner, lucien.xin, ms,
netdev, linux-s390, linux-security-module, linux-sctp, linux-x25
Hello:
This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Thu, 22 Aug 2024 13:57:21 +0100 you wrote:
> This patchset addresses a number of spelling errors in comments in
> Networking files under include/, and files in net/core/. Spelling
> problems are as flagged by codespell.
>
> It aims to provide patches that can be accepted directly into net-next.
> And splits patches up based on maintainer boundaries: many things
> feed directly into net-next. This is a complex process and I apologise
> for any errors.
>
> [...]
Here is the summary with links:
- [net-next,01/13] packet: Correct spelling in if_packet.h
https://git.kernel.org/netdev/net-next/c/d24dac8eb811
- [net-next,02/13] s390/iucv: Correct spelling in iucv.h
https://git.kernel.org/netdev/net-next/c/c34944603248
- [net-next,03/13] ip_tunnel: Correct spelling in ip_tunnels.h
https://git.kernel.org/netdev/net-next/c/d0193b167f27
- [net-next,04/13] ipv6: Correct spelling in ipv6.h
https://git.kernel.org/netdev/net-next/c/507285b7f9b2
- [net-next,05/13] bonding: Correct spelling in headers
https://git.kernel.org/netdev/net-next/c/e8ac2dba93ea
- [net-next,06/13] net: qualcomm: rmnet: Correct spelling in if_rmnet.h
https://git.kernel.org/netdev/net-next/c/19f1f11c9a8e
- [net-next,07/13] netlabel: Correct spelling in netlabel.h
https://git.kernel.org/netdev/net-next/c/6899c2549cf7
- [net-next,08/13] NFC: Correct spelling in headers
https://git.kernel.org/netdev/net-next/c/10d0749a38c3
- [net-next,09/13] net: sched: Correct spelling in headers
https://git.kernel.org/netdev/net-next/c/a7a45f02a093
- [net-next,10/13] sctp: Correct spelling in headers
https://git.kernel.org/netdev/net-next/c/7f47fcea8c6b
- [net-next,11/13] x25: Correct spelling in x25.h
https://git.kernel.org/netdev/net-next/c/01d86846a5a5
- [net-next,12/13] net: Correct spelling in headers
https://git.kernel.org/netdev/net-next/c/70d0bb45fae8
- [net-next,13/13] net: Correct spelling in net/core
https://git.kernel.org/netdev/net-next/c/a8c924e98738
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH net-next 12/13] net: Correct spelling in headers
2024-08-26 16:45 ` Jakub Kicinski
@ 2024-08-27 8:25 ` Simon Horman
0 siblings, 0 replies; 25+ messages in thread
From: Simon Horman @ 2024-08-27 8:25 UTC (permalink / raw)
To: Jakub Kicinski
Cc: Willem de Bruijn, David S. Miller, Eric Dumazet, Paolo Abeni,
Alexandra Winter, Thorsten Winkler, David Ahern, Jay Vosburgh,
Andy Gospodarek, Subash Abhinov Kasiviswanathan, Sean Tranchetti,
Paul Moore, Krzysztof Kozlowski, Jamal Hadi Salim, Cong Wang,
Jiri Pirko, Marcelo Ricardo Leitner, Xin Long, Martin Schiller,
netdev, linux-s390, linux-security-module, linux-sctp, linux-x25
On Mon, Aug 26, 2024 at 09:45:07AM -0700, Jakub Kicinski wrote:
> On Thu, 22 Aug 2024 13:57:33 +0100 Simon Horman wrote:
> > diff --git a/include/net/dropreason-core.h b/include/net/dropreason-core.h
> > index 9707ab54fdd5..4748680e8c88 100644
> > --- a/include/net/dropreason-core.h
> > +++ b/include/net/dropreason-core.h
> > @@ -155,8 +155,8 @@ enum skb_drop_reason {
> > /** @SKB_DROP_REASON_SOCKET_RCVBUFF: socket receive buff is full */
> > SKB_DROP_REASON_SOCKET_RCVBUFF,
> > /**
> > - * @SKB_DROP_REASON_PROTO_MEM: proto memory limition, such as udp packet
> > - * drop out of udp_memory_allocated.
> > + * @SKB_DROP_REASON_PROTO_MEM: proto memory limitation, such as
> > + * udp packet drop out of udp_memory_allocated.
> > */
> > SKB_DROP_REASON_PROTO_MEM,
> > /**
> > @@ -217,7 +217,7 @@ enum skb_drop_reason {
> > */
> > SKB_DROP_REASON_TCP_ZEROWINDOW,
> > /**
> > - * @SKB_DROP_REASON_TCP_OLD_DATA: the TCP data reveived is already
> > + * @SKB_DROP_REASON_TCP_OLD_DATA: the TCP data received is already
> > * received before (spurious retrans may happened), see
> > * LINUX_MIB_DELAYEDACKLOST
> > */
>
> I'd have been tempted to improve the grammar of these while at it.
> But I guess that'd make the patch more than a spelling fix.
Thanks. I was trying to stick to strictly spelling fixes.
I'll submit a follow-up for this to (hopefully) improve the grammar.
You can take it or leave it :)
^ permalink raw reply [flat|nested] 25+ messages in thread
end of thread, other threads:[~2024-08-27 8:25 UTC | newest]
Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-22 12:57 [PATCH net-next 00/13] net: header and core spelling corrections Simon Horman
2024-08-22 12:57 ` [PATCH net-next 01/13] packet: Correct spelling in if_packet.h Simon Horman
2024-08-23 12:42 ` Willem de Bruijn
2024-08-22 12:57 ` [PATCH net-next 02/13] s390/iucv: Correct spelling in iucv.h Simon Horman
2024-08-22 12:57 ` [PATCH net-next 03/13] ip_tunnel: Correct spelling in ip_tunnels.h Simon Horman
2024-08-22 12:57 ` [PATCH net-next 04/13] ipv6: Correct spelling in ipv6.h Simon Horman
2024-08-22 12:57 ` [PATCH net-next 05/13] bonding: Correct spelling in headers Simon Horman
2024-08-22 12:57 ` [PATCH net-next 06/13] net: qualcomm: rmnet: Correct spelling in if_rmnet.h Simon Horman
2024-08-23 5:07 ` Subash Abhinov Kasiviswanathan (KS)
2024-08-22 12:57 ` [PATCH net-next 07/13] netlabel: Correct spelling in netlabel.h Simon Horman
2024-08-22 12:57 ` [PATCH net-next 08/13] NFC: Correct spelling in headers Simon Horman
2024-08-23 13:40 ` Krzysztof Kozlowski
2024-08-22 12:57 ` [PATCH net-next 09/13] net: sched: " Simon Horman
2024-08-22 12:57 ` [PATCH net-next 10/13] sctp: " Simon Horman
2024-08-22 14:01 ` Xin Long
2024-08-22 12:57 ` [PATCH net-next 11/13] x25: Correct spelling in x25.h Simon Horman
2024-08-23 5:27 ` Martin Schiller
2024-08-22 12:57 ` [PATCH net-next 12/13] net: Correct spelling in headers Simon Horman
2024-08-26 16:45 ` Jakub Kicinski
2024-08-27 8:25 ` Simon Horman
2024-08-22 12:57 ` [PATCH net-next 13/13] net: Correct spelling in net/core Simon Horman
2024-08-25 7:52 ` [PATCH net-next 00/13] net: header and core spelling corrections Philipp Stanner
2024-08-25 8:06 ` Krzysztof Kozlowski
2024-08-25 8:54 ` Simon Horman
2024-08-26 16:50 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).