[PATCH -next] PCI: dwc: Remove set but not used variable

2020-09-17 Thread Liu Shixin
tting"), variable 'exp_cap_off' is never used. Remove it to avoid build warning. Signed-off-by: Liu Shixin --- drivers/pci/controller/dwc/pci-dra7xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pci-dra7xx.c b/drivers/pci/controller/dwc/pc

[PATCH -next] dmaengine: sf-pdma: Remove set but not used variable "desc"

2020-09-17 Thread Liu Shixin
twice"), variable 'desc' is never used. Remove it to avoid build warning. Signed-off-by: Liu Shixin --- drivers/dma/sf-pdma/sf-pdma.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/dma/sf-pdma/sf-pdma.c b/drivers/dma/sf-pdma/sf-pdma.c index 754994087e5f..1e66c6990d81 100644 --- a/d

[PATCH -next] mm/madvise: Remove set but not used variable 'zone'

2020-09-17 Thread Liu Shixin
ed. Remove it to avoid build warning. Signed-off-by: Liu Shixin --- mm/madvise.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/madvise.c b/mm/madvise.c index 460e19d60ba3..94b9d17331b9 100644 --- a/mm/madvise.c +++ b/mm/madvise.c @@ -879,7 +879,6 @@ static long madvise_remove(struct vm_area_s

[PATCH -next] PCI/IOV: use module_pci_driver to simplify the code

2020-09-17 Thread Liu Shixin
Use the module_pci_driver() macro to make the code simpler by eliminating module_init and module_exit calls. Signed-off-by: Liu Shixin --- drivers/pci/pci-pf-stub.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/pci/pci-pf-stub.c b/drivers/pci/pci-pf

[PATCH -next] scsi: initio: use module_pci_driver to simplify the code

2020-09-17 Thread Liu Shixin
Use the module_pci_driver() macro to make the code simpler by eliminating module_init and module_exit calls. Signed-off-by: Liu Shixin --- drivers/scsi/initio.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/scsi/initio.c b/drivers/scsi/initio.c index

[PATCH -next] scsi: dc395x: use module_pci_driver to simplify the code

2020-09-17 Thread Liu Shixin
Use the module_pci_driver() macro to make the code simpler by eliminating module_init and module_exit calls. Signed-off-by: Liu Shixin --- drivers/scsi/dc395x.c | 25 + 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/drivers/scsi/dc395x.c b/drivers/scsi

[PATCH -next] drivers/firmware/psci: fix type warning of sizeof in alloc_init_cpu_groups()

2020-09-17 Thread Liu Shixin
sizeof() when applied to a pointer typed expression should gives the size of the pointed data, even if the data is a pointer. Signed-off-by: Liu Shixin --- drivers/firmware/psci/psci_checker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/psci

[PATCH -next] RDMA/mlx5: fix type warning of sizeof in __mlx5_ib_alloc_counters()

2020-09-17 Thread Liu Shixin
sizeof() when applied to a pointer typed expression should gives the size of the pointed data, even if the data is a pointer. Signed-off-by: Liu Shixin --- drivers/infiniband/hw/mlx5/counters.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/mlx5

[PATCH -next] tee: optee: fix type warning of sizeof in pool_op_alloc()

2020-09-17 Thread Liu Shixin
sizeof() when applied to a pointer typed expression should gives the size of the pointed data, even if the data is a pointer. Signed-off-by: Liu Shixin --- drivers/tee/optee/shm_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tee/optee/shm_pool.c b/drivers/tee

[PATCH -next] RDMA/mlx5: fix type warning of sizeof in __mlx5_ib_alloc_counters()

2020-09-17 Thread Liu Shixin
sizeof() when applied to a pointer typed expression should give the size of the pointed data, even if the data is a pointer. Signed-off-by: Liu Shixin --- drivers/infiniband/hw/mlx5/counters.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/mlx5

[PATCH -next v2] RDMA/mlx5: fix type warning of sizeof in __mlx5_ib_alloc_counters()

2020-09-17 Thread Liu Shixin
sizeof() when applied to a pointer typed expression should give the size of the pointed data, even if the data is a pointer. Signed-off-by: Liu Shixin --- drivers/infiniband/hw/mlx5/counters.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/mlx5

[PATCH -next] can: peak_usb: convert to use le32_add_cpu()

2020-09-13 Thread Liu Shixin
Convert cpu_to_le32(le32_to_cpu(E1) + E2) to use le32_add_cpu(). Signed-off-by: Liu Shixin --- drivers/net/can/usb/peak_usb/pcan_usb_pro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/can/usb/peak_usb/pcan_usb_pro.c b/drivers/net/can/usb/peak_usb

[PATCH -next] mt76: mt7915: convert to use le16_add_cpu()

2020-09-13 Thread Liu Shixin
Convert cpu_to_le16(le16_to_cpu(E1) + E2) to use le16_add_cpu(). Signed-off-by: Liu Shixin --- drivers/net/wireless/mediatek/mt76/mt7915/mcu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c b/drivers/net/wireless/mediatek

[PATCH -next] dh key: convert to use be32_add_cpu()

2020-09-13 Thread Liu Shixin
Convert cpu_to_be32(be32_to_cpu(E1) + E2) to use be32_add_cpu(). Signed-off-by: Liu Shixin --- security/keys/dh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/keys/dh.c b/security/keys/dh.c index 1abfa70ed6e1..2635cb8a4561 100644 --- a/security/keys/dh.c +++ b

[PATCH -next] soc/qman: convert to use be32_add_cpu()

2020-09-13 Thread Liu Shixin
Signed-off-by: Liu Shixin drivers/soc/fsl/qbman/qman_test_api.c--- drivers/soc/fsl/qbman/qman_test_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/fsl/qbman/qman_test_api.c b/drivers/soc/fsl/qbman/qman_test_api.c index 2895d062cf51..7066b2f1467c 100644

[PATCH -next] dm integrity: convert to use le64_add_cpu()

2020-09-13 Thread Liu Shixin
Convert cpu_to_le64(le64_to_cpu(E1) + E2) to use le64_add_cpu(). Signed-off-by: Liu Shixin --- drivers/md/dm-integrity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/dm-integrity.c b/drivers/md/dm-integrity.c index 3fc3757def55..cf9dadd55625 100644

[PATCH -next] crypto: atmel-aes - convert to use be32_add_cpu()

2020-09-13 Thread Liu Shixin
Convert cpu_to_be32(be32_to_cpu(E1) + E2) to use be32_add_cpu(). Signed-off-by: Liu Shixin --- drivers/crypto/atmel-aes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c index a6e14491e080..b1d286004295 100644

[PATCH -next] extcon: axp288: use module_platform_driver to simplify the code

2020-09-14 Thread Liu Shixin
module_platform_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Liu Shixin --- drivers/extcon/extcon-axp288.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/extcon/extcon-axp288.c b/drivers/extcon/extcon-axp288.c index

[PATCH -next] iio: adc: palmas_gpadc: use module_platform_driver to simplify the code

2020-09-14 Thread Liu Shixin
module_platform_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Liu Shixin --- drivers/iio/adc/palmas_gpadc.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/iio/adc/palmas_gpadc.c b/drivers/iio/adc/palmas_gpadc.c index

[PATCH -next] pinctrl: sprd: use module_platform_driver to simplify the code

2020-09-14 Thread Liu Shixin
module_platform_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Liu Shixin --- drivers/pinctrl/sprd/pinctrl-sprd-sc9860.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/pinctrl/sprd/pinctrl-sprd-sc9860.c b/drivers

[PATCH -next] scsi: use module_platform_driver to simplify the code

2020-09-14 Thread Liu Shixin
module_platform_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Liu Shixin --- drivers/scsi/jazz_esp.c | 14 +- drivers/scsi/mac_esp.c| 14 +- drivers/scsi/qlogicpti.c | 14 +- drivers/scsi/sni_53c710.c | 14

[PATCH -next] EDAC/aspeed: use module_platform_driver to simplify the code

2020-09-14 Thread Liu Shixin
module_platform_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Liu Shixin --- drivers/edac/aspeed_edac.c | 18 +- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/drivers/edac/aspeed_edac.c b/drivers/edac/aspeed_edac.c index

[PATCH -next] omapfb: connector-dvi: simplify the return expression of dvic_connect()

2020-09-14 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c b/drivers/video/fbdev/omap2/omapfb

[PATCH -next] w1: ds2490: simplify the return expression of ds_reset()

2020-09-14 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/w1/masters/ds2490.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/w1/masters/ds2490.c b/drivers/w1/masters/ds2490.c index e17c8f70dcd0..d42da8bde06c 100644 --- a/drivers/w1/masters/ds2490

[PATCH -next] ata: pata_samsung_cf: simplify the return expression of pata_s3c_wait_after_reset()

2020-09-14 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/ata/pata_samsung_cf.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/ata/pata_samsung_cf.c b/drivers/ata/pata_samsung_cf.c index 3da0e8e30286..5fd5c79e1543 100644 --- a/drivers/ata

[PATCH -next] firmware: arm_sdei: simplify the return expression of sdei_device_freeze()

2020-09-14 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/firmware/arm_sdei.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/firmware/arm_sdei.c b/drivers/firmware/arm_sdei.c index b4b9ce97f415..5b4c8c51cb20 100644 --- a/drivers/firmware

[PATCH -next] drm/panel: simplify the return expression of rb070d30_panel_enable()

2020-09-14 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/gpu/drm/panel/panel-ronbo-rb070d30.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-ronbo-rb070d30.c b/drivers/gpu/drm/panel/panel-ronbo-rb070d30.c index 535c8d1cca21

[PATCH -next] usbip: simplify the return expression of usbip_core_init()

2020-09-14 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/usb/usbip/usbip_common.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/usb/usbip/usbip_common.c b/drivers/usb/usbip/usbip_common.c index e4b96674c405..4ce6c6a45eb1 100644 --- a/drivers/usb

[PATCH -next] Input: da9034-ts - simplify the return expression of da9034_touch_probe()

2020-09-14 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/input/touchscreen/da9034-ts.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/input/touchscreen/da9034-ts.c b/drivers/input/touchscreen/da9034-ts.c index 2943f6a58388..dfb2604381d2 100644

[PATCH -next] dmaengine: mediatek: simplify the return expression of mtk_uart_apdma_runtime_resume()

2020-09-14 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/dma/mediatek/mtk-uart-apdma.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/dma/mediatek/mtk-uart-apdma.c b/drivers/dma/mediatek/mtk-uart-apdma.c index 29f1223b285a..27c07350971d 100644

[PATCH -next] staging: greybus: simplify the return expression of gb_svc_add()

2020-09-14 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/greybus/svc.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/greybus/svc.c b/drivers/greybus/svc.c index ce7740ef449b..dca251172cd2 100644 --- a/drivers/greybus/svc.c +++ b/drivers/greybus

[PATCH -next] power: avs: qcom-cpr: simplify the return expression of cpr_disable()

2020-09-14 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/power/avs/qcom-cpr.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/power/avs/qcom-cpr.c b/drivers/power/avs/qcom-cpr.c index bd7c3e48b386..b24cc77d1889 100644 --- a/drivers/power/avs/qcom

[PATCH -next] leds: pca9532 - simplify the return expression of pca9532_remove

2020-09-19 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/leds/leds-pca9532.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/leds/leds-pca9532.c b/drivers/leds/leds-pca9532.c index 7d515d5e57bd..88d2edf285c2 100644 --- a/drivers/leds/leds-pca9532.c

[PATCH -next] drm/lima: simplify the return expression of lima_devfreq_target

2020-09-19 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/gpu/drm/lima/lima_devfreq.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/lima/lima_devfreq.c b/drivers/gpu/drm/lima/lima_devfreq.c index bbe02817721b..5914442936ed 100644

[PATCH -next] drm/omap: dsi: simplify the return expression of dsi_init_pll_data

2020-09-19 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/gpu/drm/omapdrm/dss/dsi.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/dss/dsi.c b/drivers/gpu/drm/omapdrm/dss/dsi.c index eeccf40bae41..cac0d1993dab 100644 --- a/drivers

[PATCH -next] mtd: vmu-flash: simplify the return expression of probe_maple_vmu

2020-09-19 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/mtd/maps/vmu-flash.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/mtd/maps/vmu-flash.c b/drivers/mtd/maps/vmu-flash.c index 177bf134e189..588e82de581c 100644 --- a/drivers/mtd/maps/vmu

[PATCH -next] rtc: meson: simplify the return expression of meson_vrtc_probe

2020-09-19 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/rtc/rtc-meson-vrtc.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/rtc/rtc-meson-vrtc.c b/drivers/rtc/rtc-meson-vrtc.c index 89e5ba0dae69..e6bd0808a092 100644 --- a/drivers/rtc/rtc-meson

[PATCH -next] mtd: rawnand: remove redundant dev_err call in cadence_nand_dt_probe

2020-09-20 Thread Liu Shixin
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Liu Shixin --- drivers/mtd/nand/raw/cadence-nand-controller.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/mtd/nand

[PATCH -next] binder: simplify the return expression of binder_mmap

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/android/binder.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/android/binder.c b/drivers/android/binder.c index 37a505c41dec..1f929e0cf39f 100644 --- a/drivers/android/binder.c +++ b/drivers

[PATCH -next] fpga: dfl: simplify the return expression of fme_perf_pmu_register

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/fpga/dfl-fme-perf.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/fpga/dfl-fme-perf.c b/drivers/fpga/dfl-fme-perf.c index 531266287eee..e881fbe6d838 100644 --- a/drivers/fpga/dfl-fme-perf.c

[PATCH -next] media: media/pci: simplify the return expression of verify_window_lock

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/media/pci/bt8xx/bttv-driver.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/media/pci/bt8xx/bttv-driver.c b/drivers/media/pci/bt8xx/bttv-driver.c index 8c61d292dec1..4f7eaec20dc3

[PATCH -next] tpm/st33zp24/i2c: simplify the return expression of st33zp24_i2c_remove

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/char/tpm/st33zp24/i2c.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/char/tpm/st33zp24/i2c.c b/drivers/char/tpm/st33zp24/i2c.c index 7c617edff4ca..b180171e5678 100644 --- a/drivers/char

[PATCH -next] Input: synaptics-rmi4 - simplify the return expression of rmi_driver_of_probe

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/input/rmi4/rmi_driver.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/input/rmi4/rmi_driver.c b/drivers/input/rmi4/rmi_driver.c index 258d5fe3d395..eec5d926da25 100644 --- a/drivers/input

[PATCH -next] HID: intel-ish-hid: simplify the return expression of ishtp_hid_parse

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/hid/intel-ish-hid/ishtp-hid.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/hid/intel-ish-hid/ishtp-hid.c b/drivers/hid/intel-ish-hid/ishtp-hid.c index b8aae69ad15d..edf5ae942508 100644

[PATCH -next] omapfb: simplify the return expression of sharp_ls_connect

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- .../fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c b/drivers/video/fbdev/omap2

[PATCH -next] omapfb: simplify the return expression of tpo_td043_connect

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- .../fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c b/drivers/video/fbdev/omap2/omapfb

[PATCH -next] crypto: cpt - simplify the return expression of cav_register_algs

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/crypto/cavium/cpt/cptvf_algs.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/crypto/cavium/cpt/cptvf_algs.c b/drivers/crypto/cavium/cpt/cptvf_algs.c index 5af0dc2a8909..ce3b91c612f0

[PATCH -next] drm/ast: simplify the return expression of ast_* function

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/gpu/drm/ast/ast_drv.c | 7 +-- drivers/gpu/drm/ast/ast_mode.c | 7 +-- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/ast/ast_drv.c b/drivers/gpu/drm/ast/ast_drv.c index f0b4af1c390a

[PATCH -next] snic: simplify the return expression of svnic_cq_alloc

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/scsi/snic/vnic_cq.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/scsi/snic/vnic_cq.c b/drivers/scsi/snic/vnic_cq.c index 4c8e64e4fba6..3455dd7e73f4 100644 --- a/drivers/scsi/snic

[PATCH -next] media: venus: simplify the return expression of venus_sys_set_* function

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/media/platform/qcom/venus/hfi_venus.c | 28 +++ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/drivers/media/platform/qcom/venus/hfi_venus.c b/drivers/media/platform/qcom/venus/hfi_venus.c

[PATCH -next] PCI: mobiveil: simplify the return expression of mobiveil_pcie_init_irq_domain

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/pci/controller/mobiveil/pcie-mobiveil-host.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/pci/controller/mobiveil/pcie-mobiveil-host.c b/drivers/pci/controller/mobiveil/pcie-mobiveil

[PATCH -next] scsi: libsas: simplify the return expression of sas_discover_end_dev

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/scsi/libsas/sas_discover.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/scsi/libsas/sas_discover.c b/drivers/scsi/libsas/sas_discover.c index d0f9e90e3279..161c9b387da7 100644

[PATCH -next] clk: mediatek: mt7629: simplify the return expression of mtk_infrasys_init

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/clk/mediatek/clk-mt7629.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt7629.c b/drivers/clk/mediatek/clk-mt7629.c index b73bdf152836..a0ee079670c7 100644

[PATCH -next] omapfb: simplify the return expression of panel_dpi_connect

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c b/drivers/video/fbdev/omap2/omapfb/displays/panel

[PATCH -next] clk: mediatek: mt6797: simplify the return expression of mtk_infrasys_init

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/clk/mediatek/clk-mt6797.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt6797.c b/drivers/clk/mediatek/clk-mt6797.c index f35389a11af1..428eb24ffec5 100644

[PATCH -next] drm/amdgpu/gmc9: simplify the return expression of gmc_v9_0_suspend

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c index 5400cac02087..cb9e9e5afa5a 100644

[PATCH -next] interconnect: simplify the return expression of imx_icc_unregister

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/interconnect/imx/imx.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/interconnect/imx/imx.c b/drivers/interconnect/imx/imx.c index ac420f86008e..40fa22a32a60 100644 --- a/drivers

[PATCH -next] pinctrl: spear: simplify the return expression of spear310_pinctrl_probe

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/pinctrl/spear/pinctrl-spear310.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/pinctrl/spear/pinctrl-spear310.c b/drivers/pinctrl/spear/pinctrl-spear310.c index 393b2b97d527..9d9facc4a6e4

[PATCH -next] rtc: rv8803: simplify the return expression of rv8803_nvram_write

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/rtc/rtc-rv8803.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/rtc/rtc-rv8803.c b/drivers/rtc/rtc-rv8803.c index 93c3a6b627bd..c6d8e3425688 100644 --- a/drivers/rtc/rtc-rv8803.c +++ b

[PATCH -next] sata, highbank: simplify the return expression of ahci_highbank_suspend

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/ata/sata_highbank.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/ata/sata_highbank.c b/drivers/ata/sata_highbank.c index ad3893c62572..64b2ef15ec19 100644 --- a/drivers/ata/sata_highbank.c

[PATCH -next] media: anysee: simplify the return expression of anysee_ci_* function

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/media/usb/dvb-usb-v2/anysee.c | 21 +++-- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/anysee.c b/drivers/media/usb/dvb-usb-v2/anysee.c index 89a1b204b90c

[PATCH -next] drm/amd/pm: simplify the return expression of smu_hw_fini

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c index 5c4b74f964fc

[PATCH -next] mtd: onenand_base: simplify the return expression of onenand_transfer_auto_oob

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/mtd/nand/onenand/onenand_base.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/mtd/nand/onenand/onenand_base.c b/drivers/mtd/nand/onenand/onenand_base.c index ec18ade33262..188b8061e1f7

[PATCH -next] [SCSI] fnic: simplify the return expression of vnic_wq_copy_alloc

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/scsi/fnic/vnic_wq_copy.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/scsi/fnic/vnic_wq_copy.c b/drivers/scsi/fnic/vnic_wq_copy.c index 9eab7e7caf38..7b18635df7e6 100644 --- a/drivers

Re: [PATCH -next] binder: simplify the return expression of binder_mmap

2020-09-21 Thread Liu Shixin
On 2020/9/21 16:08, Christian Brauner wrote: > On Mon, Sep 21, 2020 at 04:24:23PM +0800, Liu Shixin wrote: >> Simplify the return expression. >> >> Signed-off-by: Liu Shixin >> --- > Why not is all I can really say. :) But if this is about simplifying y

[PATCH -next] binder: simplify the return expression of binder_mmap

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/android/binder.c | 18 -- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/drivers/android/binder.c b/drivers/android/binder.c index 37a505c41dec..49c0700816a5 100644 --- a/drivers/android

[PATCH -next] scsi: libsas: simplify the return expression of sas_discover_* functions

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/scsi/libsas/sas_ata.c | 8 +--- drivers/scsi/libsas/sas_discover.c | 8 +--- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/drivers/scsi/libsas/sas_ata.c b/drivers/scsi/libsas/sas_ata.c index

[PATCH -next] scsi: snic: convert to use DEFINE_SEQ_ATTRIBUTE macro

2020-09-15 Thread Liu Shixin
Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code. Signed-off-by: Liu Shixin --- drivers/scsi/snic/snic_debugfs.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/drivers/scsi/snic/snic_debugfs.c b/drivers/scsi/snic/snic_debugfs.c index 2b349365592f

[PATCH -next] cxgb4vf: convert to use DEFINE_SEQ_ATTRIBUTE macro

2020-09-15 Thread Liu Shixin
Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code. Signed-off-by: Liu Shixin --- .../ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 92 +++ 1 file changed, 11 insertions(+), 81 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c b/drivers/net/ethernet

[PATCH -next] s390/diag: convert to use DEFINE_SEQ_ATTRIBUTE macro

2020-09-15 Thread Liu Shixin
Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code. Signed-off-by: Liu Shixin --- arch/s390/kernel/diag.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/arch/s390/kernel/diag.c b/arch/s390/kernel/diag.c index ccba63aaeb47..b8b0cd7b008f 100644 --- a/arch/s390

[PATCH -next] KVM: arm64: vgic-debug: convert to use DEFINE_SEQ_ATTRIBUTE macro

2020-09-15 Thread Liu Shixin
Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code. Signed-off-by: Liu Shixin --- arch/arm64/kvm/vgic/vgic-debug.c | 24 ++-- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/arch/arm64/kvm/vgic/vgic-debug.c b/arch/arm64/kvm/vgic/vgic-debug.c index

[PATCH -next] crypto: qat - convert to use DEFINE_SEQ_ATTRIBUTE macro

2020-09-15 Thread Liu Shixin
Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code. Signed-off-by: Liu Shixin --- drivers/crypto/qat/qat_common/adf_cfg.c | 19 + .../qat/qat_common/adf_transport_debug.c | 42 ++- 2 files changed, 5 insertions(+), 56 deletions(-) diff --git a/drivers/crypto

[PATCH -next] ath5k: convert to use DEFINE_SEQ_ATTRIBUTE macro

2020-09-15 Thread Liu Shixin
Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code. Signed-off-by: Liu Shixin --- drivers/net/wireless/ath/ath5k/debug.c | 25 +++-- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/drivers/net/wireless/ath/ath5k/debug.c b/drivers/net/wireless/ath/ath5k

[PATCH -next] gfs2: convert to use DEFINE_SEQ_ATTRIBUTE macro

2020-09-15 Thread Liu Shixin
Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code. Signed-off-by: Liu Shixin --- fs/gfs2/glock.c | 20 ++-- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index f13b136654ca..15c5c26f6ae7 100644 --- a/fs/gfs2/glock.c +++ b/fs

[PATCH -next] media: saa7164: convert to use DEFINE_SEQ_ATTRIBUTE macro

2020-09-15 Thread Liu Shixin
Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code. Signed-off-by: Liu Shixin --- drivers/media/pci/saa7164/saa7164-core.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/drivers/media/pci/saa7164/saa7164-core.c b/drivers/media/pci/saa7164/saa7164-core.c

[PATCH -next] pwm: convert to use DEFINE_SEQ_ATTRIBUTE macro

2020-09-15 Thread Liu Shixin
Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code. Signed-off-by: Liu Shixin --- drivers/pwm/core.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index 276e939a5684..1f16f5365d3c 100644 --- a/drivers/pwm/core.c

[PATCH -next] PCI: tegra: convert to use DEFINE_SEQ_ATTRIBUTE macro

2020-09-15 Thread Liu Shixin
Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code. Signed-off-by: Liu Shixin --- drivers/pci/controller/pci-tegra.c | 28 +++- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/drivers/pci/controller/pci-tegra.c b/drivers/pci/controller/pci-tegra.c index

[PATCH -next] error-injection: convert to use DEFINE_SEQ_ATTRIBUTE macro

2020-09-15 Thread Liu Shixin
Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code. Signed-off-by: Liu Shixin --- lib/error-inject.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/lib/error-inject.c b/lib/error-inject.c index aa63751c916f..a93103488fdd 100644 --- a/lib/error-inject.c

[PATCH -next] infiniband: ipoib: convert to use DEFINE_SEQ_ATTRIBUTE macro

2020-09-15 Thread Liu Shixin
Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code. Signed-off-by: Liu Shixin --- drivers/infiniband/ulp/ipoib/ipoib_fs.c | 50 ++--- 1 file changed, 4 insertions(+), 46 deletions(-) diff --git a/drivers/infiniband/ulp/ipoib/ipoib_fs.c b/drivers/infiniband/ulp/ipoib

[PATCH -next] powerpc/pseries: convert to use DEFINE_SEQ_ATTRIBUTE macro

2020-09-15 Thread Liu Shixin
Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code. Signed-off-by: Liu Shixin --- arch/powerpc/platforms/pseries/hvCall_inst.c | 23 +++- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/arch/powerpc/platforms/pseries/hvCall_inst.c b/arch/powerpc/platforms

[PATCH -next] dlm: convert to use DEFINE_SEQ_ATTRIBUTE macro

2020-09-15 Thread Liu Shixin
Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code. Signed-off-by: Liu Shixin --- fs/dlm/debug_fs.c | 104 -- 1 file changed, 8 insertions(+), 96 deletions(-) diff --git a/fs/dlm/debug_fs.c b/fs/dlm/debug_fs.c index d6bbccb0ed15..c4d1860b9e41 100644

[PATCH -next] eeprom: ee1004: use module_i2c_driver to simplify the code

2020-09-17 Thread Liu Shixin
Use the module_i2c_driver() macro to make the code smaller and a bit simpler. Signed-off-by: Liu Shixin --- drivers/misc/eeprom/ee1004.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/misc/eeprom/ee1004.c b/drivers/misc/eeprom/ee1004.c index

[PATCH -next] PCI: iproc: use module_bcma_driver to simplify the code

2020-09-17 Thread Liu Shixin
module_bcma_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Liu Shixin --- drivers/pci/controller/pcie-iproc-bcma.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/pci/controller/pcie-iproc-bcma.c b/drivers/pci

[PATCH -next] USB: bcma: use module_bcma_driver to simplify the code

2020-09-17 Thread Liu Shixin
module_bcma_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Liu Shixin --- drivers/usb/host/bcma-hcd.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/usb/host/bcma-hcd.c b/drivers/usb/host/bcma-hcd.c index b1b777f33521

[PATCH -next] usb: appledisplay: use module_usb_driver to simplify the code

2020-09-17 Thread Liu Shixin
module_usb_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Liu Shixin --- drivers/usb/misc/appledisplay.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/usb/misc/appledisplay.c b/drivers/usb/misc/appledisplay.c index

[PATCH -next] w1: ds28e17: use module_w1_family to simplify the code

2020-09-17 Thread Liu Shixin
module_w1_family() makes the code simpler by eliminating boilerplate code. Signed-off-by: Liu Shixin --- drivers/w1/slaves/w1_ds28e17.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers/w1/slaves/w1_ds28e17.c b/drivers/w1/slaves/w1_ds28e17.c index

Re: [PATCH -next] RDMA/mlx5: fix type warning of sizeof in __mlx5_ib_alloc_counters()

2020-09-17 Thread Liu Shixin
2020 at 12:08:10PM +0300, Leon Romanovsky wrote: >>>>> On Thu, Sep 17, 2020 at 05:10:08PM +0800, Liu Shixin wrote: >>>>>> sizeof() when applied to a pointer typed expression should give the >>>>>> size of the pointed data, even if the da

[PATCH] fs/binfmt_elf: free interpreter in load_elf_binary

2020-11-04 Thread Liu Shixin
[<beb519e4>] do_syscall_64+0x56/0xa0 [<9cf54d51>] entry_SYSCALL_64_after_hwframe+0x44/0xa9 Fixes: 0693ffebcfe5 ("fs/binfmt_elf.c: allocate less for static executable") Signed-off-by: Liu Shixin --- fs/binfmt_elf.c | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH v2] fs/binfmt_elf: free interpreter in load_elf_binary

2020-11-04 Thread Liu Shixin
[<beb519e4>] do_syscall_64+0x56/0xa0 [<9cf54d51>] entry_SYSCALL_64_after_hwframe+0x44/0xa9 Fixes: 0693ffebcfe5 ("fs/binfmt_elf.c: allocate less for static executable") Signed-off-by: Liu Shixin --- fs/binfmt_elf.c | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH v3 -next] binder: simplify the return expression of binder_mmap

2020-09-28 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- v3: Add the change description. v2: Get rid of the "ret" and "failure string" variables. v1: Simplify the return expression. --- drivers/android/binder.c | 18 -- 1 file changed, 4 insertions(+), 1

[PATCH] fs/binfmt_elf: free interpreter in load_elf_binary

2020-11-03 Thread Liu Shixin
+0x56/0xa0 [<00009cf54d51>] entry_SYSCALL_64_after_hwframe+0x44/0xa9 Signed-off-by: Liu Shixin --- fs/binfmt_elf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index fa50e8936f5f..e223d798e5d8 100644 --- a/fs/binfmt_elf.c +++ b/

[PATCH] i2c: mlxbf: Fix build error with CONFIG_ACPI disabled

2020-11-02 Thread Liu Shixin
); ^~~ cpu_device_up Signed-off-by: Liu Shixin --- drivers/i2c/busses/i2c-mlxbf.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/i2c/busses/i2c-mlxbf.c b/drivers/i2c/busses/i2c-mlxbf.c index ee59e0da082d..cd8a909431a9 100644 --- a/drivers/i2c/busses/i2c-mlxbf.c +++ b/drivers/i2c

[PATCH -next] mm, page_alloc: avoid page_to_pfn() in move_freepages()

2021-03-23 Thread Liu Shixin
Wang Signed-off-by: Liu Shixin --- mm/page_alloc.c | 28 +--- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index c53fe4fa10bf..ccfaa8158862 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -2425,19 +2425,21 @@ static

Re: [PATCH -next] mm, page_alloc: avoid page_to_pfn() in move_freepages()

2021-03-26 Thread Liu Shixin
was both about 12,000. I think it's probably because I'm using the Sparse Memory Model, so pfn_to_page() is not time-consuming. On 2021/3/23 20:54, Matthew Wilcox wrote: > On Tue, Mar 23, 2021 at 09:12:15PM +0800, Liu Shixin wrote: >> From: Kefeng Wang >> >> The start_pfn an

Re: [PATCH] arm: 9016/2: Make symbol 'tmp_pmd_table' static

2021-03-28 Thread Liu Shixin
I'm sorry for making such a stupid mistake. There was only one patch committed before(5615f69bc209 "ARM: 9016/2: Initialize the mapping of KASan shadow memory"), and I used the same subject by mistake. Thanks for your correction, I will revise the subject and resend it. How about using "arm:

Re: [PATCH -next v2 1/2] mm/debug_vm_pgtable: Move {pmd/pud}_huge_tests out of CONFIG_TRANSPARENT_HUGEPAGE

2021-04-19 Thread Liu Shixin
Thanks for your advice. I will fix these patches and resend them as soon as possilble. On 2021/4/19 11:30, Anshuman Khandual wrote: > > On 4/9/21 9:35 AM, Anshuman Khandual wrote: >> On 4/6/21 10:18 AM, Shixin Liu wrote: >>> v1->v2: >>> Modified the commit message. >> Please avoid change log in

[PATCH -next v3 2/2] mm/debug_vm_pgtable: Remove redundant pfn_{pmd/pte}() and fix one comment mistake

2021-04-19 Thread Liu Shixin
From: Shixin Liu Remove redundant pfn_{pmd/pte}() in {pmd/pte}_advanced_tests() and adjust pfn_pud() in pud_advanced_tests() to make it similar with other two functions. In addition, the branch condition should be CONFIG_TRANSPARENT_HUGEPAGE instead of CONFIG_ARCH_HAS_PTE_DEVMAP. Signed-off-by:

[PATCH -next v3 1/2] mm/debug_vm_pgtable: Move {pmd/pud}_huge_tests out of CONFIG_TRANSPARENT_HUGEPAGE

2021-04-19 Thread Liu Shixin
From: Shixin Liu The functions {pmd/pud}_set_huge and {pmd/pud}_clear_huge are not dependent on THP. Hence move {pmd/pud}_huge_tests out of CONFIG_TRANSPARENT_HUGEPAGE. Signed-off-by: Shixin Liu Reviewed-by: Anshuman Khandual --- v2->v3: Modified the commit message and fix a checkpatch