Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: filter: fix spelling mistakes

Fix spelling errors as reported by codespell.

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: bpf@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240106065545.16855-1-rdunlap@infradead.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>

authored by

Randy Dunlap and committed by
Alexei Starovoitov
15b8b0be 522bb2c1

+4 -4
+4 -4
net/core/filter.c
··· 777 777 BPF_EMIT_JMP; 778 778 break; 779 779 780 - /* ldxb 4 * ([14] & 0xf) is remaped into 6 insns. */ 780 + /* ldxb 4 * ([14] & 0xf) is remapped into 6 insns. */ 781 781 case BPF_LDX | BPF_MSH | BPF_B: { 782 782 struct sock_filter tmp = { 783 783 .code = BPF_LD | BPF_ABS | BPF_B, ··· 803 803 *insn = BPF_MOV64_REG(BPF_REG_A, BPF_REG_TMP); 804 804 break; 805 805 } 806 - /* RET_K is remaped into 2 insns. RET_A case doesn't need an 806 + /* RET_K is remapped into 2 insns. RET_A case doesn't need an 807 807 * extra mov as BPF_REG_0 is already mapped into BPF_REG_A. 808 808 */ 809 809 case BPF_RET | BPF_A: ··· 2967 2967 * 2968 2968 * Then if B is non-zero AND there is no space allocate space and 2969 2969 * compact A, B regions into page. If there is space shift ring to 2970 - * the rigth free'ing the next element in ring to place B, leaving 2970 + * the right free'ing the next element in ring to place B, leaving 2971 2971 * A untouched except to reduce length. 2972 2972 */ 2973 2973 if (start != offset) { ··· 8226 8226 #if IS_MODULE(CONFIG_NF_CONNTRACK) && IS_ENABLED(CONFIG_DEBUG_INFO_BTF_MODULES) 8227 8227 /* The nf_conn___init type is used in the NF_CONNTRACK kfuncs. The 8228 8228 * kfuncs are defined in two different modules, and we want to be able 8229 - * to use them interchangably with the same BTF type ID. Because modules 8229 + * to use them interchangeably with the same BTF type ID. Because modules 8230 8230 * can't de-duplicate BTF IDs between each other, we need the type to be 8231 8231 * referenced in the vmlinux BTF or the verifier will get confused about 8232 8232 * the different types. So we add this dummy type reference which will