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 ++
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
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-
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
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
---
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
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
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
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 --
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
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
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
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_
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
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
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
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
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
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
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
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
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
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
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
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
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
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-
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
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
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-
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
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
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
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
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
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
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
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/
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
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
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
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..
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
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:/
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,
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
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:/
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,
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.
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(-)
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(-)
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
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
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
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
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
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 %
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
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
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
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
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
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
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 -
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
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
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
+++
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
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
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(-
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
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
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
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/
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
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.
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
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
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
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(+
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
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 ++
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
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
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
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 ++
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
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
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
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:
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
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
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
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_
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
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
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
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
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
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
1 - 100 of 113 matches
Mail list logo