net: fix typos in comments
Subsystems (4)
cover net: fix typos in comments
This corrects 3 misspellings in comments. Each is a separate patch so that any one of them can be dropped without touching the rest.
Nothing outside comments changes. Every touched C file was checked by dropping its comments, replacing each string literal with a placeholder and collapsing whitespace; what remained was identical before and after, so the compiled code cannot differ.
The mistakes were found with scripts/checkpatch.pl against the list in scripts/spelling.txt. The scanning, the edits and the changelogs were produced with Cursor running the claude-opus-5 model, from a request to find and fix spelling mistakes across the tree, and every correction was then re-checked by the comparison described above. Words that name an identifier were left alone deliberately, even when they read as typos, because correcting the prose would make the comment disagree with the code it describes.
Tested by building x86_64 defconfig at v7.3-rc1-269-gbc35965f6940, which is clean. Nothing else was built, so any patch touching code that x86_64 defconfig does not compile has been read but not compiled.
Hemanth Selam (3):
net: ipv4: fix typo "alignement" in comment
net: netfilter: fix typo "artifical" in comment
selftests: net: fix typo "adress" in comment
net/ipv4/netfilter/arp_tables.c | 2 +- net/netfilter/ipset/ip_set_core.c | 2 +- tools/testing/selftests/net/netfilter/conntrack_icmp_related.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.48.1
PATCH 1/3 net: ipv4: fix typo "alignement" in comment
Correct "alignement" to "alignment", reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.
--- net/ipv4/netfilter/arp_tables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv4/netfilter/arp_tables.c +1 -1
@@ -59,7 +59,7 @@ static inline int arp_devaddr_compare(const struct arpt_devaddr_info *ap,/* * Unfortunately, _b and _mask are not aligned to an int (or long int) * Some arches dont care, unrolling the loop is a win on them. -* For other arches, we only have a 16bit alignement. +* For other arches, we only have a 16bit alignment. */ static unsigned long ifname_compare (const char *_a,const char *_b,const char *_mask) {
Signature · 1 line
2.48.1
PATCH 2/3 net: netfilter: fix typo "artifical" in comment
In reply to Hemanth SelamCorrect "artifical" to "artificial", reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.
--- net/netfilter/ipset/ip_set_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/ipset/ip_set_core.c +1 -1
@@ -1426,7 +1426,7 @@ static int ip_set_swap(struct sk_buff *skb, const struct nfnl_info *info,return -IPSET_ERR_EXIST_SETNAME2 ;/* Features must not change. -* Not an artifical restriction anymore, as we must prevent +* Not an artificial restriction anymore, as we must prevent * possible loops created by swapping in setlist type of sets. */ if (!(from->type->features == to->type->features &&
Signature · 1 line
2.48.1
PATCH 3/3 selftests: net: fix typo "adress" in comment
In reply to Hemanth SelamCorrect "adress" to "address", reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.
--- tools/testing/selftests/net/netfilter/conntrack_icmp_related.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/net/netfilter/conntrack_icmp_related.sh +1 -1
@@ -171,7 +171,7 @@ table inet filter { } EOF -# make sure NAT core rewrites adress of icmp error if nat is used according to +# make sure NAT core rewrites address of icmp error if nat is used according to # conntrack nat information (icmp error will be directed at nsrouter1 address, # but it needs to be routed to nsclient1 address). ip netns exec "$nsrouter1" nft -f - <<EOF
Signature · 1 line
2.48.1