[PATCH v2 net-next 0/2] net: socket: use BIT() for MSG_* and fix MSG_CMSG_COMPAT

2021-03-21 Thread menglong8 . dong
From: Menglong Dong In the first patch, I use BIT() for MSG_* to make the code tidier. Directly use BIT() for MSG_* will be a bit problematic, because 'msg_flags' is defined as 'int' somewhere, and MSG_CMSG_COMPAT will make it become negative, just like what Guenter Roeck reported here: https:/

[PATCH v2 net-next 2/2] net: socket: change MSG_CMSG_COMPAT to BIT(21)

2021-03-21 Thread menglong8 . dong
From: Menglong Dong Currently, MSG_CMSG_COMPAT is defined as '1 << 31'. However, 'msg_flags' is defined with type of 'int' somewhere, such as 'packet_recvmsg' and other recvmsg functions: static int packet_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,

[PATCH v2 net-next 1/2] net: socket: use BIT() for MSG_*

2021-03-21 Thread menglong8 . dong
From: Menglong Dong The bit mask for MSG_* seems a little confused here. Replace it with BIT() to make it clear to understand. Signed-off-by: Menglong Dong --- include/linux/socket.h | 71 ++ 1 file changed, 37 insertions(+), 34 deletions(-) diff --git

[PATCH net-next 2/2] net: socket: change MSG_CMSG_COMPAT to BIT(21)

2021-03-21 Thread menglong8 . dong
From: Menglong Dong Currently, MSG_CMSG_COMPAT is defined as '1 << 31'. However, 'msg_flags' is defined with type of 'int' somewhere, such as 'packet_recvmsg' and other recvmsg functions: static int packet_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,

[PATCH net-next 1/2] net: socket: use BIT() for MSG_*

2021-03-21 Thread menglong8 . dong
From: Menglong Dong The bit mask for MSG_* seems a little confused here. Replace it with BIT() to make it clear to understand. Signed-off-by: Menglong Dong --- include/linux/socket.h | 71 ++ 1 file changed, 37 insertions(+), 34 deletions(-) diff --git

[PATCH net-next 0/2] net: socket: use BIT() for MSG_* and fix MSG_CMSG_COMPAT

2021-03-21 Thread menglong8 . dong
From: Menglong Dong In the first patch, I use BIT() for MSG_* to make the code tidier. Directly use BIT() for MSG_* will be a bit problematic, because 'msg_flags' is defined as 'int' somewhere, and MSG_CMSG_COMPAT will make it become negative, just like what Guenter Roeck reported here: https:/

[PATCH] phy:qualcomm: remove duplicate argument

2021-03-19 Thread menglong8 . dong
From: Zhang Yunkai 'HSUSB_CTRL_DPSEHV_CLAMP' in 'val' is duplicated. Signed-off-by: Zhang Yunkai --- drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c b/drivers/phy/qualcomm/phy-qcom-

[PATCH] fs/cifs/: fix misspellings using codespell tool

2021-03-18 Thread menglong8 . dong
From: Liu xuzhi A typo is found out by codespell tool in 251th lines of cifs_swn.c: $ codespell ./fs/cifs/ ./cifs_swn.c:251: funciton ==> function Fix a typo found by codespell. Signed-off-by: Liu xuzhi --- fs/cifs/cifs_swn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] fs/ext2/: fix misspellings using codespell tool

2021-03-18 Thread menglong8 . dong
From: Liu xuzhi A typo is found out by codespell tool in 1107th lines of super.c: $ codespell ./fs/ext2/ ./super.c:1107: fileystem ==> filesystem Fix a typo found by codespell. Signed-off-by: Liu xuzhi --- fs/ext2/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/f

[PATCH] security: fix misspellings using codespell tool

2021-03-18 Thread menglong8 . dong
From: Xiong Zhenwu A typo is found out by codespell tool: $ codespell ./security ./security/commoncap.c:1135: capabilties ==> capabilities Fix a typo found by codespell. Signed-off-by: Xiong Zhenwu --- security/commoncap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH net-next] /net/core/: fix misspellings using codespell tool

2021-03-18 Thread menglong8 . dong
From: Xiong Zhenwu A typo is found out by codespell tool in 1734th line of drop_monitor.c: $ codespell ./net/core/ ./net/core/drop_monitor.c:1734: guarnateed ==> guaranteed Fix a typo found by codespell. Signed-off-by: Xiong Zhenwu --- net/core/drop_monitor.c | 2 +- 1 file changed, 1 inser

[PATCH net-next] /net/hsr: fix misspellings using codespell tool

2021-03-18 Thread menglong8 . dong
From: Xiong Zhenwu A typo is found out by codespell tool in 111th line of hsr_debugfs.c: $ codespell ./net/hsr/ net/hsr/hsr_debugfs.c:111: Debufs ==> Debugfs Fix typos found by codespell. Signed-off-by: Xiong Zhenwu --- net/hsr/hsr_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

[PATCH] fs/nilfs2: fix misspellings using codespell tool

2021-03-18 Thread menglong8 . dong
From: Liu xuzhi Two typos are found out by codespell tool \ in 2217th and 2254th lines of segment.c: $ codespell ./fs/nilfs2/ ./segment.c:2217 :retured ==> returned ./segment.c:2254: retured ==> returned Fix two typos found by codespell. Signed-off-by: Liu xuzhi --- fs/nilfs2/segment.c | 4

[PATCH] /fs/overlayfs/: fix misspellings using codespell tool

2021-03-18 Thread menglong8 . dong
From: Xiong Zhenwu A typo is found out by codespell tool: $ codespell ./fs/overlayfs/ ./fs/overlayfs/util.c:217: dependig ==> depending Fix a typo found by codespell. Signed-off-by: Xiong Zhenwu --- fs/overlayfs/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/o

[PATCH] security/smack: fix misspellings using codespell tool

2021-03-18 Thread menglong8 . dong
From: Xiong Zhenwu A typo is found out by codespell tool in 116th line of smackfs.c: $ codespell ./security/smack ./smackfs.c:116: lables ==> labels Fix a typo found by codespell. Signed-off-by: Xiong Zhenwu --- security/smack/smackfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH] security/smack/: fix misspellings using codespell tool

2021-03-18 Thread menglong8 . dong
From: Xiong Zhenwu A typo is found out by codespell tool in 383th line of smackfs.c: $ codespell ./security/smack/ ./smackfs.c:383: numer ==> number Fix a typo found by codespell. Signed-off-by: Xiong Zhenwu --- security/smack/smackfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH] selftests: remove duplicate include

2021-03-16 Thread menglong8 . dong
From: Zhang Yunkai 'assert.h' included in 'sparsebit.c' is duplicated. It is also included in the 161th line. 'string.h' included in 'mincore_selftest.c' is duplicated. It is also included in the 15th line. 'sched.h' included in 'tlbie_test.c' is duplicated. It is also included in the 33th line.

[PATCH] lightnvm: remove duplicate include in lightnvm.h

2021-03-13 Thread menglong8 . dong
From: Zhang Yunkai 'linux/ioctl.h' included in 'lightnvm.h' is duplicated. It is also included in the 33th line. Signed-off-by: Zhang Yunkai --- include/uapi/linux/lightnvm.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/uapi/linux/lightnvm.h b/include/uapi/linux/lightnvm.h index

[PATCH] signal: remove duplicate include in signal.h

2021-03-13 Thread menglong8 . dong
From: Zhang Yunkai 'linux/string.h' included in 'signal.h' is duplicated. It is also included in the 7th line. Signed-off-by: Zhang Yunkai --- include/linux/signal.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/signal.h b/include/linux/signal.h index 205526c4003a..c371d3a3f

[PATCH] mtd:rawnand: remove duplicate include in rawnand.h

2021-03-13 Thread menglong8 . dong
From: Zhang Yunkai 'linux/mtd/nand.h' included in 'rawnand.h' is duplicated. It is also included in the 17th line. Signed-off-by: Zhang Yunkai --- include/linux/mtd/rawnand.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/mtd/rawnand.h b/include/linux/mtd/rawnand.h index 6b32

[PATCH] lightnvm: remove duplicate include in lightnvm.h

2021-03-13 Thread menglong8 . dong
From: Zhang Yunkai 'linux/blkdev.h' and 'uapi/linux/lightnvm.h' included in 'lightnvm.h' is duplicated.It is also included in the 5th and 7th line. Signed-off-by: Zhang Yunkai --- include/linux/lightnvm.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/lightnvm.h b/include/l

[PATCH] crash_dump: remove duplicate include in crash_dump.h

2021-03-13 Thread menglong8 . dong
From: Zhang Yunkai 'linux/pgtable.h' included in 'crash_dump.h' is duplicated. It is also included in the 8th line. Signed-off-by: Zhang Yunkai --- include/linux/crash_dump.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/crash_dump.h b/include/linux/crash_dump.h index a519

[PATCH] ARM:sa1100: remove duplicate include in hackkit.c

2021-03-13 Thread menglong8 . dong
From: Zhang Yunkai 'linux/tty.h' included in 'hackkit.c' is duplicated. It is also included in the 13th line. Signed-off-by: Zhang Yunkai --- arch/arm/mach-sa1100/hackkit.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-sa1100/hackkit.c b/arch/arm/mach-sa1100/hackkit.c index

[PATCH] kernel/bpf/: fix misspellings using codespell tool

2021-03-11 Thread menglong8 . dong
From: Liu xuzhi A typo is found out by codespell tool in 34th lines of hashtab.c: $ codespell ./kernel/bpf/ ./hashtab.c:34 : differrent ==> different Fix a typo found by codespell. Signed-off-by: Liu xuzhi --- kernel/bpf/hashtab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

[PATCH v4 RESEND net-next] net: socket: use BIT() for MSG_*

2021-03-09 Thread menglong8 . dong
From: Menglong Dong The bit mask for MSG_* seems a little confused here. Replace it with BIT() to make it clear to understand. Signed-off-by: Menglong Dong --- v4: - CC netdev v3: - move changelog here v2: - use BIT() instead of BIT_MASK() --- include/linux/socket.h | 71 ++

[PATCH net-next] net: netlink: remove netlink_broadcast_filtered

2021-03-09 Thread menglong8 . dong
From: Menglong Dong It seems that 'netlink_broadcast_filtered()' is not used anywhere besides 'netlink_broadcast()'. In order to reduce function calls, just remove it. Signed-off-by: Menglong Dong --- include/linux/netlink.h | 4 net/netlink/af_netlink.c | 22 ++ 2 f

[PATCH] security/apparmor: fix misspellings using codespell tool

2021-03-08 Thread menglong8 . dong
From: Xiong Zhenwu A typo is found out by codespell tool in 204th line of apparmorfs.c: $ codespell ./security/apparmor/ ./apparmorfs.c:204: seting ==> setting Fix a typo found by codespell. Signed-off-by: Xiong Zhenwu --- security/apparmor/apparmorfs.c | 2 +- 1 file changed, 1 insertion(+

[PATCH] security/selinux/include/: fix misspellings using codespell tool

2021-03-08 Thread menglong8 . dong
From: Xiong Zhenwu A typo is f out by codespell tool in 422th line of security.h: $ codespell ./security/selinux/include/ ./security.h:422: thie ==> the, this Fix a typo found by codespell. Signed-off-by: Xiong Zhenwu --- security/selinux/include/security.h | 2 +- 1 file changed, 1 insert

[PATCH] security/selinux/ss: fix misspellings using codespell tool

2021-03-08 Thread menglong8 . dong
From: Xiong Zhenwu A typo is found out by codespell tool in 16th line of hashtab.c $ codespell ./security/selinux/ss/ ./hashtab.c:16: rouding ==> rounding Fix a typo found by codespell. Signed-off-by: Xiong Zhenwu --- security/selinux/ss/hashtab.c | 2 +- 1 file changed, 1 insertion(+), 1 d

[PATCH] mm:process_vm_access: remove duplicate include

2021-03-06 Thread menglong8 . dong
From: Zhang Yunkai 'linux/compat.h' included in 'process_vm_access.c' is duplicated. Signed-off-by: Zhang Yunkai --- mm/process_vm_access.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/process_vm_access.c b/mm/process_vm_access.c index f5fee9cf90f8..4bcc11958089 100644 --- a/mm/proces

[PATCH] watchdog:dw_wdt: remove duplicate include

2021-03-06 Thread menglong8 . dong
From: Zhang Yunkai 'linux/kernel.h' included in 'dw_wdt.c' is duplicated. It is also included in the 17th line. Signed-off-by: Zhang Yunkai --- drivers/watchdog/dw_wdt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/watchdog/dw_wdt.c b/drivers/watchdog/dw_wdt.c index 32d0e1781e63.

[PATCH] thermal:ti-soc-thermal: remove duplicate include in ti-bandgap

2021-03-06 Thread menglong8 . dong
From: Zhang Yunkai 'of_device.h' included in 'ti-bandgap.c' is duplicated. It is also included in the 25th line. Signed-off-by: Zhang Yunkai --- drivers/thermal/ti-soc-thermal/ti-bandgap.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/thermal/ti-soc-thermal/ti-bandgap.c b/drivers

[PATCH] media:atomisp: remove duplicate include in sh_css

2021-03-06 Thread menglong8 . dong
From: Zhang Yunkai 'ia_css_isys.h' included in 'sh_css.c' is duplicated. It is also included in the 30th line. Signed-off-by: Zhang Yunkai --- drivers/staging/media/atomisp/pci/sh_css.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/sh_css.c b/drivers/

[PATCH] soc:litex: remove duplicate include in litex_soc_ctrl

2021-03-06 Thread menglong8 . dong
From: Zhang Yunkai 'errno.h' included in 'litex_soc_ctrl.c' is duplicated. It is also included in the 11th line. Signed-off-by: Zhang Yunkai --- drivers/soc/litex/litex_soc_ctrl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/soc/litex/litex_soc_ctrl.c b/drivers/soc/litex/litex_s

[PATCH] scsi:ufs: remove duplicate include in ufshcd

2021-03-06 Thread menglong8 . dong
From: Zhang Yunkai 'blkdev.h' included in 'ufshcd.c' is duplicated. It is also included in the 18th line. Signed-off-by: Zhang Yunkai --- drivers/scsi/ufs/ufshcd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 77161750c9fb..9a564

[PATCH] media:vidtv: remove duplicate include in vidtv_psi

2021-03-06 Thread menglong8 . dong
From: Zhang Yunkai 'string.h' included in 'vidtv_psi.c' is duplicated. Signed-off-by: Zhang Yunkai --- drivers/media/test-drivers/vidtv/vidtv_psi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/test-drivers/vidtv/vidtv_psi.c b/drivers/media/test-drivers/vidtv/vidtv_psi.c in

[PATCH] drm/nouveau: remove duplicate include in nouveau_dmem and base

2021-03-06 Thread menglong8 . dong
From: Zhang Yunkai 'if000c.h' included in 'nouveau_dmem.c' is duplicated. 'priv.h' included in 'base.c' is duplicated. Signed-off-by: Zhang Yunkai --- drivers/gpu/drm/nouveau/nouveau_dmem.c | 1 - drivers/gpu/drm/nouveau/nvkm/engine/nvenc/base.c | 2 -- 2 files changed, 3 deletions(-

[PATCH] drm/amd/display: remove duplicate include in dcn21 and gpio

2021-03-06 Thread menglong8 . dong
From: Zhang Yunkai 'dce110_resource.h' included in 'dcn21_resource.c' is duplicated. 'hw_gpio.h' included in 'hw_factory_dce110.c' is duplicated. Signed-off-by: Zhang Yunkai --- drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c | 1 - .../gpu/drm/amd/display/dc/gpio/dce110/hw_facto

[PATCH] drm/amd/display: remove duplicate include in amdgpu_dm.c

2021-03-06 Thread menglong8 . dong
From: Zhang Yunkai 'drm/drm_hdcp.h' included in 'amdgpu_dm.c' is duplicated. It is also included in the 79th line. Signed-off-by: Zhang Yunkai --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_d

[PATCH] bus:bt1-apb: remove duplicate include in bt1-apb.c

2021-03-06 Thread menglong8 . dong
From: Zhang Yunkai 'linux/clk.h' included in 'bt1-apb.c' is duplicated. Signed-off-by: Zhang Yunkai --- drivers/bus/bt1-apb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/bus/bt1-apb.c b/drivers/bus/bt1-apb.c index b25ff941e7c7..74b1b712ef3a 100644 --- a/drivers/bus/bt1-apb.c +++

[PATCH] x86/traps: remove duplicate include in traps.c

2021-03-05 Thread menglong8 . dong
From: Zhang Yunkai 'proto.h' included in 'traps.c' is duplicated. Signed-off-by: Zhang Yunkai --- arch/x86/kernel/traps.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c index 7f5aec758f0e..cb9b675dc003 100644 --- a/arch/x

[PATCH] x86/smpboot: remove duplicate include in smpboot.c

2021-03-05 Thread menglong8 . dong
From: Zhang Yunkai 'cpu_device_id.h' and 'intel_family.h' included in 'smpboot.c' is duplicated. It is also included in the 80th line. Signed-off-by: Zhang Yunkai --- arch/x86/kernel/smpboot.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smp

[PATCH] tool/perf/bench: fix misspellings using codespell

2021-03-05 Thread menglong8 . dong
From: Xiong Zhenwu $ codespell ./tool/perf/bench tools/perf/bench/inject-buildid.c:375: tihs ==> this Fix a typo found by codespell. Signed-off-by: Xiong Zhenwu --- tools/perf/bench/inject-buildid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/bench/inject-

[PATCH] sh: remove duplicate include in tlb.h

2021-03-04 Thread menglong8 . dong
From: Zhang Yunkai 'asm-generic/tlb.h' included in 'asm/tlb.h' is duplicated. Signed-off-by: Zhang Yunkai --- arch/sh/include/asm/tlb.h | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/sh/include/asm/tlb.h b/arch/sh/include/asm/tlb.h index 360f713d009b..aeb89

[PATCH] kernel/sched: remove duplicate include in sched.h sched.h

2021-03-04 Thread menglong8 . dong
From: Xiong Zhenwu 'linux/psi.h' included in 'kernel/sched/sched.h' is duplicated. it also include in 59th line. Signed-off-by: Xiong Zhenwu --- kernel/sched/sched.h | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 10a1522b1e30..235d8381f142

[PATCH] arch:powerpc:kernel: remove duplicate include in traps.c

2021-03-03 Thread menglong8 . dong
From: Zhang Yunkai 'asm/tm.h' included in 'traps.c' is duplicated. It is also included in the 62th line. Signed-off-by: Zhang Yunkai --- arch/powerpc/kernel/traps.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c index 1583fd1c6010..

[PATCH] arch:powerpc:kernel: remove duplicate include in setup-common

2021-03-03 Thread menglong8 . dong
From: Zhang Yunkai 'asm/udbg.h' included in 'setup-common.c' is duplicated. It is also included in the 61th line. Signed-off-by: Zhang Yunkai --- arch/powerpc/kernel/setup-common.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setu

[PATCH] arch/powerpc/include: remove duplicate include in thread_info.h

2021-03-03 Thread menglong8 . dong
From: Zhang Yunkai 'asm/page.h' included in 'arch/powerpc/include/asm/thread_info.h' is duplicated.It is also included in 13th line. Signed-off-by: Zhang Yunkai --- arch/powerpc/include/asm/thread_info.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/include/asm/thread_info.h

[PATCH] arch/powerpc/include: remove duplicate include in pgtable.h

2021-03-03 Thread menglong8 . dong
From: Zhang Yunkai 'asm/tlbflush.h' included in 'arch/powerpc/include/asm/pgtable.h' is duplicated.It is also included in the 11th line. Signed-off-by: Zhang Yunkai --- arch/powerpc/include/asm/pgtable.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/powerpc/include/asm/pgtable.h b

[PATCH] arch/powerpc/include:fix misspellings in tlbflush.h

2021-03-03 Thread menglong8 . dong
From: Zhang Yunkai Some typos are found out.The information at the end of the file does not match the beginning. Signed-off-by: Zhang Yunkai --- arch/powerpc/include/asm/book3s/32/tlbflush.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/book3s/32/

[PATCH] arch/powerpc/include/asm/book3s/64/: remove duplicate include in mmu-hash.h

2021-03-03 Thread menglong8 . dong
From: Zhang Yunkai 'asm/bug.h' included in 'arch/powerpc/include/asm/book3s/64/mmu-hash.h' is duplicated.It is also included in the 12th line. Signed-off-by: Zhang Yunkai --- arch/powerpc/include/asm/book3s/64/mmu-hash.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/include/a

[PATCH] arch/parisc/kernel: remove duplicate include in ptrace

2021-03-03 Thread menglong8 . dong
From: Zhang Yunkai 'linux/compat.h' included in 'arch/parisc/kernel/ptrace.c' is duplicated. It is also included in the 24th line. Signed-off-by: Zhang Yunkai --- arch/parisc/kernel/ptrace.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/parisc/kernel/ptrace.c b/arch/parisc/kernel/ptr

[PATCH] module: remove duplicate include in arch/ia64/kernel/head.S

2021-03-03 Thread menglong8 . dong
From: Zhang Yunkai 'linux/pgtable.h' included in 'arch/ia64/kernel/head.S' is duplicated. Signed-off-by: Zhang Yunkai --- arch/ia64/kernel/head.S | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/ia64/kernel/head.S b/arch/ia64/kernel/head.S index 30f1ef760136..81b64d1adad5 100644 --- a/a

[PATCH] module: remove duplicate include in arch/csky/kernel/entry.S

2021-03-03 Thread menglong8 . dong
From: Zhang Yunkai 'asm/setup.h' included in 'arch/csky/kernel/entry.S' is duplicated. Signed-off-by: Zhang Yunkai --- arch/csky/kernel/entry.S | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/csky/kernel/entry.S b/arch/csky/kernel/entry.S index c1bd7a6b4ab6..00e3c8ebf9b8 100644 --- a/a

[PATCH] module: remove duplicate include in arch/arm/mach-sa1100/hackkit.c

2021-03-03 Thread menglong8 . dong
From: Zhang Yunkai 'linux/tty.h' included in 'arch/arm/mach-sa1100/hackkit.c' is duplicated. Signed-off-by: Zhang Yunkai --- arch/arm/mach-sa1100/hackkit.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-sa1100/hackkit.c b/arch/arm/mach-sa1100/hackkit.c index 3085f1c2e586..3fe

[PATCH] module: remove extra spaces in include/asm-generic/tlb.h

2021-03-03 Thread menglong8 . dong
From: Zhang Yunkai Some typos are found out by codespell tool: "# define" should be "#define". Signed-off-by: Zhang Yunkai --- include/asm-generic/tlb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asm-generic/tlb.h b/include/asm-generic/tlb.h index 2c68a545ffa7

[PATCH] module: remove duplicate include in ./arch/arm/include/asm/pgtable.h

2021-03-03 Thread menglong8 . dong
From: Zhang Yunkai 'asm-generic/pgtable-nopud.h' included in 'pgtable.h' is duplicated. Signed-off-by: Zhang Yunkai --- arch/arm/include/asm/pgtable.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h index c02

[PATCH v4 net-next] net: socket: use BIT() for MSG_*

2021-02-16 Thread menglong8 . dong
From: Menglong Dong The bit mask for MSG_* seems a little confused here. Replace it with BIT() to make it clear to understand. Signed-off-by: Menglong Dong --- v4: - CC netdev v3: - move changelog here v2: - use BIT() instead of BIT_MASK() --- include/linux/socket.h | 71 ++

[PATCH v3 net-next] net: socket: use BIT() for MSG_*

2021-02-07 Thread menglong8 . dong
From: Menglong Dong The bit mask for MSG_* seems a little confused here. Replace it with BIT() to make it clear to understand. Signed-off-by: Menglong Dong --- v3: - move changelog here v2: - use BIT() instead of BIT_MASK() --- include/linux/socket.h | 71 ++

[PATCH v2 net-next] net: socket: use BIT() for MSG_*

2021-02-06 Thread menglong8 . dong
From: Menglong Dong The bit mask for MSG_* seems a little confused here. Replace it with BIT() to make it clear to understand. Changes since v1: - use BIT() instead of BIT_MASK() Signed-off-by: Menglong Dong --- include/linux/socket.h | 71 ++ 1 file ch

[PATCH v2 net-next] net: socket: use BIT() for MSG_*

2021-02-06 Thread menglong8 . dong
From: Menglong Dong The bit mask for MSG_* seems a little confused here. Replace it with BIT() to make it clear to understand. Changes since v1: - use BIT() instead of BIT_MASK() Signed-off-by: Menglong Dong --- include/linux/socket.h | 71 ++ 1 file ch

[PATCH net-next] net: socket: use BIT_MASK for MSG_*

2021-02-05 Thread menglong8 . dong
From: Menglong Dong The bit mask for MSG_* seems a little confused here. Replace it with BIT_MASK to make it clear to understand. Signed-off-by: Menglong Dong --- include/linux/socket.h | 71 ++ 1 file changed, 37 insertions(+), 34 deletions(-) diff --g

[PATCH] jffs2: check the validity of dstlen in jffs2_zlib_compress()

2021-01-28 Thread menglong8 . dong
From: Yang Yang KASAN reports a BUG when download file in jffs2 filesystem.It is because when dstlen == 1, cpage_out will write array out of bounds. Actually, data will not be compressed in jffs2_zlib_compress() if data's length less than 4. [ 393.799778] BUG: KASAN: slab-out-of-bounds in jffs

[PATCH net-next] net: packet: make pkt_sk() inline

2021-01-27 Thread menglong8 . dong
From: Menglong Dong It's better make 'pkt_sk()' inline here, as non-inline function shouldn't occur in headers. Besides, this function is simple enough to be inline. Signed-off-by: Menglong Dong --- net/packet/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/p

[PATCH v2] drm/omap: dsi: fix unreachable code in dsi_vc_send_short()

2021-01-26 Thread menglong8 . dong
From: Menglong Dong The 'r' in dsi_vc_send_short() is of type 'unsigned int', so the 'r < 0' can't be true. Fix this by introducing a 'err' of type 'int' insteaded. Fixes: 1ed6253856cb ("drm/omap: dsi: switch dsi_vc_send_long/short to mipi_dsi_msg") Signed-off-by: Menglong Dong Reviewed-by:

[PATCH v2] audit: Make audit_filter_syscall() return void

2021-01-26 Thread menglong8 . dong
From: Yang Yang No invoker uses the return value of audit_filter_syscall(). So make it return void, and amend the comment of audit_filter_syscall(). Changes since v1: - amend the comment of audit_filter_syscall(). Signed-off-by: Yang Yang Reviewed-by: Richard Guy Briggs --- kernel/auditsc.c

[PATCH bpf-next] bpf: change 'BPF_ADD' to 'BPF_AND' in print_bpf_insn()

2021-01-26 Thread menglong8 . dong
From: Menglong Dong This 'BPF_ADD' is duplicated, and I belive it should be 'BPF_AND'. Fixes: 981f94c3e921 ("bpf: Add bitwise atomic instructions") Signed-off-by: Menglong Dong --- kernel/bpf/disasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/bpf/disasm.c b/ker

[PATCH] drm/omap: dsi: fix unreachable code in dsi_vc_send_short()

2021-01-26 Thread menglong8 . dong
From: Menglong Dong The 'r' in dsi_vc_send_short() is of type 'unsigned int', so the 'r < 0' can't be true. Fix this by introducing a 'err' insteaded. Fixes: 1ed6253856cb ("drm/omap: dsi: switch dsi_vc_send_long/short to mipi_dsi_msg") Signed-off-by: Menglong Dong --- drivers/gpu/drm/omapdrm

[PATCH] audit: Make audit_filter_syscall() return void

2021-01-26 Thread menglong8 . dong
From: Yang Yang No invoker users the return value of audit_filter_syscall(). So make it return void. Signed-off-by: Yang Yang --- kernel/auditsc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/auditsc.c b/kernel/auditsc.c index ce8c9e2279ba..c8e16b9c0f21 10

[PATCH net-next 0/3] Namespace-ify some sysctl in net/core

2021-01-18 Thread menglong8 . dong
From: Menglong Dong For now, most sysctl in 'net/core' are globally unified, such as sysctl_wmem_default, sysctl_rmem_default, sysctl_wmem_default, sysctl_rmem_default, etc. It's not convenient in some case. For example, when we use docker and try to control the default udp socket receive buffer

[PATCH net-next 1/3] net: core: init every ctl_table in netns_core_table

2021-01-18 Thread menglong8 . dong
From: Menglong Dong For now, there is only one element in netns_core_table, and it is inited directly in sysctl_core_net_init. To make it more flexible, we can init every element at once, just like what ipv4_sysctl_init_net() did. Signed-off-by: Menglong Dong --- net/core/sysctl_net_core.c | 1

[PATCH net-next 3/3] net: core: Namespace-ify sysctl_rmem_max and sysctl_wmem_max

2021-01-18 Thread menglong8 . dong
From: Menglong Dong For now, sysctl_wmem_max and sysctl_rmem_max are globally unified. It's not convenient in some case. For example, when we use docker and try to control the default udp socket receive buffer for each container. For that reason, make sysctl_wmem_max and sysctl_rmem_max per-name

[PATCH net-next 2/3] net: core: Namespace-ify sysctl_wmem_default and sysctl_rmem_default

2021-01-18 Thread menglong8 . dong
From: Menglong Dong For now, sysctl_wmem_default and sysctl_rmem_default are globally unified. It's not convenient in some case. For example, when we use docker and try to control the default udp socket receive buffer for each container. For that reason, make sysctl_wmem_default and sysctl_rmem_

[PATCH net-next] net: tun: fix misspellings using codespell tool

2021-01-18 Thread menglong8 . dong
From: Menglong Dong Some typos are found out by codespell tool: $ codespell -w -i 3 ./drivers/net/tun.c aovid ==> avoid Fix typos found by codespell. Signed-off-by: Menglong Dong --- drivers/net/tun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/tun.c b/dr

[PATCH] workqueue: fix annotation for WQ_SYSFS

2021-01-18 Thread menglong8 . dong
From: Menglong Dong 'wq_sysfs_register()' in annotation for 'WQ_SYSFS' is unavailable, change it to 'workqueue_sysfs_register()'. Signed-off-by: Menglong Dong --- include/linux/workqueue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/workqueue.h b/include/l

[PATCH net-next] net: core: Namespace-ify sysctl_rmem_max and sysctl_wmem_max

2021-01-17 Thread menglong8 . dong
From: Menglong Dong For now, sysctl_wmem_max and sysctl_rmem_max are globally unified. It's not convenient in some case. For example, when we use docker and try to control the default udp socket receive buffer for each container. For that reason, make sysctl_wmem_max and sysctl_rmem_max per-name

[PATCH net-next] net: core: Namespace-ify sysctl_wmem_default and sysctl_rmem_default

2021-01-17 Thread menglong8 . dong
From: Menglong Dong For now, sysctl_wmem_default and sysctl_rmem_default are globally unified. It's not convenient in some case. For example, when we use docker and try to control the default udp socket receive buffer for each container. For that reason, make sysctl_wmem_default and sysctl_rmem_

[PATCH net-next] net: core: init every ctl_table in netns_core_table

2021-01-17 Thread menglong8 . dong
From: Menglong Dong For now, there is only one element in netns_core_table, and it is inited directly in sysctl_core_net_init. To make it more flexible, we can init every element at once, just like what ipv4_sysctl_init_net() did. Signed-off-by: Menglong Dong --- net/core/sysctl_net_core.c | 1

[PATCH v4 net-next] net: bridge: check vlan with eth_type_vlan() method

2021-01-17 Thread menglong8 . dong
From: Menglong Dong Replace some checks for ETH_P_8021Q and ETH_P_8021AD with eth_type_vlan(). Signed-off-by: Menglong Dong --- v4: - remove unnecessary brackets. v3: - fix compile warning in br_vlan_set_proto() by casting 'val' to be16. v2: - use eth_type_vlan() in br_validate() and __br_v

[PATCH v3 net-next] net: bridge: check vlan with eth_type_vlan() method

2021-01-14 Thread menglong8 . dong
From: Menglong Dong Replace some checks for ETH_P_8021Q and ETH_P_8021AD with eth_type_vlan(). Signed-off-by: Menglong Dong --- v3: - fix compile warning in br_vlan_set_proto() by casting 'val' to be16. v2: - use eth_type_vlan() in br_validate() and __br_vlan_set_proto() too. --- net/brid

[PATCH v2] pata_rb532_cf: remove redundant error print in probe() method

2021-01-14 Thread menglong8 . dong
From: Menglong Dong Coccinelle reports a redundant error print in rb532_pata_driver_probe. As 'platform_get_irq' already prints the error message, error print here is redundant and can be removed. Signed-off-by: Menglong Dong --- v2: - change patch summary. --- drivers/ata/pata_rb532_cf.c | 4

[PATCH v2 net-next] net: tap: check vlan with eth_type_vlan() method

2021-01-14 Thread menglong8 . dong
From: Menglong Dong Replace some checks for ETH_P_8021Q and ETH_P_8021AD in drivers/net/tap.c with eth_type_vlan. Signed-off-by: Menglong Dong --- v2: - use eth_type_vlan() in tap_get_user_xdp() too. --- drivers/net/tap.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

[PATCH v2 net-next] net: bridge: check vlan with eth_type_vlan() method

2021-01-14 Thread menglong8 . dong
From: Menglong Dong Replace some checks for ETH_P_8021Q and ETH_P_8021AD with eth_type_vlan(). Signed-off-by: Menglong Dong --- v2: - use eth_type_vlan() in br_validate() and __br_vlan_set_proto() too. --- net/bridge/br_forward.c | 3 +-- net/bridge/br_netlink.c | 11 +++ net/bridge

[PATCH net-next] net: bridge: use eth_type_vlan in br_dev_queue_push_xmit

2021-01-13 Thread menglong8 . dong
From: Menglong Dong Replace the check for ETH_P_8021Q and ETH_P_8021AD in br_dev_queue_push_xmit with eth_type_vlan. Signed-off-by: Menglong Dong --- net/bridge/br_forward.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/bridge/br_forward.c b/net/bridge/br_forward.c

[PATCH net-next] net: core: use eth_type_vlan in tap_get_user_xdp

2021-01-13 Thread menglong8 . dong
From: Menglong Dong Replace the check for ETH_P_8021Q and ETH_P_8021AD in tap_get_user_xdp with eth_type_vlan. Signed-off-by: Menglong Dong --- drivers/net/tap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/tap.c b/drivers/net/tap.c index 3c652c8ac5ba..e007

[PATCH net-next] net: tap: use eth_type_vlan in tap_get_user

2021-01-13 Thread menglong8 . dong
From: Menglong Dong Replace the check for ETH_P_8021Q and ETH_P_8021AD in tap_get_user with eth_type_vlan. Signed-off-by: Menglong Dong --- drivers/net/tap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/tap.c b/drivers/net/tap.c index 3c652c8ac5ba..cf9197fe

[PATCH v2] edac: remove redundant error print in xgene_edac_probe

2021-01-12 Thread menglong8 . dong
From: Menglong Dong Coccinelle reports a redundant error print in xgene_edac_probe. As 'platform_get_irq' already prints the error message, error print here is redundant. Fix it by using 'platform_get_irq_optional' in place of 'platform_get_irq', as Robert suggested. Signed-off-by: Menglong Don

[PATCH] fs: cifs: remove unneeded variable in smb3_fs_context_dup

2021-01-12 Thread menglong8 . dong
From: Menglong Dong 'rc' in smb3_fs_context_dup is not used and can be removed. Signed-off-by: Menglong Dong --- fs/cifs/fs_context.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/cifs/fs_context.c b/fs/cifs/fs_context.c index 0afccbbed2e6..076bcadc756a 100644 --- a

[PATCH] i2c: remove redundant error print in stm32f7_i2c_probe

2021-01-12 Thread menglong8 . dong
From: Menglong Dong Coccinelle reports a redundant error print in stm32f7_i2c_probe. As 'platform_get_irq' already prints the error message, error print here is redundant and can be removed. Signed-off-by: Menglong Dong --- drivers/i2c/busses/i2c-stm32f7.c | 6 +- 1 file changed, 1 inserti

[PATCH] edac: remove redundant error print in xgene_edac_probe

2021-01-12 Thread menglong8 . dong
From: Menglong Dong Coccinelle reports a redundant error print in xgene_edac_probe. As 'platform_get_irq' already prints the error message, error print here is redundant and can be removed. Signed-off-by: Menglong Dong --- drivers/edac/xgene_edac.c | 1 - 1 file changed, 1 deletion(-) diff --

[PATCH v2] csky: kprobe: fix unreachable code in simulate_blz32

2021-01-11 Thread menglong8 . dong
From: Menglong Dong The type of 'val' is 'unsigned long' in simulate_blz32, so 'val < 0' can't be true. Cast 'val' to 'long' here to determine branch token or not, as Guo Ren suggested. Fixes: 33e53ae1ce41 ("csky: Add kprobes supported") Signed-off-by: Menglong Dong --- v2: - Cast 'val' to 'lo

[PATCH] ata: remove redundant error print in rb532_pata_driver_probe

2021-01-11 Thread menglong8 . dong
From: Menglong Dong Coccinelle reports a redundant error print in rb532_pata_driver_probe. As 'platform_get_irq' already prints the error message, error print here is redundant and can be removed. Signed-off-by: Menglong Dong --- drivers/ata/pata_rb532_cf.c | 4 +--- 1 file changed, 1 insertio

[PATCH] power: supply: remove duplicated argument in power_supply_hwmon_info

2021-01-11 Thread menglong8 . dong
From: Menglong Dong 'HWMON_T_INPUT' and 'HWMON_T_MIN_ALARM' in power_supply_hwmon_info are duplicated and can be removed. Signed-off-by: Menglong Dong --- drivers/power/supply/power_supply_hwmon.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/power/supply/power_supply_hwmon.c b

[PATCH] csky: kprobe: fix unreachable code in simulate_blz32

2021-01-11 Thread menglong8 . dong
From: Menglong Dong The type of 'val' is 'unsigned long' in simulate_blz32, so 'val < 0' can't be true. When 'csky_insn_reg_get_val' fails, 'false' will be returned. We can directly use its return value here. Fixes: 33e53ae1ce41 ("csky: Add kprobes supported") Signed-off-by: Menglong Dong ---

[PATCH v2] MIPS: OCTEON: fix unreachable code in octeon_irq_init_ciu

2021-01-11 Thread menglong8 . dong
From: Menglong Dong The type of 'r' in octeon_irq_init_ciu is 'unsigned int', so 'r < 0' can't be true. Fix this by change the type of 'r' and 'i' from 'unsigned int' to 'int'. As 'i' won't be negative, this change works. Fixes: 99fbc70f8547 ("MIPS: Octeon: irq: Alloc desc before configuring IR

[PATCH] MIPS: OCTEON: fix unreachable code in octeon_irq_init_ciu

2021-01-11 Thread menglong8 . dong
From: Menglong Dong The type of 'r' in octeon_irq_init_ciu is 'unsigned int', so 'r < 0' can't be true. Fix this by change the type of 'r' and 'i' from 'unsigned int' to 'int'. As 'i' won't be negative, this change works. Fixes: 64b139f97c01("MIPS: OCTEON: irq: add CIB and other fixes") Signed-

[PATCH net-next] net: core: use eth_type_vlan in __netif_receive_skb_core

2021-01-11 Thread menglong8 . dong
From: Menglong Dong Replace the check for ETH_P_8021Q and ETH_P_8021AD in __netif_receive_skb_core with eth_type_vlan. Signed-off-by: Menglong Dong --- net/core/dev.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/net/core/dev.c b/net/core/dev.c index e4d77c8abe76..2

[PATCH net-next] net/bridge: fix misspellings using codespell tool

2021-01-07 Thread menglong8 . dong
From: Menglong Dong Some typos are found out by codespell tool: $ codespell ./net/bridge/ ./net/bridge/br_stp.c:604: permanant ==> permanent ./net/bridge/br_stp.c:605: persistance ==> persistence ./net/bridge/br.c:125: underlaying ==> underlying ./net/bridge/br_input.c:43: modue ==> mode ./n

[PATCH] selftests/bpf: remove duplicate include in test_lsm

2021-01-05 Thread menglong8 . dong
From: Menglong Dong 'unistd.h' included in 'selftests/bpf/prog_tests/test_lsm.c' is duplicated. Signed-off-by: Menglong Dong --- tools/testing/selftests/bpf/prog_tests/test_lsm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/bpf/prog_tests/test_lsm.c b/tools/testi

[PATCH] coredump: fix core_pattern parse error

2020-11-19 Thread menglong8 . dong
From: Menglong Dong 'format_corename()' will splite 'core_pattern' on spaces when it is in pipe mode, and take helper_argv[0] as the path to usermode executable. It works fine in most cases. However, if there is a space between '|' and '/file/path', such as '| /usr/lib/systemd/systemd-coredump %

  1   2   >