[PATCH net-next] cxgb4: remove redundant NULL check

2021-01-26 Thread Yang Li
/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c:157:2-7: WARNING: NULL check before some freeing functions is not needed. ./drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c:525:3-9: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Yang Li

[PATCH 2/4] cxgb4: remove redundant NULL check

2021-01-25 Thread Yang Li
Fix below warnings reported by coccicheck: ./drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c:3558:2-8: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c | 3 +-- 1 file changed, 1

[PATCH 1/4] cxgb4: remove redundant NULL check

2021-01-25 Thread Yang Li
Fix below warnings reported by coccicheck: ./drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c:327:3-9: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c | 3 +-- 1 file changed, 1

[PATCH] scsi: fnic: remove redundant NULL check

2021-01-22 Thread Yang Li
Fix below warnings reported by coccicheck: ./drivers/scsi/fnic/fnic_debugfs.c:91:2-7: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/scsi/fnic/fnic_debugfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions

[PATCH] scsi: megaraid_sas: remove redundant NULL check

2021-01-22 Thread Yang Li
Fix below warnings reported by coccicheck: ./drivers/scsi/megaraid/megaraid_sas_fusion.c:3924:3-8: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/scsi/megaraid/megaraid_sas_fusion.c | 3 +-- 1 file changed, 1

[PATCH 1/2] scsi: qla2xxx: remove redundant NULL check

2021-01-22 Thread Yang Li
. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/scsi/qla2xxx/qla_init.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index dcc0f0d8..edd5dd1 100644 --- a/drivers/scsi/qla2xxx/qla_init.c

[PATCH 2/2] scsi: qla4xxx: remove redundant NULL check

2021-01-22 Thread Yang Li
/qla4xxx/ql4_os.c:7840:2-7: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/scsi/qla4xxx/ql4_os.c | 27 +-- 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/drivers/scsi/qla4xxx/ql4_os.c

[PATCH 1/2] scsi: qla2xxx: remove redundant NULL check

2021-01-22 Thread Yang Li
. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/scsi/qla2xxx/qla_init.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index dcc0f0d8..edd5dd1 100644 --- a/drivers/scsi/qla2xxx/qla_init.c

[PATCH 2/2] scsi: qla4xxx: remove redundant NULL check

2021-01-22 Thread Yang Li
/qla4xxx/ql4_os.c:7840:2-7: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/scsi/qla4xxx/ql4_os.c | 27 +-- 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/drivers/scsi/qla4xxx/ql4_os.c

[PATCH] scsi: bfa: remove redundant NULL check

2021-01-22 Thread Yang Li
Fix below warnings reported by coccicheck: ./drivers/scsi/bfa/bfad_debugfs.c:375:2-7: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/scsi/bfa/bfad_debugfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions

[PATCH] rsxx: remove redundant NULL check

2021-01-21 Thread Yang Li
Fix below warnings reported by coccicheck: ./drivers/block/rsxx/dma.c:948:3-8: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/block/rsxx/dma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH 3/3] media: atomisp: remove redundant NULL check

2021-01-21 Thread Yang Li
. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/staging/media/atomisp/pci/atomisp_cmd.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/atomisp_cmd.c b/drivers/staging/media/atomisp/pci/atomisp_cmd.c index 592ea99..72a6cac

[PATCH 1/3] media: atomisp: remove redundant NULL check

2021-01-21 Thread Yang Li
Fix below warnings reported by coccicheck: ./drivers/staging/media/atomisp/pci/runtime/isp_param/src/isp_param.c:159:4-10: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/staging/media/atomisp/pci/runtime/isp_param

[PATCH 2/3] media: atomisp: remove redundant NULL check

2021-01-21 Thread Yang Li
Fix below warnings reported by coccicheck: ./drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.c:390:2-8: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Yang Li --- .../media/atomisp/pci/isp/kernels/sdis

[PATCH] media: atomisp: remove redundant NULL check

2021-01-21 Thread Yang Li
. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/staging/media/atomisp/pci/sh_css_params.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/sh_css_params.c b/drivers/staging/media/atomisp/pci/sh_css_params.c index 24fc497

[PATCH] btrfs: remove redundant NULL check

2021-01-21 Thread Yang Li
Fix below warnings reported by coccicheck: ./fs/btrfs/raid56.c:237:2-8: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Yang Li --- fs/btrfs/raid56.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/btrfs/raid56.c

[PATCH] vmalloc: remove redundant NULL check

2021-01-21 Thread Yang Li
Fix below warnings reported by coccicheck: ./fs/proc/vmcore.c:1503:2-7: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Yang Li --- fs/proc/vmcore.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/fs/proc

[PATCH] mm/memcontrol: remove redundant NULL check

2021-01-21 Thread Yang Li
Fix below warnings reported by coccicheck: ./mm/memcontrol.c:451:3-9: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Yang Li --- mm/memcontrol.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/memcontrol.c b/mm

[PATCH] mm/swap_slots.c: remove redundant NULL check

2021-01-20 Thread Yang Li
Fix below warnings reported by coccicheck: ./mm/swap_slots.c:197:3-9: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Yang Li --- mm/swap_slots.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/swap_slots.c b/mm

[PATCH v2] host: omap_hsmmc: style: Simplify bool comparison and conversion

2021-01-15 Thread Yang Li
Fix the following coccicheck warning: ./drivers/mmc/host/omap_hsmmc.c:297:6-25: WARNING: Comparison of 0/1 to bool variable According to the context, vqmmc_enabled is more suitable for bool type. Reported-by: Abaci Robot Signed-off-by: Yang Li --- Changes in v2: -clean up all use

[PATCH] drm/amd/display: Simplify bool comparison

2021-01-13 Thread Yang Li
Fix the following coccicheck warning: ./drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c:3141:30-39: WARNING: Comparison to bool Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c | 2 +- 1 file changed, 1 insertion

[PATCH] drm/amd/display: Simplify bool comparison

2021-01-13 Thread Yang Li
Fix the following coccicheck warning: ./drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c:5121:14-38: WARNING: Comparison to bool Reported-by: Abaci Robot Signed-off-by: Yang Li --- .../amd/display/dc/dml/dcn21/display_mode_vba_21.c | 44 +++--- 1 file changed, 22

[PATCH] drm/amd/display: Simplify bool comparison

2021-01-13 Thread Yang Li
Fix the following coccicheck warning: ./drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp_cm.c:580:23-31: WARNING: Comparison to bool Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp_cm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] drm/amd/display: Simplify bool comparison

2021-01-13 Thread Yang Li
Fix the following coccicheck warning: ./drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c:1228:9-20: WARNING: Comparison to bool Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c | 4 ++-- 1 file changed, 2

[PATCH v2] pinctrl: sprd: Simplify bool comparison

2021-01-12 Thread Yang Li
Fix the following coccicheck warning: ./drivers/pinctrl/sprd/pinctrl-sprd.c:690:8-23: WARNING: Comparison to bool Reported-by: Abaci Robot Signed-off-by: Yang Li --- Changes in v2: - make "pinctrl: sprd:" as subject prefix drivers/pinctrl/sprd/pinctrl-sprd.c | 2 +- 1 file

[PATCH v2] rtw88: Simplify bool comparison

2021-01-12 Thread YANG LI
Fix the following coccicheck warning: ./drivers/net/wireless/realtek/rtw88/debug.c:800:17-23: WARNING: Comparison of 0/1 to bool variable Reported-by: Abaci Robot Signed-off-by: YANG LI --- Changes in v2: make "rtw88:" as subject prefix drivers/net/wireless/realtek/rtw88/debug.c

[PATCH] wireless: realtek: Simplify bool comparison

2021-01-12 Thread YANG LI
Fix the following coccicheck warning: ./drivers/net/wireless/realtek/rtlwifi/ps.c:803:7-21: WARNING: Comparison to bool Reported-by: Abaci Robot Signed-off-by: YANG LI --- drivers/net/wireless/realtek/rtlwifi/ps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH] rtlwifi: rtl8821ae: style: Simplify bool comparison

2021-01-12 Thread YANG LI
Fix the following coccicheck warning: ./drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c:3853:7-17: WARNING: Comparison of 0/1 to bool variable Reported-by: Abaci Robot Signed-off-by: YANG LI --- drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH] pinctrl: sprd: style: Simplify bool comparison

2021-01-12 Thread YANG LI
Fix the following coccicheck warning: ./drivers/pinctrl/sprd/pinctrl-sprd.c:690:8-23: WARNING: Comparison to bool Reported-by: Abaci Robot Signed-off-by: YANG LI --- drivers/pinctrl/sprd/pinctrl-sprd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/sprd

[PATCH] scsi: lpfc: style: Simplify bool comparison

2021-01-12 Thread YANG LI
Fix the following coccicheck warning: ./drivers/scsi/lpfc/lpfc_bsg.c:5392:5-29: WARNING: Comparison to bool Reported-by: Abaci Robot Signed-off-by: YANG LI --- drivers/scsi/lpfc/lpfc_bsg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_bsg.c b

[PATCH] spi: spi-bcm-qspi: style: Simplify bool comparison

2021-01-11 Thread YANG LI
Fix the following coccicheck warning: ./drivers/spi/spi-bcm-qspi.c:884:5-34: WARNING: Comparison to bool Signed-off-by: YANG LI Reported-by: Abaci Robot --- drivers/spi/spi-bcm-qspi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-bcm-qspi.c b/drivers

[PATCH] hwmon: abx500: style: Simplify bool comparison

2021-01-11 Thread YANG LI
Fix the following coccicheck warning: ./drivers/hwmon/abx500.c:84:8-26: WARNING: Comparison to bool Signed-off-by: YANG LI Reported-by: Abaci Robot --- drivers/hwmon/abx500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/abx500.c b/drivers/hwmon/abx500.c

[PATCH] host: omap_hsmmc: style: Simplify bool comparison

2021-01-11 Thread YANG LI
Fix the following coccicheck warning: ./drivers/mmc/host/omap_hsmmc.c:297:6-25: WARNING: Comparison of 0/1 to bool variable Signed-off-by: YANG LI Reported-by: Abaci Robot --- drivers/mmc/host/omap_hsmmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host

[PATCH] ata: style: Simplify bool comparison

2021-01-11 Thread YANG LI
Fix the following coccicheck warning: ./include/linux/ata.h:621:5-25: WARNING: Comparison of 0/1 to bool variable Signed-off-by: YANG LI Reported-by: Abaci Robot --- include/linux/ata.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/ata.h b/include/linux/ata.h

[PATCH] arm64: mte: style: Simplify bool comparison

2021-01-11 Thread YANG LI
Fix the following coccicheck warning: ./tools/testing/selftests/arm64/mte/check_buffer_fill.c:84:12-35: WARNING: Comparison to bool Signed-off-by: YANG LI Reported-by: Abaci Robot --- tools/testing/selftests/arm64/mte/check_buffer_fill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH] scsi: qedf: style: Simplify bool comparison

2021-01-11 Thread YANG LI
Fix the following coccicheck warning: ./drivers/scsi/qedf/qedf_main.c:3716:5-31: WARNING: Comparison to bool Signed-off-by: YANG LI Reported-by: Abaci Robot --- drivers/scsi/qedf/qedf_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qedf/qedf_main.c b

[PATCH] spi: spi-bcm-qspi: style: Simplify bool comparison

2021-01-11 Thread YANG LI
Fix the following coccicheck warning: ./drivers/spi/spi-bcm-qspi.c:884:5-34: WARNING: Comparison to bool Signed-off-by: YANG LI Reported-by: Abaci Robot --- drivers/spi/spi-bcm-qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-bcm-qspi.c b/drivers/spi

[PATCH] hci: llc_shdlc: style: Simplify bool comparison

2021-01-11 Thread YANG LI
Fix the following coccicheck warning: ./net/nfc/hci/llc_shdlc.c:239:5-21: WARNING: Comparison to bool Signed-off-by: YANG LI Reported-by: Abaci Robot --- net/nfc/hci/llc_shdlc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/nfc/hci/llc_shdlc.c b/net/nfc/hci/llc_shdlc.c

[PATCH] rtw88: debug: style: Simplify bool comparison

2021-01-11 Thread YANG LI
Fix the following coccicheck warning: ./drivers/net/wireless/realtek/rtw88/debug.c:800:17-23: WARNING: Comparison of 0/1 to bool variable Signed-off-by: YANG LI Reported-by: Abaci Robot --- drivers/net/wireless/realtek/rtw88/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] cifs: connect: style: Simplify bool comparison

2021-01-11 Thread YANG LI
Fix the following coccicheck warning: ./fs/cifs/connect.c:3740:6-21: WARNING: Comparison of 0/1 to bool variable Signed-off-by: YANG LI Reported-by: Abaci Robot --- fs/cifs/connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index

[PATCH] kernel: cpu: style: Simplify bool comparison

2021-01-11 Thread YANG LI
Fix the following coccicheck warning: ./kernel/cpu.c:1824:5-23: WARNING: Comparison to bool Signed-off-by: YANG LI Reported-by: Abaci Robot --- kernel/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index 4e11e91..ad72a57 100644 --- a/kernel

[PATCH] scsi: mpt3sas: style: Simplify bool comparison

2021-01-11 Thread YANG LI
Fix the following coccicheck warning: ./drivers/scsi/mpt3sas/mpt3sas_base.c:2424:5-20: WARNING: Comparison of 0/1 to bool variable Signed-off-by: YANG LI Reported-by: Abaci Robot --- drivers/scsi/mpt3sas/mpt3sas_base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH] thinkpad_acpi: fix: use scnprintf instead of snprintf.

2021-01-05 Thread YANG LI
and an information leak. This error was found with the help of coccicheck. Signed-off-by: YANG LI Reported-by: Abaci --- drivers/platform/x86/thinkpad_acpi.c | 62 ++-- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/drivers/platform/x86/thinkpad_acpi.c b

[PATCH] ibmvnic: fix: NULL pointer dereference.

2020-12-29 Thread YANG LI
expression is true, scrq must be a null pointer and cannot dereference. Signed-off-by: YANG LI Reported-by: Abaci --- drivers/net/ethernet/ibm/ibmvnic.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmv

[PATCH] isci: style: remove the unneeded variable: "status".

2020-12-29 Thread YANG LI
The variable 'status' is being initialized with SCI_SUCCESS and never update later with a new value. The initialization is redundant and can be removed. Signed-off-by: YANG LI Reported-by: Abaci --- drivers/scsi/isci/request.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff

[PATCH] fs: fix: second lock in function d_prune_aliases().

2020-12-29 Thread YANG LI
Goto statement jumping will cause lock to be executed again without executing unlock, placing the lock statement in front of goto label to fix this problem. Signed-off-by: YANG LI Reported-by: Abaci --- fs/dcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/dcache.c

[PATCH] mm: fix: Uninitialized variable ret.

2020-12-29 Thread YANG LI
The ret is being used but it isn't being initialized, need to assign a value to it, like 0. Signed-off-by: YANG LI Reported-by: Abaci --- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 605f671..15ba17d 100644 --- a/mm

[PATCH] 9p: fix: Uninitialized variable p.

2020-12-29 Thread YANG LI
The pointer p is being used but it isn't being initialized, need to assign a NULL to it. Signed-off-by: YANG LI Reported-by: Abaci --- net/9p/trans_virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/9p/trans_virtio.c b/net/9p/trans_virtio.c index 93f2f86..d4d635f

[PATCH] liquidio: fix: warning: %u in format string (no. 3) requires 'unsigned int' but the argument type is 'signed int'.

2020-12-29 Thread YANG LI
For safety, modify '%u' to '%d' to keep the type consistent. Signed-off-by: YANG LI Reported-by: Abaci --- drivers/net/ethernet/cavium/liquidio/lio_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/cavium/liquidio/lio_core.c b/drivers/net

[PATCH] xen: fix: use WARN_ON instead of if condition followed by BUG.

2020-12-29 Thread YANG LI
Use WARN_ON instead of if condition followed by BUG in gnttab_batch_map() and gnttab_batch_copy(). This issue was detected with the help of coccicheck. Signed-off-by: YANG LI Reported-by: Abaci --- drivers/xen/grant-table.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

[PATCH] cifs: style: replace one-element array with flexible-array

2020-12-29 Thread YANG LI
ed[2]. [1] https://en.wikipedia.org/wiki/Flexible_array_member [2] https://www.kernel.org/doc/html/v5.9/process/ deprecated.html#zero-length-and-one-element-arrays Signed-off-by: YANG LI Reported-by: Abaci --- fs/cifs/smb2pdu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] mlx4: style: replace zero-length array with flexible-array member.

2020-12-29 Thread YANG LI
ed[2]. [1] https://en.wikipedia.org/wiki/Flexible_array_member [2] https://www.kernel.org/doc/html/v5.9/process/ deprecated.html#zero-length-and-one-element-arrays Signed-off-by: YANG LI Reported-by: Abaci --- drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | 2 +- 1 file changed, 1 insertion(+),

[PATCH] io_uring: style: redundant NULL check.

2020-12-29 Thread YANG LI
If the pointer in kfree is empty, the function does nothing, so remove the redundant NULL check. Signed-off-by: YANG LI Reported-by: Abaci --- fs/io_uring.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/fs/io_uring.c b/fs/io_uring.c index 7e35283..105e188

[PATCH] liquidio: style: Identical condition and return expression 'retval', return value is always 0.

2020-12-29 Thread YANG LI
-by: YANG LI Reported-by: Abaci --- drivers/net/ethernet/cavium/liquidio/lio_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cavium/liquidio/lio_core.c b/drivers/net/ethernet/cavium/liquidio/lio_core.c index 37d0641..cff18a0 100644 --- a/drivers/net

[PATCH] liquidio: style: Identical condition and return expression 'retval', return value is always 0.

2020-12-29 Thread YANG LI
-by: YANG LI Reported-by: Abaci --- drivers/net/ethernet/cavium/liquidio/lio_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cavium/liquidio/lio_core.c b/drivers/net/ethernet/cavium/liquidio/lio_core.c index 37d0641..6e2426f 100644 --- a/drivers/net

[PATCH] bpf: fix: symbol 'btf_vmlinux' was not declared.

2020-12-24 Thread YANG LI
Symbol 'btf_vmlinux' was not declared in the header file and does not add extern, so no other file uses it. It's better to add static to it. Signed-off-by: YANG LI Reported-by: Abaci --- kernel/bpf/verifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/bpf

[PATCH] bpf: fix: address of local auto-variable assigned to a function parameter.

2020-12-23 Thread YANG LI
off-by: YANG LI Reported-by: Abaci --- kernel/bpf/devmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/bpf/devmap.c b/kernel/bpf/devmap.c index f6e9c68..af6f004 100644 --- a/kernel/bpf/devmap.c +++ b/kernel/bpf/devmap.c @@ -454,7 +454,7 @@ static struct xdp_b

[PATCH] kernel/cpu: fix: use scnprintf or sprintf.

2020-12-22 Thread YANG LI
and an information leak. Signed-off-by: YANG LI Reported-by: Abaci --- kernel/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index 4e11e91..c123741 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -2345,7 +2345,7 @@ static ssize_t show_cpuhp_states

[PATCH] md/raid10: fix: incompatible types in comparison expression (different address spaces).

2020-12-22 Thread YANG LI
ULL || test_bit(Faulty, >flags) || r10_bio->devs[slot].addr + sectors > rdev->recovery_offset) rdev = rcu_dereference(conf->mirrors[disk].rdev); Annotating the struct md_rdev *rdev and *replacement in drivers/md/raid10.h with __rcu fixes the sparse error. Signed-off-by: YANG LI

Re: [PATCH V2 1/2] usb: dwc3: Add node to update cache type setting

2019-09-23 Thread Yang Li
On Thu, Jul 25, 2019 at 4:56 PM Rob Herring wrote: > > On Wed, Jul 24, 2019 at 8:29 PM Ran Wang wrote: > > > > Hi Rob, > > > > On Thursday, July 25, 2019 04:42 Rob Herring wrote: > > > > > > On Fri, Jul 12, 2019 at 02:42:05PM +0800, Ran Wang wrote: > > > > Some Layerscape paltforms (such as

Re: [PATCH] i2c: layerscape: use PIO when fail to request dma channel

2019-05-24 Thread Yang Li
On Thu, May 23, 2019 at 10:08 PM Qiang Zhao wrote: > > When fail to request DMA TX/RX channel, use PIO instead for layerscape. I know that there is a problem that the i2c will fail to probe when edma driver is not configured. But this shouldn't be a Layerscape specific issue. We don't have

Re: [PATCH] arm: kernel: utilize hrtimer based broadcast

2019-04-02 Thread Yang Li
On Tue, Jan 5, 2016 at 3:46 AM Thomas Gleixner wrote: > > On Sat, 2 Jan 2016, Russell King - ARM Linux wrote: > > On Tue, Dec 29, 2015 at 02:54:10PM +0100, Thomas Gleixner wrote: > > > I have no real opinion about that patch. It does no harm to > > > unconditionally > > > setup the hrtimer based

Re: [PATCH v2 2/2] usb: dwc3: Add workaround for host mode VBUS glitch when boot

2019-02-25 Thread Yang Li
On Tue, Feb 19, 2019 at 1:24 AM Ran Wang wrote: > > When DWC3 is set to host mode by programming register DWC3_GCTL, VBUS > (or its control signal) will be turned on immediately on related Root Hub > ports. Then, the VBUS is turned off for a little while(15us) when do xhci > reset (conducted by

Re: [patch V5 01/11] Documentation: Add license-rules.rst to describe how to properly identify file licenses

2018-06-15 Thread Yang Li
On Tue, Jun 12, 2018 at 2:27 PM, Thomas Gleixner wrote: > Yang, > > On Tue, 12 Jun 2018, Yang Li wrote: >> On Thu, Dec 28, 2017 at 4:17 PM, Thomas Gleixner wrote: >> > On Thu, 28 Dec 2017, Thomas Gleixner wrote: >> > >> > Sorry for the spam. I

Re: [patch V5 01/11] Documentation: Add license-rules.rst to describe how to properly identify file licenses

2018-06-15 Thread Yang Li
On Tue, Jun 12, 2018 at 2:27 PM, Thomas Gleixner wrote: > Yang, > > On Tue, 12 Jun 2018, Yang Li wrote: >> On Thu, Dec 28, 2017 at 4:17 PM, Thomas Gleixner wrote: >> > On Thu, 28 Dec 2017, Thomas Gleixner wrote: >> > >> > Sorry for the spam. I

Re: [patch V5 01/11] Documentation: Add license-rules.rst to describe how to properly identify file licenses

2018-06-12 Thread Yang Li
On Thu, Dec 28, 2017 at 4:17 PM, Thomas Gleixner wrote: > On Thu, 28 Dec 2017, Thomas Gleixner wrote: > > Sorry for the spam. I somehow missed to refresh the patch before generating > the mbox. Find below the correct version of that one which has ALL braces > removed which we don't need. Hi

Re: [patch V5 01/11] Documentation: Add license-rules.rst to describe how to properly identify file licenses

2018-06-12 Thread Yang Li
On Thu, Dec 28, 2017 at 4:17 PM, Thomas Gleixner wrote: > On Thu, 28 Dec 2017, Thomas Gleixner wrote: > > Sorry for the spam. I somehow missed to refresh the patch before generating > the mbox. Find below the correct version of that one which has ALL braces > removed which we don't need. Hi

Re: [GIT PULL] arm64: updates for 4.17

2018-05-10 Thread Yang Li
On Wed, Apr 4, 2018 at 9:32 AM, Will Deacon wrote: > Hi Linus, > > Please pull these arm64 updates for 4.17. Note that I've pulled in a > stable branch from Eric Biederman here to fulfil some siginfo dependencies, > so the diffstat strays slightly out of arm64 due to his

Re: [GIT PULL] arm64: updates for 4.17

2018-05-10 Thread Yang Li
On Wed, Apr 4, 2018 at 9:32 AM, Will Deacon wrote: > Hi Linus, > > Please pull these arm64 updates for 4.17. Note that I've pulled in a > stable branch from Eric Biederman here to fulfil some siginfo dependencies, > so the diffstat strays slightly out of arm64 due to his changes. {snip} > >

Re: [PATCH v3] arm64: dts: ls1088a: Add USB support

2017-10-24 Thread Yang Li
On Tue, Oct 24, 2017 at 4:31 AM, wrote: > From: "yinbo.zhu" > > Fix the issue that usb is not detected on ls1088ardb You can only fix issue for a function after the function has been added previously. So like Shawn commented, this patch is about adding

Re: [PATCH v3] arm64: dts: ls1088a: Add USB support

2017-10-24 Thread Yang Li
On Tue, Oct 24, 2017 at 4:31 AM, wrote: > From: "yinbo.zhu" > > Fix the issue that usb is not detected on ls1088ardb You can only fix issue for a function after the function has been added previously. So like Shawn commented, this patch is about adding the USB support instead of fixing an

Re: [PATCH] mm: move pcp and lru-pcp drainging into single wq

2017-03-15 Thread Yang Li
On Wed, Mar 15, 2017 at 2:39 AM, Michal Hocko <mho...@kernel.org> wrote: > On Tue 14-03-17 18:07:38, Yang Li wrote: >> On Mon, Mar 13, 2017 at 4:58 AM, Michal Hocko <mho...@kernel.org> wrote: >> > On Fri 10-03-17 17:31:56, Yang Li wrote: >> >> On Tue,

Re: [PATCH] mm: move pcp and lru-pcp drainging into single wq

2017-03-15 Thread Yang Li
On Wed, Mar 15, 2017 at 2:39 AM, Michal Hocko wrote: > On Tue 14-03-17 18:07:38, Yang Li wrote: >> On Mon, Mar 13, 2017 at 4:58 AM, Michal Hocko wrote: >> > On Fri 10-03-17 17:31:56, Yang Li wrote: >> >> On Tue, Mar 7, 2017 at 7:17 AM, Michal Hocko wro

Re: [PATCH] mm: move pcp and lru-pcp drainging into single wq

2017-03-14 Thread Yang Li
On Mon, Mar 13, 2017 at 4:58 AM, Michal Hocko <mho...@kernel.org> wrote: > On Fri 10-03-17 17:31:56, Yang Li wrote: >> On Tue, Mar 7, 2017 at 7:17 AM, Michal Hocko <mho...@kernel.org> wrote: >> > From: Michal Hocko <mho...@suse.com> >> > >> &

Re: [PATCH] mm: move pcp and lru-pcp drainging into single wq

2017-03-14 Thread Yang Li
On Mon, Mar 13, 2017 at 4:58 AM, Michal Hocko wrote: > On Fri 10-03-17 17:31:56, Yang Li wrote: >> On Tue, Mar 7, 2017 at 7:17 AM, Michal Hocko wrote: >> > From: Michal Hocko >> > >> > We currently have 2 specific WQ_RECLAIM workqueues in the mm code. &

Re: [PATCH 3/4] arm: dts: imx: Add iMX6Q-based Kontron SMARC-sAMX6i module

2017-03-13 Thread Yang Li
On Tue, Feb 28, 2017 at 6:20 PM, Russell King - ARM Linux wrote: > On Tue, Feb 28, 2017 at 05:49:57PM -0600, Rob Herring wrote: >> On Tue, Feb 28, 2017 at 5:10 PM, Russell King - ARM Linux >> wrote: >> > On Tue, Feb 28, 2017 at 05:06:02PM -0600, Rob

Re: [PATCH 3/4] arm: dts: imx: Add iMX6Q-based Kontron SMARC-sAMX6i module

2017-03-13 Thread Yang Li
On Tue, Feb 28, 2017 at 6:20 PM, Russell King - ARM Linux wrote: > On Tue, Feb 28, 2017 at 05:49:57PM -0600, Rob Herring wrote: >> On Tue, Feb 28, 2017 at 5:10 PM, Russell King - ARM Linux >> wrote: >> > On Tue, Feb 28, 2017 at 05:06:02PM -0600, Rob Herring wrote: >> >> On Sun, Feb 19, 2017 at

Re: [PATCH] mm: move pcp and lru-pcp drainging into single wq

2017-03-10 Thread Yang Li
On Tue, Mar 7, 2017 at 7:17 AM, Michal Hocko wrote: > From: Michal Hocko > > We currently have 2 specific WQ_RECLAIM workqueues in the mm code. > vmstat_wq for updating pcp stats and lru_add_drain_wq dedicated to drain > per cpu lru caches. This seems more

Re: [PATCH] mm: move pcp and lru-pcp drainging into single wq

2017-03-10 Thread Yang Li
On Tue, Mar 7, 2017 at 7:17 AM, Michal Hocko wrote: > From: Michal Hocko > > We currently have 2 specific WQ_RECLAIM workqueues in the mm code. > vmstat_wq for updating pcp stats and lru_add_drain_wq dedicated to drain > per cpu lru caches. This seems more than necessary because both can run >

<    1   2   3