[linux-next:master 2172/13311] dm9000.c:undefined reference to `iounmap'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 9317f948b0b188b8d2fded75957e6d42c460df1b
commit: 1bcb32c765401b0c2323a1df720e71dfad487f85 [2172/13311] drivers: net: davicom Add COMPILE_TEST support
config: s390-randconfig-r032-20201215 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 1bcb32c765401b0c2323a1df720e71dfad487f85
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the linux-next/master HEAD 9317f948b0b188b8d2fded75957e6d42c460df1b builds fine.
It may have been fixed somewhere.
All errors (new ones prefixed by >>):
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for MFD_SYSCON
Depends on HAS_IOMEM
Selected by
- BT1_AXI && (MIPS_BAIKAL_T1 || COMPILE_TEST
- MTD_NAND_STM32_FMC2 && MTD && MTD_RAW_NAND && (MACH_STM32MP157 || COMPILE_TEST
- MTD_NAND_MESON && MTD && MTD_RAW_NAND && (ARCH_MESON || COMPILE_TEST
- ARMADA_37XX_WATCHDOG && WATCHDOG && (ARCH_MVEBU || COMPILE_TEST
- EXYNOS_CHIPID && SOC_SAMSUNG && (ARCH_EXYNOS || COMPILE_TEST
- BT1_L2_CTL && MEMORY && (MIPS_BAIKAL_T1 || COMPILE_TEST
- STM32_FMC2_EBI && MEMORY && (MACH_STM32MP157 || COMPILE_TEST
- PHY_HISI_INNO_USB2 && (ARCH_HISI && ARM64 || COMPILE_TEST
- PHY_DA8XX_USB && (ARCH_DAVINCI_DA8XX || COMPILE_TEST
s390-linux-ld: drivers/irqchip/irq-renesas-intc-irqpin.o: in function `intc_irqpin_probe':
irq-renesas-intc-irqpin.c:(.text+0x70c): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/irqchip/irq-imx-irqsteer.o: in function `imx_irqsteer_probe':
irq-imx-irqsteer.c:(.text+0xc0): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/irqchip/irq-imx-intmux.o: in function `imx_intmux_probe':
irq-imx-intmux.c:(.text+0x2e0): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/bus/bt1-axi.o: in function `bt1_axi_probe':
bt1-axi.c:(.text+0x2fa): undefined reference to `devm_platform_ioremap_resource_byname'
s390-linux-ld: drivers/phy/broadcom/phy-bcm63xx-usbh.o: in function `bcm63xx_usbh_phy_probe':
phy-bcm63xx-usbh.c:(.init.text+0x6a): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/phy/hisilicon/phy-hisi-inno-usb2.o: in function `hisi_inno_phy_probe':
phy-hisi-inno-usb2.c:(.text+0x9c): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/phy/marvell/phy-mmp3-usb.o: in function `mmp3_usb_phy_probe':
phy-mmp3-usb.c:(.text+0xb6): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/phy/marvell/phy-pxa-usb.o: in function `pxa_usb_phy_probe':
phy-pxa-usb.c:(.text+0x374): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/phy/renesas/phy-rcar-gen3-usb3.o: in function `rcar_gen3_phy_usb3_probe':
phy-rcar-gen3-usb3.c:(.text+0x1b0): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/phy/tegra/phy-tegra194-p2u.o: in function `tegra_p2u_probe':
phy-tegra194-p2u.c:(.text+0x100): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/phy/xilinx/phy-zynqmp.o: in function `xpsgtr_probe':
phy-zynqmp.c:(.text+0x326): undefined reference to `devm_platform_ioremap_resource_byname'
s390-linux-ld: phy-zynqmp.c:(.text+0x350): undefined reference to `devm_platform_ioremap_resource_byname'
s390-linux-ld: drivers/soc/mediatek/mtk-mmsys.o: in function `mtk_mmsys_probe':
mtk-mmsys.c:(.text+0x36e): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/soc/amlogic/meson-clk-measure.o: in function `meson_msr_probe':
meson-clk-measure.c:(.text+0x442): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/soc/qcom/llcc-qcom.o: in function `qcom_llcc_init_mmio':
llcc-qcom.c:(.text+0x27a): undefined reference to `devm_platform_ioremap_resource_byname'
s390-linux-ld: drivers/regulator/stm32-vrefbuf.o: in function `stm32_vrefbuf_probe':
stm32-vrefbuf.c:(.text+0x2a0): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/reset/reset-ath79.o: in function `ath79_reset_probe':
reset-ath79.c:(.text+0xcc): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-axs10x.o: in function `axs10x_reset_probe':
reset-axs10x.c:(.text+0xbe): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-lpc18xx.o: in function `lpc18xx_rgu_probe':
reset-lpc18xx.c:(.text+0x216): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-meson.o: in function `meson_reset_probe':
reset-meson.c:(.text+0x52): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-npcm.o: in function `npcm_rc_probe':
reset-npcm.c:(.text+0xf4): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/reset/reset-qcom-pdc.o: in function `qcom_pdc_reset_probe':
reset-qcom-pdc.c:(.text+0x126): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-simple.o: in function `reset_simple_probe':
reset-simple.c:(.text+0x19a): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-stm32mp1.o: in function `stm32_reset_probe':
reset-stm32mp1.c:(.text+0xca): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/char/hw_random/mtk-rng.o: in function `mtk_rng_probe':
mtk-rng.c:(.text+0x21e): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/char/hw_random/ks-sa-rng.o: in function `ks_sa_rng_probe':
ks-sa-rng.c:(.text+0x2d2): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/mfd/syscon.o: in function `syscon_probe':
syscon.c:(.text+0xb0): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/mtd/nand/raw/mxic_nand.o: in function `mxic_nfc_probe':
mxic_nand.c:(.text+0x586): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/net/mdio/mdio-moxart.o: in function `moxart_mdio_probe':
mdio-moxart.c:(.text+0x18a): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/net/mdio/mdio-sun4i.o: in function `sun4i_mdio_probe':
mdio-sun4i.c:(.text+0x278): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/net/ethernet/davicom/dm9000.o: in function `dm9000_release_board.isra.0':
>> dm9000.c:(.text+0xc12): undefined reference to `iounmap'
>> s390-linux-ld: dm9000.c:(.text+0xc1e): undefined reference to `iounmap'
s390-linux-ld: drivers/net/ethernet/davicom/dm9000.o: in function `dm9000_probe':
>> dm9000.c:(.text+0x1b14): undefined reference to `ioremap'
>> s390-linux-ld: dm9000.c:(.text+0x1b88): undefined reference to `ioremap'
s390-linux-ld: drivers/net/ethernet/freescale/fec_main.o: in function `fec_probe':
fec_main.c:(.text+0x437e): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/net/ethernet/freescale/fsl_pq_mdio.o: in function `fsl_pq_mdio_remove':
fsl_pq_mdio.c:(.text+0x54): undefined reference to `iounmap'
s390-linux-ld: drivers/net/ethernet/freescale/gianfar.o: in function `unmap_group_regs':
gianfar.c:(.text+0x2dc): undefined reference to `iounmap'
s390-linux-ld: gianfar.c:(.text+0x2f8): undefined reference to `iounmap'
s390-linux-ld: drivers/net/ethernet/freescale/fman/fman_muram.o: in function `fman_muram_init':
fman_muram.c:(.text+0x7e): undefined reference to `ioremap'
s390-linux-ld: fman_muram.c:(.text+0xba): undefined reference to `iounmap'
s390-linux-ld: drivers/net/ethernet/renesas/sh_eth.o: in function `sh_eth_drv_probe':
sh_eth.c:(.text+0x2c26): undefined reference to `devm_ioremap_resource'
s390-linux-ld: sh_eth.c:(.text+0x2f92): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/input/keyboard/ep93xx_keypad.o: in function `ep93xx_keypad_remove':
ep93xx_keypad.c:(.text+0xd4): undefined reference to `iounmap'
s390-linux-ld: drivers/input/keyboard/ep93xx_keypad.o: in function `ep93xx_keypad_probe':
ep93xx_keypad.c:(.text+0x226): undefined reference to `ioremap'
s390-linux-ld: ep93xx_keypad.c:(.text+0x35e): undefined reference to `iounmap'
s390-linux-ld: drivers/input/keyboard/goldfish_events.o: in function `events_probe':
goldfish_events.c:(.text+0x172): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/input/keyboard/sh_keysc.o: in function `sh_keysc_remove':
sh_keysc.c:(.text+0xbc): undefined reference to `iounmap'
s390-linux-ld: drivers/input/keyboard/sh_keysc.o: in function `sh_keysc_probe':
sh_keysc.c:(.text+0x1f2): undefined reference to `ioremap'
s390-linux-ld: sh_keysc.c:(.text+0x360): undefined reference to `iounmap'
s390-linux-ld: drivers/input/keyboard/st-keyscan.o: in function `keyscan_probe':
st-keyscan.c:(.text+0x270): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/media/rc/meson-ir.o: in function `meson_ir_probe':
meson-ir.c:(.text+0x1fe): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/media/rc/img-ir/img-ir-core.o: in function `img_ir_probe':
img-ir-core.c:(.text+0x208): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/media/rc/mtk-cir.o: in function `mtk_ir_probe':
mtk-cir.c:(.text+0x2ae): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/media/rc/zx-irdec.o: in function `zx_irdec_probe':
zx-irdec.c:(.text+0xd6): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/media/rc/tango-ir.o: in function `tango_ir_probe':
tango-ir.c:(.text+0x2b8): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: tango-ir.c:(.text+0x306): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/media/cec/platform/s5p/s5p_cec.o: in function `s5p_cec_probe':
s5p_cec.c:(.text+0x3b0): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/media/cec/platform/sti/stih-cec.o: in function `stih_cec_probe':
stih-cec.c:(.text+0x25c): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/thermal/k3_bandgap.o: in function `k3_bandgap_probe':
k3_bandgap.c:(.text+0x66): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/thermal/broadcom/ns-thermal.o: in function `ns_thermal_remove':
ns-thermal.c:(.text+0x24): undefined reference to `iounmap'
s390-linux-ld: drivers/thermal/broadcom/sr-thermal.o: in function `sr_thermal_probe':
sr-thermal.c:(.text+0x74): undefined reference to `devm_memremap'
s390-linux-ld: drivers/thermal/tango_thermal.o: in function `tango_thermal_probe':
tango_thermal.c:(.text+0x56): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/thermal/zx2967_thermal.o: in function `zx2967_thermal_probe':
zx2967_thermal.c:(.text+0xa6): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/watchdog/armada_37xx_wdt.o: in function `armada_37xx_wdt_probe':
armada_37xx_wdt.c:(.text+0x26a): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/watchdog/at91sam9_wdt.o: in function `at91wdt_probe':
at91sam9_wdt.c:(.init.text+0xa4): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/watchdog/omap_wdt.o: in function `omap_wdt_probe':
omap_wdt.c:(.text+0x408): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/watchdog/s3c2410_wdt.o: in function `s3c2410wdt_probe':
s3c2410_wdt.c:(.text+0x51c): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/watchdog/sama5d4_wdt.o: in function `sama5d4_wdt_probe':
sama5d4_wdt.c:(.text+0x3da): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/watchdog/ep93xx_wdt.o: in function `ep93xx_wdt_probe':
ep93xx_wdt.c:(.text+0xa4): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/watchdog/pnx4008_wdt.o:pnx4008_wdt.c:(.text+0x20e): more undefined references to `devm_platform_ioremap_resource' follow
s390-linux-ld: drivers/watchdog/sc520_wdt.o: in function `sc520_wdt_unload':
sc520_wdt.c:(.exit.text+0x50): undefined reference to `iounmap'
s390-linux-ld: drivers/watchdog/sc520_wdt.o: in function `sc520_wdt_init':
sc520_wdt.c:(.init.text+0x42): undefined reference to `ioremap'
s390-linux-ld: sc520_wdt.c:(.init.text+0x8e): undefined reference to `iounmap'
s390-linux-ld: drivers/watchdog/mv64x60_wdt.o: in function `mv64x60_wdt_probe':
mv64x60_wdt.c:(.text+0x2f2): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/leds/leds-cobalt-qube.o: in function `cobalt_qube_led_probe':
leds-cobalt-qube.c:(.text+0x78): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/leds/leds-cobalt-raq.o: in function `cobalt_raq_led_probe':
leds-cobalt-raq.c:(.text+0x130): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/leds/leds-ip30.o: in function `ip30led_create':
leds-ip30.c:(.text+0x70): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/crypto/atmel-aes.o: in function `atmel_aes_probe':
atmel-aes.c:(.text+0xcfa): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/crypto/atmel-sha.o: in function `atmel_sha_probe':
atmel-sha.c:(.text+0x2006): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/crypto/atmel-tdes.o: in function `atmel_tdes_probe':
atmel-tdes.c:(.text+0xd50): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/crypto/img-hash.o: in function `img_hash_probe':
img-hash.c:(.text+0xe54): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: img-hash.c:(.text+0xe92): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/crypto/mediatek/mtk-platform.o: in function `mtk_crypto_probe':
mtk-platform.c:(.text+0x73c): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/crypto/qcom-rng.o: in function `qcom_rng_probe':
qcom-rng.c:(.text+0x21c): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/crypto/sa2ul.o: in function `sa_ul_probe':
sa2ul.c:(.text+0xbe2): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_init':
timer-of.c:(.init.text+0x128): undefined reference to `iounmap'
s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_cleanup':
timer-of.c:(.init.text+0x1b0): undefined reference to `iounmap'
s390-linux-ld: drivers/clocksource/timer-davinci.o: in function `davinci_timer_register':
timer-davinci.c:(.init.text+0x7c): undefined reference to `ioremap'
s390-linux-ld: drivers/devfreq/event/exynos-ppmu.o: in function `exynos_ppmu_probe':
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[radeon-alex:amd-20.45 1953/2427] drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dce60/dce60_clk_mgr.c:83:5: warning: no previous prototype for function 'dce60_get_dp_ref_freq_khz'
by kernel test robot
tree: git://people.freedesktop.org/~agd5f/linux.git amd-20.45
head: a3950d94b046fb206e58fd3ec717f071c0203ba3
commit: e809646e73921328d66a2fbfddf067b9cdb30998 [1953/2427] drm/amd/display: enable SI support in the Kconfig (v2)
config: x86_64-randconfig-a001-20201214 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project a29ecca7819a6ed4250d3689b12b1f664bb790d7)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex amd-20.45
git checkout e809646e73921328d66a2fbfddf067b9cdb30998
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dce60/dce60_clk_mgr.c:83:5: warning: no previous prototype for function 'dce60_get_dp_ref_freq_khz' [-Wmissing-prototypes]
int dce60_get_dp_ref_freq_khz(struct clk_mgr *clk_mgr_base)
^
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dce60/dce60_clk_mgr.c:83:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int dce60_get_dp_ref_freq_khz(struct clk_mgr *clk_mgr_base)
^
static
1 warning generated.
vim +/dce60_get_dp_ref_freq_khz +83 drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dce60/dce60_clk_mgr.c
2428ad5c6ece1a6 Mauro Rossi 2020-07-11 82
2428ad5c6ece1a6 Mauro Rossi 2020-07-11 @83 int dce60_get_dp_ref_freq_khz(struct clk_mgr *clk_mgr_base)
2428ad5c6ece1a6 Mauro Rossi 2020-07-11 84 {
2428ad5c6ece1a6 Mauro Rossi 2020-07-11 85 struct clk_mgr_internal *clk_mgr = TO_CLK_MGR_INTERNAL(clk_mgr_base);
2428ad5c6ece1a6 Mauro Rossi 2020-07-11 86 int dprefclk_wdivider;
2428ad5c6ece1a6 Mauro Rossi 2020-07-11 87 int dp_ref_clk_khz;
2428ad5c6ece1a6 Mauro Rossi 2020-07-11 88 int target_div;
2428ad5c6ece1a6 Mauro Rossi 2020-07-11 89
2428ad5c6ece1a6 Mauro Rossi 2020-07-11 90 /* DCE6 has no DPREFCLK_CNTL to read DP Reference Clock source */
2428ad5c6ece1a6 Mauro Rossi 2020-07-11 91
2428ad5c6ece1a6 Mauro Rossi 2020-07-11 92 /* Read the mmDENTIST_DISPCLK_CNTL to get the currently
2428ad5c6ece1a6 Mauro Rossi 2020-07-11 93 * programmed DID DENTIST_DPREFCLK_WDIVIDER*/
2428ad5c6ece1a6 Mauro Rossi 2020-07-11 94 REG_GET(DENTIST_DISPCLK_CNTL, DENTIST_DPREFCLK_WDIVIDER, &dprefclk_wdivider);
2428ad5c6ece1a6 Mauro Rossi 2020-07-11 95
2428ad5c6ece1a6 Mauro Rossi 2020-07-11 96 /* Convert DENTIST_DPREFCLK_WDIVIDERto actual divider*/
2428ad5c6ece1a6 Mauro Rossi 2020-07-11 97 target_div = dentist_get_divider_from_did(dprefclk_wdivider);
2428ad5c6ece1a6 Mauro Rossi 2020-07-11 98
2428ad5c6ece1a6 Mauro Rossi 2020-07-11 99 /* Calculate the current DFS clock, in kHz.*/
2428ad5c6ece1a6 Mauro Rossi 2020-07-11 100 dp_ref_clk_khz = (DENTIST_DIVIDER_RANGE_SCALE_FACTOR
2428ad5c6ece1a6 Mauro Rossi 2020-07-11 101 * clk_mgr->base.dentist_vco_freq_khz) / target_div;
2428ad5c6ece1a6 Mauro Rossi 2020-07-11 102
2428ad5c6ece1a6 Mauro Rossi 2020-07-11 103 return dce_adjust_dp_ref_freq_for_ss(clk_mgr, dp_ref_clk_khz);
2428ad5c6ece1a6 Mauro Rossi 2020-07-11 104 }
2428ad5c6ece1a6 Mauro Rossi 2020-07-11 105
:::::: The code at line 83 was first introduced by commit
:::::: 2428ad5c6ece1a6861278c01c5e71c8ea258f3d9 drm/amd/display: dc/clk_mgr: add support for SI parts (v2)
:::::: TO: Mauro Rossi <issor.oruam(a)gmail.com>
:::::: CC: Yang Xiong <Yang.Xiong(a)amd.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
Re: [net-next PATCH v2 08/14] net: mdiobus: Introduce fwnode_mdiobus_register()
by kernel test robot
Hi Calvin,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Calvin-Johnson/ACPI-support-for-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git efd5a1584537698220578227e6467638307c2a0b
config: s390-randconfig-r006-20201215 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/7f1ca180e69d6de83c1ef6bbedd23a9ae...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Calvin-Johnson/ACPI-support-for-dpaa2-driver/20201216-010124
git checkout 7f1ca180e69d6de83c1ef6bbedd23a9aefa89548
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/net/phy/mdio_bus.c: In function 'fwnode_mdiobus_register':
>> drivers/net/phy/mdio_bus.c:598:13: error: implicit declaration of function 'acpi_evaluate_integer'; did you mean 'acpi_evaluate_object'? [-Werror=implicit-function-declaration]
598 | status = acpi_evaluate_integer(ACPI_HANDLE_FWNODE(child),
| ^~~~~~~~~~~~~~~~~~~~~
| acpi_evaluate_object
cc1: some warnings being treated as errors
vim +598 drivers/net/phy/mdio_bus.c
570
571 /**
572 * fwnode_mdiobus_register - Register mii_bus and create PHYs from fwnode
573 * @mdio: pointer to mii_bus structure
574 * @fwnode: pointer to fwnode of MDIO bus.
575 *
576 * This function registers the mii_bus structure and registers a phy_device
577 * for each child node of @fwnode.
578 */
579 int fwnode_mdiobus_register(struct mii_bus *mdio, struct fwnode_handle *fwnode)
580 {
581 struct fwnode_handle *child;
582 unsigned long long addr;
583 acpi_status status;
584 int ret;
585
586 if (is_of_node(fwnode)) {
587 return of_mdiobus_register(mdio, to_of_node(fwnode));
588 } else if (is_acpi_node(fwnode)) {
589 /* Mask out all PHYs from auto probing. */
590 mdio->phy_mask = ~0;
591 ret = mdiobus_register(mdio);
592 if (ret)
593 return ret;
594
595 mdio->dev.fwnode = fwnode;
596 /* Loop over the child nodes and register a phy_device for each PHY */
597 fwnode_for_each_child_node(fwnode, child) {
> 598 status = acpi_evaluate_integer(ACPI_HANDLE_FWNODE(child),
599 "_ADR", NULL, &addr);
600 if (ACPI_FAILURE(status)) {
601 pr_debug("_ADR returned %d\n", status);
602 continue;
603 }
604
605 if (addr < 0 || addr >= PHY_MAX_ADDR)
606 continue;
607
608 ret = fwnode_mdiobus_register_phy(mdio, child, addr);
609 if (ret == -ENODEV)
610 dev_err(&mdio->dev,
611 "MDIO device at address %lld is missing.\n",
612 addr);
613 }
614 return 0;
615 }
616 return -EINVAL;
617 }
618 EXPORT_SYMBOL(fwnode_mdiobus_register);
619
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
Re: [net-next PATCH v2 10/14] device property: Introduce fwnode_get_id()
by kernel test robot
Hi Calvin,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Calvin-Johnson/ACPI-support-for-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git efd5a1584537698220578227e6467638307c2a0b
config: m68k-randconfig-r005-20201215 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/b093f5463658b3a513d5b95ef208ee326...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Calvin-Johnson/ACPI-support-for-dpaa2-driver/20201216-010124
git checkout b093f5463658b3a513d5b95ef208ee3264f1db08
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/base/property.c: In function 'fwnode_get_id':
>> drivers/base/property.c:598:12: error: implicit declaration of function 'acpi_evaluate_integer'; did you mean 'acpi_evaluate_object'? [-Werror=implicit-function-declaration]
598 | status = acpi_evaluate_integer(ACPI_HANDLE_FWNODE(fwnode),
| ^~~~~~~~~~~~~~~~~~~~~
| acpi_evaluate_object
cc1: some warnings being treated as errors
vim +598 drivers/base/property.c
582
583 /**
584 * fwnode_get_id - Get the id of a fwnode.
585 * @fwnode: firmware node
586 * @id: id of the fwnode
587 *
588 * Returns 0 on success or a negative errno.
589 */
590 int fwnode_get_id(struct fwnode_handle *fwnode, u32 *id)
591 {
592 unsigned long long adr;
593 acpi_status status;
594
595 if (is_of_node(fwnode)) {
596 return of_property_read_u32(to_of_node(fwnode), "reg", id);
597 } else if (is_acpi_node(fwnode)) {
> 598 status = acpi_evaluate_integer(ACPI_HANDLE_FWNODE(fwnode),
599 METHOD_NAME__ADR, NULL, &adr);
600 if (ACPI_FAILURE(status))
601 return -ENODATA;
602 *id = (u32)adr;
603 return 0;
604 }
605 return -EINVAL;
606 }
607 EXPORT_SYMBOL_GPL(fwnode_get_id);
608
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
Re: [PATCH] scsi: qedf: Avoid invoking response handler twice if ep is already completed.
by kernel test robot
Hi Javed,
I love your patch! Perhaps something to improve:
[auto build test WARNING on mkp-scsi/for-next]
[also build test WARNING on scsi/for-next target/for-next v5.10 next-20201215]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Javed-Hasan/scsi-qedf-Avoid-invo...
base: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/eafc014c649de737d637ee480fc1f5868...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Javed-Hasan/scsi-qedf-Avoid-invoking-response-handler-twice-if-ep-is-already-completed/20201216-001607
git checkout eafc014c649de737d637ee480fc1f5868dc5165a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/scsi/libfc/fc_exch.c: In function 'fc_exch_recv_seq_resp':
>> drivers/scsi/libfc/fc_exch.c:1629:20: warning: missing terminating " character
1629 | FC_EXCH_DBG(ep, " ep is completed already,
| ^
drivers/scsi/libfc/fc_exch.c:1630:35: warning: missing terminating " character
1630 | hence skip calling the resp\n");
| ^
drivers/scsi/libfc/fc_exch.c:1911:19: warning: missing terminating " character
1911 | FC_EXCH_DBG(ep, " ep is completed already,
| ^
drivers/scsi/libfc/fc_exch.c:1912:34: warning: missing terminating " character
1912 | hence skip calling the resp\n");
| ^
drivers/scsi/libfc/fc_exch.c:2712: error: unterminated argument list invoking macro "FC_EXCH_DBG"
2712 | }
|
drivers/scsi/libfc/fc_exch.c:1629:4: error: 'FC_EXCH_DBG' undeclared (first use in this function)
1629 | FC_EXCH_DBG(ep, " ep is completed already,
| ^~~~~~~~~~~
drivers/scsi/libfc/fc_exch.c:1629:4: note: each undeclared identifier is reported only once for each function it appears in
drivers/scsi/libfc/fc_exch.c:1629:15: error: expected ';' at end of input
1629 | FC_EXCH_DBG(ep, " ep is completed already,
| ^
| ;
......
2712 | }
|
drivers/scsi/libfc/fc_exch.c:1629:4: error: expected declaration or statement at end of input
1629 | FC_EXCH_DBG(ep, " ep is completed already,
| ^~~~~~~~~~~
drivers/scsi/libfc/fc_exch.c:1629:4: error: expected declaration or statement at end of input
drivers/scsi/libfc/fc_exch.c:1629:4: error: expected declaration or statement at end of input
drivers/scsi/libfc/fc_exch.c:1599:3: error: label 'rel' used but not defined
1599 | goto rel;
| ^~~~
drivers/scsi/libfc/fc_exch.c:1584:3: error: label 'out' used but not defined
1584 | goto out;
| ^~~~
drivers/scsi/libfc/fc_exch.c: At top level:
>> drivers/scsi/libfc/fc_exch.c:121:13: warning: 'fc_exch_rrq' used but never defined
121 | static void fc_exch_rrq(struct fc_exch *);
| ^~~~~~~~~~~
>> drivers/scsi/libfc/fc_exch.c:122:13: warning: 'fc_seq_ls_acc' used but never defined
122 | static void fc_seq_ls_acc(struct fc_frame *);
| ^~~~~~~~~~~~~
>> drivers/scsi/libfc/fc_exch.c:123:13: warning: 'fc_seq_ls_rjt' used but never defined
123 | static void fc_seq_ls_rjt(struct fc_frame *, enum fc_els_rjt_reason,
| ^~~~~~~~~~~~~
>> drivers/scsi/libfc/fc_exch.c:125:13: warning: 'fc_exch_els_rec' used but never defined
125 | static void fc_exch_els_rec(struct fc_frame *);
| ^~~~~~~~~~~~~~~
>> drivers/scsi/libfc/fc_exch.c:126:13: warning: 'fc_exch_els_rrq' used but never defined
126 | static void fc_exch_els_rrq(struct fc_frame *);
| ^~~~~~~~~~~~~~~
drivers/scsi/libfc/fc_exch.c:1572:13: warning: 'fc_exch_recv_seq_resp' defined but not used [-Wunused-function]
1572 | static void fc_exch_recv_seq_resp(struct fc_exch_mgr *mp, struct fc_frame *fp)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/scsi/libfc/fc_exch.c:1510:13: warning: 'fc_exch_recv_req' defined but not used [-Wunused-function]
1510 | static void fc_exch_recv_req(struct fc_lport *lport, struct fc_exch_mgr *mp,
| ^~~~~~~~~~~~~~~~
drivers/scsi/libfc/fc_exch.c:1412:13: warning: 'fc_exch_recv_abts' defined but not used [-Wunused-function]
1412 | static void fc_exch_recv_abts(struct fc_exch *ep, struct fc_frame *rx_fp)
| ^~~~~~~~~~~~~~~~~
drivers/scsi/libfc/fc_exch.c:1206:13: warning: 'fc_exch_set_addr' defined but not used [-Wunused-function]
1206 | static void fc_exch_set_addr(struct fc_exch *ep,
| ^~~~~~~~~~~~~~~~
drivers/scsi/libfc/fc_exch.c:1169:23: warning: 'fc_seq_lookup_orig' defined but not used [-Wunused-function]
1169 | static struct fc_seq *fc_seq_lookup_orig(struct fc_exch_mgr *mp,
| ^~~~~~~~~~~~~~~~~~
drivers/scsi/libfc/fc_exch.c:366:13: warning: 'fc_exch_timer_set' defined but not used [-Wunused-function]
366 | static void fc_exch_timer_set(struct fc_exch *ep, unsigned int timer_msec)
| ^~~~~~~~~~~~~~~~~
drivers/scsi/libfc/fc_exch.c:237:20: warning: 'fc_exch_rctl_name' defined but not used [-Wunused-function]
237 | static const char *fc_exch_rctl_name(unsigned int op)
| ^~~~~~~~~~~~~~~~~
drivers/scsi/libfc/fc_exch.c:29:27: warning: 'fc_em_cachep' defined but not used [-Wunused-variable]
29 | static struct kmem_cache *fc_em_cachep; /* cache for exchanges */
| ^~~~~~~~~~~~
vim +1629 drivers/scsi/libfc/fc_exch.c
1564
1565 /**
1566 * fc_exch_recv_seq_resp() - Handler for an incoming response where the other
1567 * end is the originator of the sequence that is a
1568 * response to our initial exchange
1569 * @mp: The EM that the exchange is on
1570 * @fp: The response frame
1571 */
1572 static void fc_exch_recv_seq_resp(struct fc_exch_mgr *mp, struct fc_frame *fp)
1573 {
1574 struct fc_frame_header *fh = fc_frame_header_get(fp);
1575 struct fc_seq *sp;
1576 struct fc_exch *ep;
1577 enum fc_sof sof;
1578 u32 f_ctl;
1579 int rc;
1580
1581 ep = fc_exch_find(mp, ntohs(fh->fh_ox_id));
1582 if (!ep) {
1583 atomic_inc(&mp->stats.xid_not_found);
1584 goto out;
1585 }
1586 if (ep->esb_stat & ESB_ST_COMPLETE) {
1587 atomic_inc(&mp->stats.xid_not_found);
1588 goto rel;
1589 }
1590 if (ep->rxid == FC_XID_UNKNOWN)
1591 ep->rxid = ntohs(fh->fh_rx_id);
1592 if (ep->sid != 0 && ep->sid != ntoh24(fh->fh_d_id)) {
1593 atomic_inc(&mp->stats.xid_not_found);
1594 goto rel;
1595 }
1596 if (ep->did != ntoh24(fh->fh_s_id) &&
1597 ep->did != FC_FID_FLOGI) {
1598 atomic_inc(&mp->stats.xid_not_found);
1599 goto rel;
1600 }
1601 sof = fr_sof(fp);
1602 sp = &ep->seq;
1603 if (fc_sof_is_init(sof)) {
1604 sp->ssb_stat |= SSB_ST_RESP;
1605 sp->id = fh->fh_seq_id;
1606 }
1607
1608 f_ctl = ntoh24(fh->fh_f_ctl);
1609 fr_seq(fp) = sp;
1610
1611 spin_lock_bh(&ep->ex_lock);
1612 if (f_ctl & FC_FC_SEQ_INIT)
1613 ep->esb_stat |= ESB_ST_SEQ_INIT;
1614 spin_unlock_bh(&ep->ex_lock);
1615
1616 if (fc_sof_needs_ack(sof))
1617 fc_seq_send_ack(sp, fp);
1618
1619 if (fh->fh_type != FC_TYPE_FCP && fr_eof(fp) == FC_EOF_T &&
1620 (f_ctl & (FC_FC_LAST_SEQ | FC_FC_END_SEQ)) ==
1621 (FC_FC_LAST_SEQ | FC_FC_END_SEQ)) {
1622 spin_lock_bh(&ep->ex_lock);
1623 rc = fc_exch_done_locked(ep);
1624 WARN_ON(fc_seq_exch(sp) != ep);
1625 spin_unlock_bh(&ep->ex_lock);
1626 if (!rc) {
1627 fc_exch_delete(ep);
1628 } else {
> 1629 FC_EXCH_DBG(ep, " ep is completed already,
1630 hence skip calling the resp\n");
1631 goto skip_resp;
1632 }
1633 }
1634
1635 /*
1636 * Call the receive function.
1637 * The sequence is held (has a refcnt) for us,
1638 * but not for the receive function.
1639 *
1640 * The receive function may allocate a new sequence
1641 * over the old one, so we shouldn't change the
1642 * sequence after this.
1643 *
1644 * The frame will be freed by the receive function.
1645 * If new exch resp handler is valid then call that
1646 * first.
1647 */
1648 if (!fc_invoke_resp(ep, sp, fp))
1649 fc_frame_free(fp);
1650
1651 skip_resp:
1652 fc_exch_release(ep);
1653 return;
1654 rel:
1655 fc_exch_release(ep);
1656 out:
1657 fc_frame_free(fp);
1658 }
1659
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
[lee-linaro:android-3.18-preview 213/310] clang-12clang-12: error: unknown argument: '-mtraceback=no'
by kernel test robot
TO: Lee Jones <lee.jones(a)linaro.org>
tree: https://git.linaro.org/people/lee.jones/linux.git android-3.18-preview
head: 83102d5e212965387f1db5eef72bf3bf0d322b15
commit: cdf2b03a6f4efd138211f1c38b0103031f7a62c1 [213/310] regulator: fan53555: fix I2C device ids
config: powerpc64-randconfig-r036-20201209 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 1968804ac726e7674d5de22bc2204b45857da344)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
git remote add lee-linaro https://git.linaro.org/people/lee.jones/linux.git
git fetch --no-tags lee-linaro android-3.18-preview
git checkout cdf2b03a6f4efd138211f1c38b0103031f7a62c1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> clang-12clang-12: error: unknown argument: '-mtraceback=no'
clang-12: error: unknown argument: '-mcall-aixdesc'
clang-12: error: unknown argument: '-mtraceback=no'
clang-12: error: unknown argument: '-mno-string'
: error: unknown argument: '-mcall-aixdesc'
make[3]: *** [scripts/Makefile.build:153: scripts/mod/devicetable-offsets.s] Error 1
clang-12: error: unknown argument: '-mno-string'
clang-12: error: unsupported argument '-maltivec' to option 'Wa,'
make[3]: *** [scripts/Makefile.build:258: scripts/mod/empty.o] Error 1
make[3]: Target '__build' not remade because of errors.
make[2]: *** [scripts/Makefile.build:402: scripts/mod] Error 2
/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x28): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x58): first defined here
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [scripts/Makefile.host:100: scripts/dtc/dtc] Error 1
make[3]: Target '__build' not remade because of errors.
make[2]: *** [scripts/Makefile.build:402: scripts/dtc] Error 2
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:560: scripts] Error 2
clang-12: error: unknown argument: '-mtraceback=no'
clang-12: error: unknown argument: '-mcall-aixdesc'
clang-12: error: unknown argument: '-mno-string'
make[2]: *** [./Kbuild:36: kernel/bounds.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1022: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:149: sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
drivers/gpu/drm/msm/adreno/a6xx_gpu.c:1095:36: sparse: sparse: incorrect type in assignment (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 148842c98a24e508aecb929718818fbf4c2a6ff3
commit: 474dadb8b0d557661cb3d1727f1ff2f82bac6b4c drm/msm/a6xx: Add support for using system cache(LLC)
date: 2 weeks ago
config: arm64-randconfig-s032-20201215 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-184-g1b896707-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 474dadb8b0d557661cb3d1727f1ff2f82bac6b4c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
drivers/gpu/drm/msm/adreno/a6xx_gpu.c: note: in included file (through drivers/gpu/drm/msm/msm_gpu.h, drivers/gpu/drm/msm/adreno/adreno_gpu.h, drivers/gpu/drm/msm/adreno/a6xx_gpu.h):
include/linux/adreno-smmu-priv.h:36:33: sparse: sparse: no newline at end of file
>> drivers/gpu/drm/msm/adreno/a6xx_gpu.c:1095:36: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __iomem *llc_mmio @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gpu.c:1095:36: sparse: expected void [noderef] __iomem *llc_mmio
drivers/gpu/drm/msm/adreno/a6xx_gpu.c:1095:36: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gpu.c: note: in included file (through drivers/gpu/drm/msm/adreno/a6xx_gpu.h):
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:120:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:120:41: sparse: expected void const [noderef] __iomem *addr
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:120:41: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:121:43: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:121:43: sparse: expected void const [noderef] __iomem *addr
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:121:43: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:120:31: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:121:33: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:120:31: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:121:33: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:92:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:92:36: sparse: expected void const [noderef] __iomem *addr
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:92:36: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:92:26: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:44: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:44: sparse: expected void [noderef] __iomem *addr
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:44: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:34: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:92:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:92:36: sparse: expected void const [noderef] __iomem *addr
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:92:36: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:92:26: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:44: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:44: sparse: expected void [noderef] __iomem *addr
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:44: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:34: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:44: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:44: sparse: expected void [noderef] __iomem *addr
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:44: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:34: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:44: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:44: sparse: expected void [noderef] __iomem *addr
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:44: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:97:34: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:120:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:120:41: sparse: expected void const [noderef] __iomem *addr
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:120:41: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:121:43: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:121:43: sparse: expected void const [noderef] __iomem *addr
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:121:43: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:120:31: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:121:33: sparse: sparse: dereference of noderef expression
vim +1095 drivers/gpu/drm/msm/adreno/a6xx_gpu.c
1083
1084 static void a6xx_llc_slices_init(struct platform_device *pdev,
1085 struct a6xx_gpu *a6xx_gpu)
1086 {
1087 a6xx_gpu->llc_mmio = msm_ioremap(pdev, "cx_mem", "gpu_cx");
1088 if (IS_ERR(a6xx_gpu->llc_mmio))
1089 return;
1090
1091 a6xx_gpu->llc_slice = llcc_slice_getd(LLCC_GPU);
1092 a6xx_gpu->htw_llc_slice = llcc_slice_getd(LLCC_GPUHTW);
1093
1094 if (IS_ERR(a6xx_gpu->llc_slice) && IS_ERR(a6xx_gpu->htw_llc_slice))
> 1095 a6xx_gpu->llc_mmio = ERR_PTR(-EINVAL);
1096 }
1097
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months
Re: [PATCH v2] tpm: Rework open/close/shutdown to avoid races
by kernel test robot
Hi Sergey,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on char-misc/char-misc-testing]
[also build test WARNING on linux/master linus/master v5.10 next-20201215]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Sergey-Temerkhanov/tpm-Rework-op...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git 93f998879cd95b3e4f2836e7b17d6d5ae035cf90
config: m68k-randconfig-r012-20201215 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/b1f6f05f320b6b609ff70567a701e1250...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sergey-Temerkhanov/tpm-Rework-open-close-shutdown-to-avoid-races/20201215-214304
git checkout b1f6f05f320b6b609ff70567a701e12504783b02
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/char/tpm/tpm-dev.c: In function 'tpm_open':
>> drivers/char/tpm/tpm-dev.c:22:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
22 | int ret = 0;
| ^~~
vim +/ret +22 drivers/char/tpm/tpm-dev.c
17
18 static int tpm_open(struct inode *inode, struct file *file)
19 {
20 struct tpm_chip *chip;
21 struct file_priv *priv;
> 22 int ret = 0;
23
24 chip = container_of(inode->i_cdev, struct tpm_chip, cdev);
25
26 /* It's assured that the chip will be opened just once,
27 * by the check of the chip reference count.
28 */
29 if (atomic_fetch_inc(&chip->refcount)) {
30 dev_dbg(&chip->dev, "Another process owns this TPM\n");
31 ret = -EBUSY;
32 goto out;
33 }
34
35 priv = kzalloc(sizeof(*priv), GFP_KERNEL);
36 if (priv == NULL) {
37 ret = -ENOMEM;
38 goto out;
39 }
40
41 tpm_common_open(file, chip, priv, NULL);
42
43 return 0;
44
45 out:
46 atomic_dec(&chip->refcount);
47 wake_up_all(&chip->waitq);
48 return -ENOMEM;
49 }
50
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 9 months