[PATCH -next] counter: 104-quad-8: Make quad8_ops static

2019-04-26 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/counter/104-quad-8.c:836:26: warning: symbol 'quad8_ops' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/counter/104-quad-8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH -next] lib/vsprintf: Make function pointer_string static

2019-04-26 Thread Yue Haibing
From: YueHaibing Fix sparse warning: lib/vsprintf.c:673:6: warning: symbol 'pointer_string' was not declared. Should it be static? Signed-off-by: YueHaibing --- lib/vsprintf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index

[PATCH -next] crypto: ccree - Make cc_sec_disable static

2019-04-26 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/crypto/ccree/cc_driver.c:37:6: warning: symbol 'cc_sec_disable' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/crypto/ccree/cc_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH -next] iio: dac: ad5758: remove set but not used variable 'dc_dc_mode'

2019-04-26 Thread Yue Haibing
From: YueHaibing Fixes gcc '-Wunused-but-set-variable' warning: drivers/iio/dac/ad5758.c: In function ad5758_write_powerdown: drivers/iio/dac/ad5758.c:585:15: warning: variable dc_dc_mode set but not used [-Wunused-but-set-variable] It is not used any more since commit edde945257e2 ("iio:

[PATCH] HID: logitech-dj: Fix build error without CONFIG_USB_HID

2019-04-25 Thread Yue Haibing
From: YueHaibing During randconfig builds, I occasionally run into an invalid configuration drivers/hid/hid-logitech-dj.o: In function `logi_dj_probe': hid-logitech-dj.c:(.text+0x32dc): undefined reference to `usb_hid_driver' This is because CONFIG_USB_HID is not set, So this patch selects it.

[PATCH v2] soc: imx: Fix build error without CONFIG_SOC_BUS

2019-04-24 Thread Yue Haibing
From: YueHaibing During randconfig builds, I occasionally run into an invalid configuration drivers/soc/imx/soc-imx8.o: In function `imx8_soc_init': soc-imx8.c:(.init.text+0x144): undefined reference to `soc_device_register' while CONFIG_SOC_BUS is not set, the building failed like this. This

[PATCH -next] cgroup: remove set but not used variable 'cgrp'

2019-04-24 Thread Yue Haibing
From: YueHaibing Fixes gcc '-Wunused-but-set-variable' warning: kernel/cgroup/cgroup.c: In function 'cgroup_post_fork': kernel/cgroup/cgroup.c:5946:19: warning: variable 'cgrp' set but not used [-Wunused-but-set-variable] It is never used since introduction in commit 76f969e8948d ("cgroup:

[PATCH] soc: imx: Fix build error without CONFIG_SOC_BUS

2019-04-24 Thread Yue Haibing
From: YueHaibing During randconfig builds, I occasionally run into an invalid configuration drivers/soc/imx/soc-imx8.o: In function `imx8_soc_init': soc-imx8.c:(.init.text+0x144): undefined reference to `soc_device_register' while CONFIG_SOC_BUS is not set, the building failed like this. This

[PATCH] Input: walkera0701 - Fix possible NULL pointer dereference in walkera0701_detach

2019-04-23 Thread Yue Haibing
From: YueHaibing KASAN report this: walkera0701: failed to allocate input device kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: [#1] SMP KASAN PTI CPU: 1 PID: 5324 Comm: syz-executor.0 Tainted: G C

[PATCH -next] agp/uninorth: remove set but not used variable 'size'

2019-04-23 Thread Yue Haibing
From: YueHaibing Fixes gcc '-Wunused-but-set-variable' warning: drivers/char/agp/uninorth-agp.c: In function 'uninorth_create_gatt_tablei': drivers/char/agp/uninorth-agp.c:371:6: warning: variable 'size' set but not used [-Wunused-but-set-variable] drivers/char/agp/frontend.c: In function

[PATCH] PCI: keystone: Fix build error while only CONFIG_PCI_KEYSTONE is set

2019-04-18 Thread Yue Haibing
From: YueHaibing During randconfig builds, I occasionally run into an invalid configuration drivers/pci/controller/dwc/pci-keystone.o: In function `ks_pcie_link_up': pci-keystone.c:(.text+0x90): undefined reference to `__dw_pcie_read_dbi' pci-keystone.c:(.text+0x90): relocation truncated to

[PATCH v3 -next] sched/core: Make some functions static

2019-04-18 Thread Yue Haibing
From: YueHaibing Fix these sparse warnings: kernel/sched/core.c:6577:11: warning: symbol 'min_cfs_quota_period' was not declared. Should it be static? kernel/sched/core.c:6657:5: warning: symbol 'tg_set_cfs_quota' was not declared. Should it be static? kernel/sched/core.c:6670:6:

[PATCH -next] phy: ti: am654-serdes: Make serdes_am654_xlate() static

2019-04-18 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/phy/ti/phy-am654-serdes.c:250:12: warning: symbol 'serdes_am654_xlate' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/phy/ti/phy-am654-serdes.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH v2 -next] sched/core: Make some functions static

2019-04-18 Thread Yue Haibing
From: YueHaibing Fix sparse warnings: kernel/sched/core.c:6524:11: warning: symbol 'min_cfs_quota_period' was not declared. Should it be static? kernel/sched/core.c:6604:5: warning: symbol 'tg_set_cfs_quota' was not declared. Should it be static? kernel/sched/core.c:6617:6: warning: symbol

[PATCH v2 -next] ASoC: Intel: Haswell: Remove set but not used variable 'stage_type'

2019-04-17 Thread Yue Haibing
From: YueHaibing Fixes gcc '-Wunused-but-set-variable' warning: sound/soc/intel/haswell/sst-haswell-ipc.c: In function 'hsw_stream_message': sound/soc/intel/haswell/sst-haswell-ipc.c:669:29: warning: variable 'stage_type' set but not used [-Wunused-but-set-variable] It is never used since

[PATCH] ASoC: Mediatek: MT8183: Fix build err while CONFIG_I2C set to module

2019-04-17 Thread Yue Haibing
From: YueHaibing During randconfig builds, I occasionally run into an invalid configuration WARNING: unmet direct dependencies detected for SND_SOC_TS3A227E Depends on [m]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && I2C [=m] Selected by [y]: -

[PATCH -next] ASoC: Intel: Haswell: Remove set but not used variable 'stage_type'

2019-04-17 Thread Yue Haibing
From: YueHaibing Fixes gcc '-Wunused-but-set-variable' warning: sound/soc/intel/haswell/sst-haswell-ipc.c: In function 'hsw_stream_message': sound/soc/intel/haswell/sst-haswell-ipc.c:669:29: warning: variable 'stage_type' set but not used [-Wunused-but-set-variable] It is never used since

[PATCH -next] ASoC: tlv320aic32x4: Remove set but not used variable 'mclk_rate'

2019-04-17 Thread Yue Haibing
From: YueHaibing Fixes gcc '-Wunused-but-set-variable' warning: sound/soc/codecs/tlv320aic32x4.c: In function 'aic32x4_setup_clocks': sound/soc/codecs/tlv320aic32x4.c:669:16: warning: variable 'mclk_rate' set but not used [-Wunused-but-set-variable] It is not used since introduction in commit

[PATCH -next] staging: most: configfs: Make mdev_link_list static

2019-04-17 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/staging/most/configfs.c:34:18: warning: symbol 'mdev_link_list' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/staging/most/configfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH -next] drm/panfrost: Make panfrost_gem_free_object() static

2019-04-16 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/gpu/drm/panfrost/panfrost_gem.c:17:6: warning: symbol 'panfrost_gem_free_object' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/gpu/drm/panfrost/panfrost_gem.c | 2 +- 1 file changed, 1

[PATCH -next] gpio: pxa: Make two symbols static

2019-04-16 Thread Yue Haibing
From: YueHaibing Fix sparse warnings: drivers/gpio/gpio-pxa.c:580:29: warning: symbol 'pxa_irq_domain_ops' was not declared. Should it be static? drivers/gpio/gpio-pxa.c:819:20: warning: symbol 'pxa_gpio_syscore_ops' was not declared. Should it be static? Reported-by: Hulk Robot

[PATCH -next] ASoC: amd: acp3x: Make acp3x_dai_i2s_ops static

2019-04-16 Thread Yue Haibing
From: YueHaibing Fix sparse warning: sound/soc/amd/raven/acp3x-pcm-dma.c:561:24: warning: symbol 'acp3x_dai_i2s_ops' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- sound/soc/amd/raven/acp3x-pcm-dma.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH -next] ASoC: atmel: tse850: Make some functions static

2019-04-16 Thread Yue Haibing
From: YueHaibing Fix sparse warnings: sound/soc/atmel/tse850-pcm5142.c:120:5: warning: symbol 'tse850_get_mix' was not declared. Should it be static? sound/soc/atmel/tse850-pcm5142.c:132:5: warning: symbol 'tse850_put_mix' was not declared. Should it be static?

[PATCH -next] regulator: Make symbols static

2019-04-16 Thread Yue Haibing
From: YueHaibing Fix sparse warnings: drivers/regulator/stm32-pwr.c:35:5: warning: symbol 'ready_mask_table' was not declared. Should it be static? drivers/regulator/stm32-pwr.c:47:5: warning: symbol 'stm32_pwr_reg_is_ready' was not declared. Should it be static?

[PATCH] configfs: Fix possible use-after-free in configfs_register_group

2019-04-16 Thread Yue Haibing
From: YueHaibing Syzkaller report this: BUG: KASAN: use-after-free in __list_add_valid+0xd4/0xe0 lib/list_debug.c:26 Read of size 8 at addr 8881ef61ae20 by task syz-executor.0/5996 CPU: 1 PID: 5996 Comm: syz-executor.0 Tainted: G C5.0.0+ #5 Hardware name: QEMU Standard PC

[PATCH -next] eventfd: Make eventfd_ida static

2019-04-13 Thread Yue Haibing
From: YueHaibing Fix sparse warning: fs/eventfd.c:26:1: warning: symbol 'eventfd_ida' was not declared. Should it be static? Signed-off-by: YueHaibing --- fs/eventfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/eventfd.c b/fs/eventfd.c index ce8fa15..93b1fa7

[PATCH -next] interconnect: qcom: Make qcs404_rpm static

2019-04-13 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/interconnect/qcom/qcs404.c:27:21: warning: symbol 'qcs404_rpm' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/interconnect/qcom/qcs404.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH -next] ARM: OMAP2+: Make some variables static

2019-04-13 Thread Yue Haibing
From: YueHaibing Fix sparse warnings: arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c:532:25: warning: symbol 'am33xx_gpio_hwmod_class' was not declared. Should it be static? arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c:542:19: warning: symbol 'am33xx_gpio1_hwmod' was not

[PATCH -next] soc: ti: pm33xx: Make two symbols static

2019-04-13 Thread Yue Haibing
From: YueHaibing Fix sparse warnings: drivers/soc/ti/pm33xx.c:144:27: warning: symbol 'rtc_wake_src' was not declared. Should it be static? drivers/soc/ti/pm33xx.c:160:5: warning: symbol 'am33xx_rtc_only_idle' was not declared. Should it be static? Signed-off-by: YueHaibing ---

[PATCH] orangefs: Make some functions static

2019-04-13 Thread Yue Haibing
From: YueHaibing Fix sparse warnings: fs/orangefs/super.c:155:5: warning: symbol 'orangefs_write_inode' was not declared. Should it be static? fs/orangefs/inode.c:387:5: warning: symbol 'orangefs_write_begin' was not declared. Should it be static? fs/orangefs/inode.c:445:5: warning: symbol

[PATCH v3] gpio: merrifield: Fix build err without CONFIG_ACPI

2019-04-12 Thread Yue Haibing
From: YueHaibing When building CONFIG_ACPI is not set gcc warn this: drivers/gpio/gpio-merrifield.c: In function mrfld_gpio_get_pinctrl_dev_name: drivers/gpio/gpio-merrifield.c:388:19: error: dereferencing pointer to incomplete type struct acpi_device put_device(>dev); ^~

[PATCH v2] mtd: nand: Fix build error while CONFIG_MTD_NAND_ECC_SW_BCH is set to module

2019-04-10 Thread Yue Haibing
From: YueHaibing Fix gcc build error while CONFIG_MTD_NAND_ECC_SW_BCH is set to module: drivers/mtd/nand/raw/nand_base.o: In function `nand_cleanup': (.text+0xef6): undefined reference to `nand_bch_free' drivers/mtd/nand/raw/nand_base.o: In function `nand_scan_tail': nand_base.c:(.text+0xa101):

[PATCH -next] PCI: mvebu: Make mvebu_pci_bridge_emul_ops static

2019-04-10 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/pci/controller/pci-mvebu.c:557:28: warning: symbol 'mvebu_pci_bridge_emul_ops' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/pci/controller/pci-mvebu.c | 2 +- 1 file changed, 1

[PATCH -next] memory: tegra: Make terga20_mc_reset_ops static

2019-04-10 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/memory/tegra/tegra20.c:277:33: warning: symbol 'terga20_mc_reset_ops' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/memory/tegra/tegra20.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH -next] mtd: rawnand: ingenic: Make jz4725b_ooblayout_ops static

2019-04-10 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/mtd/nand/raw/ingenic/ingenic_nand.c:140:32: warning: symbol 'jz4725b_ooblayout_ops' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/mtd/nand/raw/ingenic/ingenic_nand.c | 2 +- 1 file changed,

[PATCH] rtc: sirfsoc: Make sysrtc_regmap_config static

2019-04-10 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/rtc/rtc-sirfsoc.c:282:28: warning: symbol 'sysrtc_regmap_config' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/rtc/rtc-sirfsoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] spi: spi-mem: Make spi_mem_default_supports_op() static inline

2019-04-10 Thread Yue Haibing
From: YueHaibing Stub helper spi_mem_default_supports_op() should be set to static inline Signed-off-by: YueHaibing --- include/linux/spi/spi-mem.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/spi/spi-mem.h b/include/linux/spi/spi-mem.h index 1941b84..af9ff2f 100644 ---

[PATCH] mtd: nand: Fix build error while CONFIG_MTD_NAND_ECC_SW_BCH is set to module

2019-04-10 Thread Yue Haibing
From: YueHaibing Fix gcc build error while CONFIG_MTD_NAND_ECC_SW_BCH is set to module: drivers/mtd/nand/raw/nand_base.o: In function `nand_cleanup': (.text+0xef6): undefined reference to `nand_bch_free' drivers/mtd/nand/raw/nand_base.o: In function `nand_scan_tail': nand_base.c:(.text+0xa101):

[PATCH v2] spi: spi-mem: Fix build error without CONFIG_SPI_MEM

2019-04-10 Thread Yue Haibing
From: YueHaibing When building with CONFIG_SPI_MEM is not set gc warns this: drivers/spi/spi-zynq-qspi.o: In function `zynq_qspi_supports_op': spi-zynq-qspi.c:(.text+0x1da): undefined reference to `spi_mem_default_supports_op' Fixes: 67dca5e580f1 ("spi: spi-mem: Add support for Zynq QSPI

[PATCH] iio: adc: ti-ads7950: Fix build error without CONFIG_GPIOLIB

2019-04-10 Thread Yue Haibing
From: YueHaibing When building with CONFIG_GPIOLIB is not set gcc warns this: drivers/iio/adc/ti-ads7950.c:75:19: error: field chip has incomplete type struct gpio_chip chip; ^~~~ drivers/iio/adc/ti-ads7950.c: In function ti_ads7950_set: drivers/iio/adc/ti-ads7950.c:409:32:

[PATCH] lib/Kconfig.debug: Fix build error without CONFIG_BLOCK

2019-04-10 Thread Yue Haibing
From: YueHaibing If CONFIG_TEST_KMOD is set to M, while CONFIG_BLOCK is not set, XFS and BTRFS can not be compiled successly. Reported-by: Hulk Robot Fixes: d9c6a72d6fa2 ("kmod: add test driver to stress test the module loader") Signed-off-by: YueHaibing --- lib/Kconfig.debug | 1 + 1 file

[PATCH] fs/proc/proc_sysctl.c: Fix a NULL pointer dereference

2019-04-09 Thread Yue Haibing
From: YueHaibing Syzkaller report this: sysctl could not get directory: /net//bridge -12 kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: [#1] SMP KASAN PTI CPU: 1 PID: 7027 Comm: syz-executor.0 Tainted: G

[PATCH] spi: spi-mem: Fix build error without CONFIG_SPI_MEM

2019-04-08 Thread Yue Haibing
From: YueHaibing When building with CONFIG_SPI_MEM is not set gc warns this: drivers/spi/spi-zynq-qspi.o: In function `zynq_qspi_supports_op': spi-zynq-qspi.c:(.text+0x1da): undefined reference to `spi_mem_default_supports_op' Fixes: 67dca5e580f1 ("spi: spi-mem: Add support for Zynq QSPI

[PATCH] fmc: Fix possible NULL pointer dereference

2019-04-08 Thread Yue Haibing
From: YueHaibing Syzkaller report this: kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: [#1] SMP KASAN PTI CPU: 0 PID: 3692 Comm: syz-executor.0 Tainted: G C5.0.0+ #5 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS

[PATCH] spi: bcm2835aux: Fix build error without CONFIG_DEBUG_FS

2019-04-06 Thread Yue Haibing
From: YueHaibing When building CONFIG_DEBUG_FS is not set gcc warn this: drivers/spi/spi-bcm2835aux.c: In function bcm2835aux_spi_probe: drivers/spi/spi-bcm2835aux.c:591:2: error: too many arguments to function bcm2835aux_debugfs_create bcm2835aux_debugfs_create(bs, dev_name(>dev));

[PATCH v2] gpio: merrifield: Fix build err without CONFIG_ACPI

2019-04-05 Thread Yue Haibing
From: YueHaibing When building CONFIG_ACPI is not set gcc warn this: drivers/gpio/gpio-merrifield.c: In function mrfld_gpio_get_pinctrl_dev_name: drivers/gpio/gpio-merrifield.c:388:19: error: dereferencing pointer to incomplete type struct acpi_device put_device(>dev); ^

[PATCH v2] extcon: axp288: Add a depends on ACPI to the Kconfig entry

2019-04-04 Thread Yue Haibing
From: YueHaibing As Hans de Goede pointed, using this driver without ACPI makes little sense, so add ACPI dependency to Kconfig entry to fix a build error while CONFIG_ACPI is not set. drivers/extcon/extcon-axp288.c: In function 'axp288_extcon_probe': drivers/extcon/extcon-axp288.c:363:20:

[PATCH -next] mtd: rawnand: ingenic: Add missing MODULE_* information

2019-04-04 Thread Yue Haibing
From: YueHaibing gcc warning this: WARNING: modpost: missing MODULE_LICENSE() in drivers/mtd/nand/raw/ingenic/ingenic_ecc.o Add MODULE_LICENSE,MODULE_AUTHOR and MODULE_DESCRIPTION. Reported-by: Hulk Robot Fixes: 9df5741a577e ("mtd: rawnand: ingenic: Separate top-level and SoC specific

[PATCH] extcon: axp288: Fix build err without CONFIG_ACPI

2019-04-04 Thread Yue Haibing
From: YueHaibing When building CONFIG_ACPI is not set gcc warn this: drivers/extcon/extcon-axp288.c: In function 'axp288_extcon_probe': drivers/extcon/extcon-axp288.c:363:20: error: dereferencing pointer to incomplete type put_device(>dev); Reported-by: Hulk Robot Fixes: 0cf064db948a

[PATCH] gpio: merrifield: Fix build err without CONFIG_ACPI

2019-04-04 Thread Yue Haibing
From: YueHaibing When building CONFIG_ACPI is not set gcc warn this: drivers/gpio/gpio-merrifield.c: In function mrfld_gpio_get_pinctrl_dev_name: drivers/gpio/gpio-merrifield.c:388:19: error: dereferencing pointer to incomplete type struct acpi_device put_device(>dev); ^

[PATCH -next] ibmvnic: remove set but not used variable 'netdev'

2019-04-03 Thread Yue Haibing
From: YueHaibing Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/ethernet/ibm/ibmvnic.c: In function '__ibmvnic_reset': drivers/net/ethernet/ibm/ibmvnic.c:1971:21: warning: variable 'netdev' set but not used [-Wunused-but-set-variable] It's never used since introduction in commit

[PATCH v2] ASoC: Mediatek: MT8183: Fix build error in mt8183_da7219_max98357_dev_probe

2019-04-02 Thread Yue Haibing
From: YueHaibing When building CONFIG_SND_SOC_MT8183_DA7219_MAX98357A=m gcc warn this: sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c: In function mt8183_da7219_max98357_dev_probe: sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c:413:13: error: struct snd_soc_dai_link has no member

[PATCH] ASoC: Mediatek: MT8183: Fix build error in mt8183_da7219_max98357_dev_probe

2019-04-02 Thread Yue Haibing
From: YueHaibing When building CONFIG_SND_SOC_MT8183_DA7219_MAX98357A=m gcc warn this: sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c: In function mt8183_mt6358_ts3a227_max98357_dev_probe: sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c:325:13: error: struct

[PATCH -next] clocksource: mips-gic-timer: Make gic_compare_irqaction static

2019-03-22 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/clocksource/mips-gic-timer.c:70:18: warning: symbol 'gic_compare_irqaction' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/clocksource/mips-gic-timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH -next] clocksource: timer-ti-dm: Make omap_dm_timer_set_load_start static

2019-03-22 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/clocksource/timer-ti-dm.c:589:5: warning: symbol 'omap_dm_timer_set_load_start' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/clocksource/timer-ti-dm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH -next] clocksource: tcb_clksrc: Make tc_clksrc_suspend and tc_clksrc_resume static

2019-03-22 Thread Yue Haibing
From: YueHaibing Fix sparse warnings: drivers/clocksource/tcb_clksrc.c:74:6: warning: symbol 'tc_clksrc_suspend' was not declared. Should it be static? drivers/clocksource/tcb_clksrc.c:89:6: warning: symbol 'tc_clksrc_resume' was not declared. Should it be static? Signed-off-by: YueHaibing

[PATCH -next] clocksource: clps711x: Make clps711x_clksrc_init static

2019-03-22 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/clocksource/clps711x-timer.c:96:13: warning: symbol 'clps711x_clksrc_init' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/clocksource/clps711x-timer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff

[PATCH -next] sched/core: Make some functions static

2019-03-22 Thread Yue Haibing
From: YueHaibing Fix sparse warnings: kernel/sched/core.c:6576:11: warning: symbol 'max_cfs_quota_period' was not declared. Should it be static? kernel/sched/core.c:6577:11: warning: symbol 'min_cfs_quota_period' was not declared. Should it be static? kernel/sched/core.c:6657:5: warning:

[PATCH -next] sched/fair: Make some functions static

2019-03-22 Thread Yue Haibing
From: YueHaibing Fix sparse warnings: kernel/sched/fair.c:2596:6: warning: symbol 'task_tick_numa' was not declared. Should it be static? kernel/sched/fair.c:3570:6: warning: symbol 'sync_entity_load_avg' was not declared. Should it be static? kernel/sched/fair.c:3583:6: warning: symbol

[PATCH -next] rcu/tree: Make rcu_check_gp_start_stall static

2019-03-22 Thread Yue Haibing
From: YueHaibing Fix sparse warning: kernel/rcu/tree.c:2643:1: warning: symbol 'rcu_check_gp_start_stall' was not declared. Should it be static? Signed-off-by: YueHaibing --- kernel/rcu/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/rcu/tree.c

[PATCH -next] mmc: sdhci-omap: Make sdhci_omap_reset static

2019-03-22 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/mmc/host/sdhci-omap.c:788:6: warning: symbol 'sdhci_omap_reset' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/mmc/host/sdhci-omap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH -next] mfd: stpmic1: Make stpmic1_regmap_config static

2019-03-22 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/mfd/stpmic1.c:62:28: warning: symbol 'stpmic1_regmap_config' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/mfd/stpmic1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/stpmic1.c

[PATCH -next] selinux: Make selinux_kernfs_init_security static

2019-03-22 Thread Yue Haibing
From: YueHaibing Fix sparse warning: security/selinux/hooks.c:3389:5: warning: symbol 'selinux_kernfs_init_security' was not declared. Should it be static? Signed-off-by: YueHaibing --- security/selinux/hooks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH -next] uio: uio_fsl_elbc_gpcm: Make dev_attr_reg_br and dev_attr_reg_or static

2019-03-21 Thread Yue Haibing
From: YueHaibing Fix sparse warnings: drivers/uio/uio_fsl_elbc_gpcm.c:71:1: warning: symbol 'dev_attr_reg_br' was not declared. Should it be static? drivers/uio/uio_fsl_elbc_gpcm.c:72:1: warning: symbol 'dev_attr_reg_or' was not declared. Should it be static? Signed-off-by: YueHaibing ---

[PATCH -next] coresight: catu: Make catu_helper_ops and catu_ops static

2019-03-21 Thread Yue Haibing
From: YueHaibing Fix sparse warnings: drivers/hwtracing/coresight/coresight-catu.c:488:35: warning: symbol 'catu_helper_ops' was not declared. Should it be static? drivers/hwtracing/coresight/coresight-catu.c:493:28: warning: symbol 'catu_ops' was not declared. Should it be static?

[PATCH -next] spi: atmel-quadspi: Make atmel_qspi_get_name static

2019-03-21 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/spi/atmel-quadspi.c:369:12: warning: symbol 'atmel_qspi_get_name' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/spi/atmel-quadspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH -next] irqchip/irq-mvebu-sei: Make mvebu_sei_ap806_caps static

2019-03-21 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/irqchip/irq-mvebu-sei.c:481:23: warning: symbol 'mvebu_sei_ap806_caps' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/irqchip/irq-mvebu-sei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH -next] pinctrl: artpec6: Make two functions static

2019-03-21 Thread Yue Haibing
From: YueHaibing Fix sparse warnings: drivers/pinctrl/pinctrl-artpec6.c:691:5: warning: symbol 'artpec6_pmx_enable' was not declared. Should it be static? drivers/pinctrl/pinctrl-artpec6.c:705:6: warning: symbol 'artpec6_pmx_disable' was not declared. Should it be static? Signed-off-by:

[PATCH] parport_cs: Fix memory leak in parport_config

2019-03-21 Thread Yue Haibing
From: YueHaibing parport_probe() alloc parport device 'info', but while parport_config failed it does not free it. Signed-off-by: YueHaibing --- drivers/parport/parport_cs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/parport/parport_cs.c

[PATCH v2 2/2] perf cs-etm: return errcode in cs_etm__process_auxtrace_info()

2019-03-20 Thread Yue Haibing
From: YueHaibing 'err' is set in err path, but it's not returned to callers. Don't always return -EINVAL, return err. Fixes: cd8bfd8c973e ("perf tools: Add processing of coresight metadata") Signed-off-by: YueHaibing --- tools/perf/util/cs-etm.c | 10 +++--- 1 file changed, 7

[PATCH v2 1/2] perf cs-etm: Remove errnoeous ERR_PTR() usage in cs_etm__process_auxtrace_info

2019-03-20 Thread Yue Haibing
From: YueHaibing intlist__findnew() doesn't uses ERR_PTR() as a return mechanism so its callers shouldn't try to extract the error using PTR_ERR( ret) from intlist__findnew(), make cs_etm__process_auxtrace_info return -ENOMEM instead. Fixes: cd8bfd8c973e ("perf tools: Add processing of

[PATCH v2 0/2] minor fixes for perf cs-etm

2019-03-20 Thread Yue Haibing
From: YueHaibing v2: - patch 1 fix commilt log - patch 2 use correct Fixes tag This patch series fixes two issue: 1. fix pass-zero-to-ERR_PTR warning 2. return correct errcode to upstream callers YueHaibing (2): perf cs-etm: Remove errnoeous ERR_PTR() usage in in

[PATCH v2 -next] ASoC: wm_adsp: Make some variables static

2019-03-20 Thread Yue Haibing
From: YueHaibing Fix sparse warnings: sound/soc/codecs/wm_adsp.c:309:20: warning: symbol 'wm_adsp1_ops' was not declared. Should it be static? sound/soc/codecs/wm_adsp.c:310:20: warning: symbol 'wm_adsp2_ops' was not declared. Should it be static? sound/soc/codecs/wm_adsp.c:311:20: warning:

[PATCH -next] ASoC: wm_adsp: Make some variables static

2019-03-20 Thread Yue Haibing
From: YueHaibing Fix sparse warnings: sound/soc/codecs/wm_adsp.c:309:20: warning: symbol 'wm_adsp1_ops' was not declared. Should it be static? sound/soc/codecs/wm_adsp.c:310:20: warning: symbol 'wm_adsp2_ops' was not declared. Should it be static? sound/soc/codecs/wm_adsp.c:311:20: warning:

[PATCH -next] irqchip/brcmstb-l2: Make two init functions static

2019-03-20 Thread Yue Haibing
From: YueHaibing Fix sparse warnings: drivers/irqchip/irq-brcmstb-l2.c:278:12: warning: symbol 'brcmstb_l2_edge_intc_of_init' was not declared. Should it be static? drivers/irqchip/irq-brcmstb-l2.c:285:12: warning: symbol 'brcmstb_l2_lvl_intc_of_init' was not declared. Should it be static?

[PATCH -next] ntb: intel: Make intel_ntb3_peer_db_addr static

2019-03-20 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/ntb/hw/intel/ntb_hw_gen3.c:535:5: warning: symbol 'intel_ntb3_peer_db_addr' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/ntb/hw/intel/ntb_hw_gen3.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[PATCH -next] pinctrl: fsl: Make pinctrl_ipc_handle static

2019-03-20 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/pinctrl/freescale/pinctrl-scu.c:38:19: warning: symbol 'pinctrl_ipc_handle' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/pinctrl/freescale/pinctrl-scu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH -next] ubifs: remove unused function __ubifs_shash_final

2019-03-20 Thread Yue Haibing
From: YueHaibing There is no callers in tree, and can be removed. Signed-off-by: YueHaibing --- fs/ubifs/auth.c | 18 -- 1 file changed, 18 deletions(-) diff --git a/fs/ubifs/auth.c b/fs/ubifs/auth.c index 5bf5fd0..2a40ccce 100644 --- a/fs/ubifs/auth.c +++ b/fs/ubifs/auth.c

[PATCH -next] proc/kcore: Make kcore_modules static

2019-03-20 Thread Yue Haibing
From: YueHaibing Fix sparse warning: fs/proc/kcore.c:591:19: warning: symbol 'kcore_modules' was not declared. Should it be static? Signed-off-by: YueHaibing --- fs/proc/kcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/proc/kcore.c b/fs/proc/kcore.c index

[PATCH -next] RDMA/hns: Make hns_roce_cmq_send static

2019-03-20 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/infiniband/hw/hns/hns_roce_hw_v2.c:1089:5: warning: symbol 'hns_roce_cmq_send' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH -next] watchdog: sb_wdog: Make sbwdog_set and sbwdog_pet static

2019-03-20 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/watchdog/sb_wdog.c:70:6: warning: symbol 'sbwdog_set' was not declared. Should it be static? drivers/watchdog/sb_wdog.c:84:6: warning: symbol 'sbwdog_pet' was not declared. Should it be static? Signed-off-by: YueHaibing ---

[PATCH -next] irqchip/mmp: Make mmp_irq_domain_ops static

2019-03-20 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/irqchip/irq-mmp.c:182:29: warning: symbol 'mmp_irq_domain_ops' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/irqchip/irq-mmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH -next] sched/fair: Make sync_entity_load_avg and remove_entity_load_avg static

2019-03-20 Thread Yue Haibing
From: YueHaibing Fix sparse warnigs: kernel/sched/fair.c:3570:6: warning: symbol 'sync_entity_load_avg' was not declared. Should it be static? kernel/sched/fair.c:3583:6: warning: symbol 'remove_entity_load_avg' was not declared. Should it be static? Signed-off-by: YueHaibing ---

[PATCH 0/2] minor fixes for perf cs-etm

2019-03-20 Thread Yue Haibing
From: YueHaibing This patch series fixes two issue: 1. fix pass-zero-to-ERR_PTR warning 2. return correct errcode to upstream callers YueHaibing (2): perf cs-etm: Remove errnoeous ERR_PTR() usage in in cs_etm__process_auxtrace_info perf cs-etm: return errcode in

[PATCH 1/2] perf cs-etm: Remove errnoeous ERR_PTR() usage in in cs_etm__process_auxtrace_info

2019-03-20 Thread Yue Haibing
From: YueHaibing intlist__findnew() doesn't uses ERR_PTR() as a return mechanism so its callers shouldn't try to extract the error using PTR_ERR(ret-from-intlist__findnew()), make cs_etm__process_auxtrace_info9) return -ENOMEM instead. Fixes: cd8bfd8c973e ("perf tools: Add processing of

[PATCH 2/2] perf cs-etm: return errcode in cs_etm__process_auxtrace_info()

2019-03-20 Thread Yue Haibing
From: YueHaibing Make sure 'err' is set in every err path, and returned it to callers intead of -EINVAL. Fixes: cd8bfd8c973e ("perf tools: Add processing of coresight metadata") Signed-off-by: YueHaibing --- tools/perf/util/cs-etm.c | 10 +++--- 1 file changed, 7 insertions(+), 3

[PATCH -next] clk: tegra: Make tegra_clk_super_mux_ops static

2019-03-19 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/clk/tegra/clk-super.c:124:22: warning: symbol 'tegra_clk_super_mux_ops' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/clk/tegra/clk-super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH -next] phy: tegra: xusb: Make two functions static

2019-03-19 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/phy/tegra/xusb-tegra186.c:250:6: warning: symbol 'tegra_phy_xusb_utmi_pad_power_on' was not declared. Should it be static? drivers/phy/tegra/xusb-tegra186.c:281:6: warning: symbol 'tegra_phy_xusb_utmi_pad_power_down' was not declared. Should it be

[PATCH -next] phy: rockchip-typec: Make usb3_pll_cfg and dp_pll_cfg static

2019-03-19 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/phy/rockchip/phy-rockchip-typec.c:403:16: warning: symbol 'usb3_pll_cfg' was not declared. Should it be static? drivers/phy/rockchip/phy-rockchip-typec.c:420:16: warning: symbol 'dp_pll_cfg' was not declared. Should it be static? Signed-off-by:

[PATCH -next] phy: qcom-ufs: Make ufs_qcom_phy_disable_iface_clk static

2019-03-19 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/phy/qualcomm/phy-qcom-ufs.c:462:6: warning: symbol 'ufs_qcom_phy_disable_iface_clk' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/phy/qualcomm/phy-qcom-ufs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH -next] rtc: opal: Make opal_tpo_alarm_irq_enable static

2019-03-19 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/rtc/rtc-opal.c:227:5: warning: symbol 'opal_tpo_alarm_irq_enable' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/rtc/rtc-opal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH -next] regulator: of: Make regulator_of_get_init_node static

2019-03-19 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/regulator/of_regulator.c:374:20: warning: symbol 'regulator_of_get_init_node' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/regulator/of_regulator.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff

[PATCH -next] drivers: base: swnode: Make two functions static

2019-03-19 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/base/swnode.c:475:22: warning: symbol 'software_node_get_parent' was not declared. Should it be static? drivers/base/swnode.c:484:22: warning: symbol 'software_node_get_next_child' was not declared. Should it be static? Signed-off-by: YueHaibing

[PATCH -next] serial: 8250_fintek: Make fintek_8250_set_termios static

2019-03-19 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/tty/serial/8250/8250_fintek.c:306:6: warning: symbol 'fintek_8250_set_termios' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/tty/serial/8250/8250_fintek.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)

[PATCH net-next] igc: Make igc_write_rss_indir_tbl static

2019-03-19 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/net/ethernet/intel/igc/igc_ethtool.c:646:6: warning: symbol 'igc_write_rss_indir_tbl' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/net/ethernet/intel/igc/igc_ethtool.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH net-next] ibmveth: Make array ibmveth_stats static

2019-03-19 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/net/ethernet/ibm/ibmveth.c:96:21: warning: symbol 'ibmveth_stats' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/net/ethernet/ibm/ibmveth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH -next] crypto: ccp - Make ccp_register_rsa_alg static

2019-03-19 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/crypto/ccp/ccp-crypto-rsa.c:251:5: warning: symbol 'ccp_register_rsa_alg' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/crypto/ccp/ccp-crypto-rsa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH -next] crypto: cavium - remove unused fucntions

2019-03-19 Thread Yue Haibing
From: YueHaibing cptvf_mbox_send_ack and cptvf_mbox_send_nack are never used since introdution in commit c694b233295b ("crypto: cavium - Add the Virtual Function driver for CPT") Signed-off-by: YueHaibing --- drivers/crypto/cavium/cpt/cptvf_mbox.c | 17 - 1 file changed, 17

[PATCH] perf tools: return errcode in cs_etm__process_auxtrace_info

2019-03-14 Thread Yue Haibing
From: YueHaibing 'err' is set in err path, but it's not returned to callers. Also fix a pass zero to PTR_ERR issue. Fixes: cd8bfd8c973e ("perf tools: Add processing of coresight metadata") Signed-off-by: YueHaibing --- tools/perf/util/cs-etm.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH] ARM: dma-mapping: always clear allocated buffers in __alloc_from_pool

2019-03-12 Thread Yue Haibing
From: YueHaibing Like commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*"), if we want to map memory from the DMA allocator to userspace it must be zeroed at allocation time to prevent stale data leaks. On arm platform, if the allocator is pool_allocator in __dma_alloc,

  1   2   >