[PATCH] tracefs/eventfs: Modify mismatched function name

2023-10-18 Thread Jiapeng Chong
No functional modification involved. fs/tracefs/event_inode.c:864: warning: expecting prototype for eventfs_remove(). Prototype was for eventfs_remove_dir() instead. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6939 Signed-off-by: Jiapeng Chong --- fs

[PATCH] nvdimm/region: Fix kernel-doc

2022-09-19 Thread Jiapeng Chong
drivers/nvdimm/region_devs.c:1103: warning: expecting prototype for nvdimm_flush(). Prototype was for generic_nvdimm_flush() instead. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2209 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/nvdimm/region_devs.c | 2 +- 1 file

[PATCH] nvdimm: make __nvdimm_security_overwrite_query static

2022-09-14 Thread Jiapeng Chong
This symbol is not used outside of security.c, so marks it static. drivers/nvdimm/security.c:411:6: warning: no previous prototype for function '__nvdimm_security_overwrite_query'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2148 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong

[PATCH] Bluetooth: 6lowpan: remove unused function

2021-04-15 Thread Jiapeng Chong
Fix the following clang warning: net/bluetooth/6lowpan.c:913:20: warning: unused function 'bdaddr_type' [-Wunused-function]. net/bluetooth/6lowpan.c:106:35: warning: unused function 'peer_lookup_ba' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- net/bluetooth

[PATCH] drm/rockchip: remove unused function

2021-04-15 Thread Jiapeng Chong
Fix the following clang warning: drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c:320:20: warning: unused function 'dsi_set' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 5 - 1 file changed, 5 deletions

[PATCH] drm/vc4: remove unused function

2021-04-15 Thread Jiapeng Chong
Fix the following clang warning: drivers/gpu/drm/vc4/vc4_vec.c:201:1: warning: unused function 'to_vc4_vec_connector' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/vc4/vc4_vec.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers

[PATCH] drm/kmb: remove unused function

2021-04-15 Thread Jiapeng Chong
Fix the following clang warning: drivers/gpu/drm/kmb/kmb_dsi.c:824:2: warning: unused function 'set_test_mode_src_osc_freq_target_hi_bits' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/kmb/kmb_dsi.c | 16 1 file changed, 16

[PATCH] block: remove unused function

2021-04-15 Thread Jiapeng Chong
Fix the following clang warning: block/blk-zoned.c:55:24: warning: unused function 'blk_zone_start' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- block/blk-zoned.c | 8 1 file changed, 8 deletions(-) diff --git a/block/blk-zoned.c b/block/blk-zoned.c

[PATCH] nfsd: remove unused function

2021-04-15 Thread Jiapeng Chong
Fix the following clang warning: fs/nfsd/nfs4state.c:6276:1: warning: unused function 'end_offset' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- fs/nfsd/nfs4state.c | 9 - 1 file changed, 9 deletions(-) diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd

[PATCH] rtc: remove unused function

2021-04-15 Thread Jiapeng Chong
Fix the following clang warning: drivers/rtc/rtc-ds1511.c:108:1: warning: unused function 'rtc_write_alarm' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/rtc/rtc-ds1511.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/rtc/rtc-ds1511.c

[PATCH] pwm: mediatek: remove unused function

2021-04-15 Thread Jiapeng Chong
Fix the following clang warning: drivers/pwm/pwm-mediatek.c:110:19: warning: unused function 'pwm_mediatek_readl' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/pwm/pwm-mediatek.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/pwm/pwm

[PATCH] soc: fsl: qe: remove unused function

2021-04-15 Thread Jiapeng Chong
Fix the following clang warning: drivers/soc/fsl/qe/qe_ic.c:234:29: warning: unused function 'qe_ic_from_irq' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/soc/fsl/qe/qe_ic.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/soc/fsl/qe

[PATCH] PCI: dwc: remove unused function

2021-04-15 Thread Jiapeng Chong
Fix the following clang warning: drivers/pci/controller/dwc/pcie-intel-gw.c:84:19: warning: unused function 'pcie_app_rd' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/pci/controller/dwc/pcie-intel-gw.c | 5 - 1 file changed, 5 deletions(-) diff

[PATCH] PCI: shpchp: remove unused function

2021-04-15 Thread Jiapeng Chong
Fix the following clang warning: drivers/pci/hotplug/shpchp_hpc.c:177:20: warning: unused function 'shpc_writeb' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/pci/hotplug/shpchp_hpc.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/pci

[PATCH] atm: idt77252: remove unused function

2021-04-14 Thread Jiapeng Chong
Fix the following clang warning: drivers/atm/idt77252.c:1787:1: warning: unused function 'idt77252_fbq_level' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/atm/idt77252.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/atm/idt77252.c b

[PATCH] crypto: chelsio - remove unused function

2021-04-14 Thread Jiapeng Chong
Fix the following clang warning: drivers/crypto/chelsio/chcr_algo.c:129:19: warning: unused function 'is_ofld_imm' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/crypto/chelsio/chcr_algo.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers

[PATCH] ocfs2/dlm: remove unused function

2021-04-14 Thread Jiapeng Chong
Fix the following clang warning: fs/ocfs2/dlm/dlmrecovery.c:129:20: warning: unused function 'dlm_reset_recovery' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- fs/ocfs2/dlm/dlmrecovery.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/fs/ocfs2/dlm

[PATCH] bcma: remove unused function

2021-04-14 Thread Jiapeng Chong
Fix the following clang warning: drivers/bcma/driver_mips.c:55:20: warning: unused function 'mips_write32' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/bcma/driver_mips.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/bcma

[PATCH] dm clone metadata: remove unused function

2021-04-14 Thread Jiapeng Chong
Fix the following clang warning: drivers/md/dm-clone-metadata.c:279:19: warning: unused function 'superblock_write_lock' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/md/dm-clone-metadata.c | 6 -- 1 file changed, 6 deletions(-) diff --git

[PATCH] Drivers: hv: vmbus: remove unused function

2021-04-14 Thread Jiapeng Chong
Fix the following clang warning: drivers/hv/ring_buffer.c:89:1: warning: unused function 'hv_set_next_read_location' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/hv/ring_buffer.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/hv

[PATCH] drm/vmwgfx: remove unused variable

2021-04-14 Thread Jiapeng Chong
Fix the following gcc warning: drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:456:31: warning: variable ‘vcs’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions

[PATCH] ASoC: codec: remove unused variable

2021-04-13 Thread Jiapeng Chong
Fix the following gcc warning: sound/soc/codecs/jz4760.c:201:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- sound/soc/codecs/jz4760.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH] leds: blinkm: remove unused variable

2021-04-13 Thread Jiapeng Chong
Fix the following gcc warning: drivers/leds/leds-blinkm.c:483:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/leds/leds-blinkm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git

[PATCH] memstick: r592: remove unused variable

2021-04-13 Thread Jiapeng Chong
Fix the following clang warning: drivers/memstick/host/r592.c:363:6: warning: variable ‘len’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/memstick/host/r592.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH] esp6: Simplify the calculation of variables

2021-04-13 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./net/ipv6/esp6_offload.c:321:32-34: WARNING !A || A && B is equivalent to !A || B. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- net/ipv6/esp6_offload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

[PATCH] watchdog: it87_wdt: remove useless function

2021-04-13 Thread Jiapeng Chong
Fix the following clang warning: drivers/watchdog/it87_wdt.c:155:20: warning: unused function 'superio_outw' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/watchdog/it87_wdt.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/watchdog

[PATCH] virtiofs: remove useless function

2021-04-13 Thread Jiapeng Chong
Fix the following clang warning: fs/fuse/virtio_fs.c:130:35: warning: unused function 'vq_to_fpq' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- fs/fuse/virtio_fs.c | 5 - 1 file changed, 5 deletions(-) diff --git a/fs/fuse/virtio_fs.c b/fs/fuse

[PATCH] RDMA/hw/qib/qib_iba7322: remove useless function

2021-04-13 Thread Jiapeng Chong
Fix the following clang warning: drivers/infiniband/hw/qib/qib_iba7322.c:803:19: warning: unused function 'qib_read_ureg' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/infiniband/hw/qib/qib_iba7322.c | 22 -- 1 file changed, 22

[PATCH] media: solo6x10: remove useless function

2021-04-13 Thread Jiapeng Chong
Fix the following clang warning: drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c:394:19: warning: unused function 'vop_interlaced' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c | 5 - 1 file changed, 5

[PATCH] stm class: remove useless function

2021-04-13 Thread Jiapeng Chong
Fix the following clang warning: drivers/hwtracing/stm/policy.c:60:21: warning: unused function 'stp_policy_node_name' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/hwtracing/stm/policy.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers

[PATCH] drm/i915/gvt: remove useless function

2021-04-13 Thread Jiapeng Chong
Fix the following clang warning: drivers/gpu/drm/i915/gvt/gtt.c:590:20: warning: unused function 'ppgtt_set_guest_root_entry' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/i915/gvt/gtt.c | 6 -- 1 file changed, 6 deletions(-) diff --git

[PATCH] hwmon: (nct6683) remove useless function

2021-04-13 Thread Jiapeng Chong
Fix the following clang warning: drivers/hwmon/nct6683.c:491:19: warning: unused function 'in_to_reg' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/hwmon/nct6683.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/hwmon/nct6683.c

[PATCH] fpga: xilinx-pr-decoupler: remove useless function

2021-04-12 Thread Jiapeng Chong
Fix the following gcc warning: drivers/fpga/xilinx-pr-decoupler.c:32:19: warning: unused function 'xlnx_pr_decouple_read' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/fpga/xilinx-pr-decoupler.c | 6 -- 1 file changed, 6 deletions(-) diff --git

[PATCH] rapidio: remove useless variable

2021-04-12 Thread Jiapeng Chong
Fix the following gcc warning: drivers/rapidio/rio_cm.c:673:7: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/rapidio/rio_cm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git

[PATCH] coda: remove useless variable

2021-04-12 Thread Jiapeng Chong
Fix the following gcc warning: fs/coda/file.c:241:6: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- fs/coda/file.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/coda/file.c b/fs/coda

[PATCH] scsi: message: fusion: remove useless variable

2021-04-11 Thread Jiapeng Chong
Fix the following gcc warning: drivers/message/fusion/mptsas.c:783:14: warning: variable ‘vtarget’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/message/fusion/mptsas.c | 2 -- 1 file changed, 2 deletions(-) diff --git

[PATCH] ide-cd: remove useless variable

2021-04-11 Thread Jiapeng Chong
Fix the following gcc warning: drivers/ide/ide-cd_ioctl.c:212:6: warning: variable ‘stat’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/ide/ide-cd_ioctl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH] thermal: ti-soc-thermal: remove useless variable

2021-04-11 Thread Jiapeng Chong
Fix the following gcc warning: drivers/thermal/ti-soc-thermal/ti-bandgap.c:1146:7: warning: variable ‘val’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/thermal/ti-soc-thermal/ti-bandgap.c | 3 +-- 1 file changed, 1 insertion

[PATCH] scsi: a100u2w: remove useless variable

2021-04-11 Thread Jiapeng Chong
Fix the following gcc warning: drivers/scsi/a100u2w.c:1092:8: warning: variable ‘bios_phys’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/scsi/a100u2w.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH] scsi: 3w-9xxx: remove useless variable

2021-04-11 Thread Jiapeng Chong
Fix the following gcc warning: drivers/scsi/3w-9xxx.c:942:24: warning: variable ‘response_que_value’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/scsi/3w-9xxx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH] staging: emxx_udc: remove useless variable

2021-04-11 Thread Jiapeng Chong
Fix the following gcc warning: vers/staging/emxx_udc/emxx_udc.c:41:19: warning: ‘driver_desc’ defined but not used [-Wunused-const-variable=]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/staging/emxx_udc/emxx_udc.c | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH] gpio: mxs: remove useless function

2021-04-11 Thread Jiapeng Chong
Fix the following gcc warning: drivers/gpio/gpio-mxs.c:63:19: warning: kernel/sys_ni.cunused function 'is_imx28_gpio'. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpio/gpio-mxs.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/gpio/gpio-mxs.c b/drivers

[tip: core/rcu] rcu: Make nocb_nobypass_lim_per_jiffy static

2021-04-11 Thread tip-bot2 for Jiapeng Chong
The following commit has been merged into the core/rcu branch of tip: Commit-ID: 9640dcab974fb7fba086d30fd9f0ec08b8876d12 Gitweb: https://git.kernel.org/tip/9640dcab974fb7fba086d30fd9f0ec08b8876d12 Author:Jiapeng Chong AuthorDate:Wed, 24 Feb 2021 16:30:29 +08:00 Committer

[PATCH] usb: typec: tcpm: remove useless variable

2021-04-09 Thread Jiapeng Chong
Fix the following gcc warning: drivers/usb/typec/tcpm/tcpm.c:2107:39: warning: ‘tcpm_altmode_ops’ defined but not used [-Wunused-const-variable=]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/usb/typec/tcpm/tcpm.c | 6 -- 1 file changed, 6 deletions(-) diff --git

[PATCH] Input: apbps2 - remove useless variable

2021-04-09 Thread Jiapeng Chong
Fix the following gcc warning: drivers/input/serio/apbps2.c:106:16: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/input/serio/apbps2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH] HID: hid-sensor-custom: remove useless variable

2021-04-09 Thread Jiapeng Chong
Fix the following gcc warning: drivers/hid/hid-sensor-custom.c:400:7: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/hid/hid-sensor-custom.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions

[PATCH] staging: comedi: cb_pcidas64: remove useless function

2021-04-09 Thread Jiapeng Chong
Fix the following gcc warning: drivers/staging/comedi/drivers/cb_pcidas64.c:232:19: warning: unused function 'analog_trig_low_threshold_bits' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/staging/comedi/drivers/cb_pcidas64.c | 5 - 1 file changed

[PATCH] ASoC: Intel: bytcr_wm5102: remove useless variable

2021-04-09 Thread Jiapeng Chong
Fix the following gcc warning: sound/soc/intel/boards/bytcr_wm5102.c:216:40: warning: ‘byt_wm5102_dai_params’ defined but not used. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- sound/soc/intel/boards/bytcr_wm5102.c | 8 1 file changed, 8 deletions(-) diff --git a/sound

[PATCH] staging: ks7010: remove useless variable

2021-04-08 Thread Jiapeng Chong
Fix the following gcc warning: drivers/staging/ks7010/ks_hostif.c:929:19: warning: variable ‘noise’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/staging/ks7010/ks_hostif.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions

[PATCH] agp: Remove useless variable

2021-04-08 Thread Jiapeng Chong
Fix the following gcc warning: drivers/char/agp/via-agp.c:131:28: warning: variable ‘current_size’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/char/agp/via-agp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers

[PATCH] ide: Remove useless variable

2021-04-08 Thread Jiapeng Chong
Fix the following gcc warning: drivers/ide/ide-proc.c:457:37: warning: ‘ide_media_proc_fops’ defined but not used [-Wunused-const-variable=]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/ide/ide-proc.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/ide

[PATCH] scsi: message: fusion: Remove useless variable

2021-04-08 Thread Jiapeng Chong
Fix the following gcc warning: drivers/message/fusion/mptbase.c:3087:9: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/message/fusion/mptbase.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions

[PATCH] cifs: Remove useless variable

2021-04-08 Thread Jiapeng Chong
Fix the following gcc warning: fs/cifs/cifsacl.c:1097:8: warning: variable ‘nmode’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- fs/cifs/cifsacl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/cifs/cifsacl.c b/fs/cifs

[PATCH] drm/vmwgfx: Remove useless variable

2021-04-08 Thread Jiapeng Chong
Fix the following gcc warning: drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c:163:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c | 3 +-- 1 file changed, 1 insertion

[PATCH] wil6210: wmi: Remove useless code

2021-04-07 Thread Jiapeng Chong
Fix the following whitescan warning: An unsigned value can never be less than 0. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/net/wireless/ath/wil6210/wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/wil6210/wmi.c b

[PATCH] drm/nouveau/kms/nv50-: remove unused variable

2021-04-07 Thread Jiapeng Chong
Fix the following gcc warning: drivers/gpu/drm/nouveau/dispnv50/disp.c:1389:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/nouveau/dispnv50/disp.c | 6 ++ 1 file changed, 2 insertions(+), 4

[PATCH] HID: picolcd: remove unused variable

2021-04-07 Thread Jiapeng Chong
Fix the following gcc warning: drivers/hid/hid-picolcd_core.c:332:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/hid/hid-picolcd_core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff

[PATCH] staging: rtl8192u: remove unused variable

2021-04-07 Thread Jiapeng Chong
Fix the following gcc warning: drivers/staging/rtl8192u/r8192U_core.c:3419:6: warning: variable ‘reset_status’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/staging/rtl8192u/r8192U_core.c | 3 +-- 1 file changed, 1 insertion

[PATCH] staging: rtl8192e: rtl8192E_dev: remove unused variable

2021-04-06 Thread Jiapeng Chong
Fix the following gcc warning: drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c:693:15: warning: variable ‘tmpRegC’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 6 +++--- 1 file changed

[PATCH] staging: rtl8723bs: remove unused variable

2021-04-06 Thread Jiapeng Chong
Fix the following gcc warning: drivers/staging/rtl8723bs/core/rtw_ieee80211.c:657:15: warning: variable ‘sec_idx’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 8 +++- 1 file changed

[PATCH] gpio: gpio-it87: remove unused code

2021-04-06 Thread Jiapeng Chong
Fix the following clang warning: drivers/gpio/gpio-it87.c:128:20: warning: unused function 'superio_outw' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpio/gpio-it87.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/gpio/gpio-it87.c

[PATCH] ftrace: Check if pages were allocated before calling free_pages()

2021-04-06 Thread Jiapeng Chong
It is possible that on error pg->size can be zero when getting its order,which would return a -1 value. It is dangerous to pass in an order of -1 to free_pages(). Check if order is greater than or equal to zero before calling free_pages(). Reported-by: Abaci Robot Signed-off-by: Jiapeng Ch

[PATCH] usb: gadget: aspeed: Remove unnecessary version.h includes

2021-04-05 Thread Jiapeng Chong
"make versioncheck" shows: ./drivers/usb/gadget/udc/aspeed-vhub/hub.c: 33 linux/version.h not needed. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/usb/gadget/udc/aspeed-vhub/hub.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/gadget/udc/aspeed-

[PATCH] sunrpc: Remove unused function ip_map_lookup

2021-04-05 Thread Jiapeng Chong
Fix the following clang warnings: net/sunrpc/svcauth_unix.c:306:30: warning: unused function 'ip_map_lookup' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- net/sunrpc/svcauth_unix.c | 9 - 1 file changed, 9 deletions(-) diff --git a/net/sunrpc

[PATCH] xhci: remove unused variable

2021-04-01 Thread Jiapeng Chong
Fix the following clang warning: drivers/usb/host/xhci.c:1346:15: warning: variable ‘len’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/usb/host/xhci.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git

[PATCH] dmaengine: qcom_hidma: remove unused code

2021-04-01 Thread Jiapeng Chong
Fix the following clang warning: drivers/dma/qcom/hidma.c:94:20: warning: unused function 'to_hidma_desc' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/dma/qcom/hidma.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/dma/qcom/hidma.c b

[PATCH] drm/nouveau: remove unused code

2021-04-01 Thread Jiapeng Chong
Fix the following whitescan warning: drivers/gpu/drm/nouveau/nouveau_bo.c:1287:17: warning: variable ‘dev’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/nouveau/nouveau_bo.c | 2 -- 1 file changed, 2 deletions(-) diff

[PATCH] soc: bcm: brcmstb: remove unused variable 'brcmstb_machine_match'

2021-03-31 Thread Jiapeng Chong
Fix the following clang warning: drivers/soc/bcm/brcmstb/common.c:17:34: warning: unused variable 'brcmstb_machine_match' [-Wunused-const-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/soc/bcm/brcmstb/common.c | 5 - 1 file changed, 5 deletions(-) diff --git

[PATCH] fs/cramfs: Remove useless call "zlib_inflateEnd"

2021-03-30 Thread Jiapeng Chong
Fix the following whitescan warning: Calling "zlib_inflateEnd()" is only useful for its return value, which is ignored. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- fs/cramfs/uncompress.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/cramfs/uncompress.c b

[PATCH] crypto: deflate - Remove useless call "zlib_inflateEnd"

2021-03-30 Thread Jiapeng Chong
Fix the following whitescan warning: Calling "zlib_inflateEnd(>decomp_stream)" is only useful for its return value, which is ignored. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- crypto/deflate.c | 1 - 1 file changed, 1 deletion(-) diff --git a/crypto/defla

[PATCH] btrfs: Remove useless call "zlib_inflateEnd"

2021-03-30 Thread Jiapeng Chong
Fix the following whitescan warning: Calling "zlib_inflateEnd(>strm)" is only useful for its return value, which is ignored. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- fs/btrfs/zlib.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/btrfs/zlib.c b/fs/btrfs

[PATCH] crypto: ccp -A value assigned to a variable is never used.

2021-03-30 Thread Jiapeng Chong
Fix the following whitescan warning: Assigning value "64" to "dst.address" here, but that stored value is overwritten before it can be used. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/crypto/ccp/ccp-ops.c | 1 - 1 file changed, 1 deletion(-) diff --

[PATCH] ftrace: Modify parameter transfer type

2021-03-30 Thread Jiapeng Chong
Fix the following whitescan warning: "order" is passed to a parameter that cannot be negative. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- kernel/trace/ftrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/ftrace.c b/kernel/trac

[PATCH] ppp: deflate: Remove useless call "zlib_inflateEnd"

2021-03-30 Thread Jiapeng Chong
Fix the following whitescan warning: Calling "zlib_inflateEnd(>strm)" is only useful for its return value, which is ignored. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/net/ppp/ppp_deflate.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ppp/

[PATCH v2] media: mxl692: remove impossible condition

2021-03-25 Thread Jiapeng Chong
Fix the following coverity warning: This greater-than-or-equal-to-zero comparison of an unsigned value is always true. "opcode >= 0". Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- Changes in v2: - Make the commit message more clearer. drivers/media/dvb-frontends

[PATCH] media: mxl692: remove impossible condition

2021-03-25 Thread Jiapeng Chong
Fix the following coverity warning: This greater-than-or-equal-to-zero comparison of an unsigned value is always true. "opcode >= 0". Signed-off-by: Jiapeng Chong --- drivers/media/dvb-frontends/mxl692.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driv

[PATCH v2] drm/nouveau/mc: make tu102_mc_intr_mask and tu102_mc_intr_rearm static

2021-03-23 Thread Jiapeng Chong
? Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- Changes in v2: -Modified the commit message. drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c b/drivers/gpu/drm/nouveau

[PATCH] drm/nouveau/mc: make tu102_mc_intr_unarm static

2021-03-23 Thread Jiapeng Chong
? Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c b/drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c index 58db83e..7cf659cc

[PATCH] drm/etnaviv: Remove redundant NULL check

2021-03-22 Thread Jiapeng Chong
/drm/etnaviv/etnaviv_gem_submit.c:616:2-8: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git

[PATCH] media: staging: media: Remove redundant NULL check

2021-03-22 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/staging/media/atomisp/pci/atomisp_cmd.c:4269:2-8: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/staging/media/atomisp/pci/atomisp_cmd.c | 3 +-- 1 file changed

[PATCH] ndtest: Remove redundant NULL check

2021-03-22 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./tools/testing/nvdimm/test/ndtest.c:491:2-7: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- tools/testing/nvdimm/test/ndtest.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH] cxgb4: Remove redundant NULL check

2021-03-22 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c:3540:2-8: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c | 3 +-- 1 file changed

[PATCH] powerpc/iommu/debug: Remove redundant NULL check

2021-03-22 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./fs/io_uring.c:5989:4-9: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- arch/powerpc/kernel/iommu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch

[PATCH] io_uring: Remove redundant NULL check

2021-03-22 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./fs/io_uring.c:5989:4-9: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- fs/io_uring.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/io_uring.c b/fs

[PATCH] drm/amd/display: Remove unnecessary conversion to bool

2021-03-21 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/gpu/drm/amd/display/dc/dcn30/dcn30_mpc.c:875:62-67: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/dc/dcn30/dcn30_mpc.c | 2 +- 1 file changed, 1 insertion

[tip: x86/cleanups] x86/kaslr: Return boolean values from a function returning bool

2021-03-19 Thread tip-bot2 for Jiapeng Chong
The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 21d6a7dcbfba5e7b31f4e9d555a9be362578bfc3 Gitweb: https://git.kernel.org/tip/21d6a7dcbfba5e7b31f4e9d555a9be362578bfc3 Author:Jiapeng Chong AuthorDate:Tue, 09 Mar 2021 17:59:23 +08:00

[PATCH] KVM: x86: Remove unused variable rc

2021-03-19 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./arch/x86/kvm/emulate.c:4985:5-7: Unneeded variable: "rc". Return "X86EMUL_CONTINUE" on line 5019. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- arch/x86/kvm/emulate.c | 4 +--- 1 file changed, 1 insertion(+), 3 dele

[PATCH] drm/nouveau: Remove unused variable ret

2021-03-19 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/gpu/drm/nouveau/nouveau_bios.c:2048:5-8: Unneeded variable: "ret". Return "0" on line 2061. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/nouveau/nouveau_bios.c | 3 +-- 1 file changed, 1 inser

[PATCH] dm persistent data: Remove unused variable ret

2021-03-19 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/md/persistent-data/dm-btree-spine.c:188:5-6: Unneeded variable: "r". Return "0" on line 194. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/md/persistent-data/dm-btree-internal.h | 2 +- drivers/md/pers

[PATCH] scsi: aha1542: remove unneeded semicolon

2021-03-18 Thread Jiapeng Chong
semicolon. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/scsi/aha1542.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c index 21aab9f5b117..6d4d7d60bfba 100644 --- a/drivers/scsi/aha1542.c +++ b

[PATCH] drm/amd/display: Remove unnecessary conversion to bool

2021-03-17 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dwb_cm.c:220:65-70: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dwb_cm.c | 2 +- 1 file changed, 1

[PATCH] selftests/bpf: fix warning comparing pointer to 0

2021-03-17 Thread Jiapeng Chong
Fix the following coccicheck warning: ./tools/testing/selftests/bpf/progs/fentry_test.c:76:15-16: WARNING comparing pointer to 0. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- tools/testing/selftests/bpf/progs/fentry_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v2] sched: replace if (cond) BUG() with WARN_ON()

2021-03-17 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./arch/powerpc/platforms/cell/spufs/sched.c:908:2-5: WARNING: Use BUG_ON instead of if condition followed by BUG. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- Changes in v2: - replace BUG with WARN_ON. arch/powerpc/platforms/cell/spufs

[PATCH] sched: replace if (cond) BUG() with BUG_ON()

2021-03-17 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./arch/powerpc/platforms/cell/spufs/sched.c:908:2-5: WARNING: Use BUG_ON instead of if condition followed by BUG. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- arch/powerpc/platforms/cell/spufs/sched.c | 3 +-- 1 file changed, 1 insertion

[PATCH] attr: replace if (cond) BUG() with BUG_ON()

2021-03-17 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./fs/attr.c:349:2-5: WARNING: Use BUG_ON instead of if condition followed by BUG. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- fs/attr.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/attr.c b/fs/attr.c index

[PATCH] virtio_net: replace if (cond) BUG() with BUG_ON()

2021-03-16 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/net/virtio_net.c:1551:2-5: WARNING: Use BUG_ON instead of if condition followed by BUG. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/net/virtio_net.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

[PATCH] rxrpc: rxkad: replace if (cond) BUG() with BUG_ON()

2021-03-16 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./net/rxrpc/rxkad.c:1140:2-5: WARNING: Use BUG_ON instead of if condition followed by BUG. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- net/rxrpc/rxkad.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net/rxrpc

[PATCH v2] sched: replace if (cond) BUG() with BUG_ON()

2021-03-16 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./kernel/sched/core.c:8039:2-5: WARNING: Use BUG_ON instead of if condition followed by BUG. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- Changes in v2: - Replace BUG with BUG_ON. kernel/sched/core.c | 3 +-- 1 file changed, 1 insertion

[PATCH v2] sparc64: replace if (cond) BUG() with BUG_ON()

2021-03-16 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./arch/sparc/kernel/traps_64.c:419:2-5: WARNING: Use BUG_ON instead of if condition followed by BUG. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- Changes in v2: - Replace BUG with BUG_ON. arch/sparc/kernel/traps_64.c | 3 +-- 1 file

[PATCH] xen/evtchn: replace if (cond) BUG() with BUG_ON()

2021-03-16 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/xen/evtchn.c:412:2-5: WARNING: Use BUG_ON instead of if condition followed by BUG. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/xen/evtchn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/xen

  1   2   3   >