drivers/iio/adc/at91_adc.c:1439:34: warning: unused variable 'at91_adc_dt_ids'
by kernel test robot
Hi Alexandru,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0fa8ee0d9ab95c9350b8b84574824d9a384a9f7d
commit: 4027860dcc4cd0c45c36bae21e45bee5a17f2f0f iio: Kconfig: at91_adc: add COMPILE_TEST dependency to driver
date: 5 months ago
config: x86_64-randconfig-a011-20201118 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b2613fb2f0f53691dd0211895afbb9413457fca7)
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
# 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 4027860dcc4cd0c45c36bae21e45bee5a17f2f0f
# 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/iio/adc/at91_adc.c:1439:34: warning: unused variable 'at91_adc_dt_ids' [-Wunused-const-variable]
static const struct of_device_id at91_adc_dt_ids[] = {
^
1 warning generated.
vim +/at91_adc_dt_ids +1439 drivers/iio/adc/at91_adc.c
e1811f97ba985fe Josh Wu 2013-08-27 1438
e364185f3ed2ecc Maxime Ripard 2012-05-11 @1439 static const struct of_device_id at91_adc_dt_ids[] = {
e1811f97ba985fe Josh Wu 2013-08-27 1440 { .compatible = "atmel,at91sam9260-adc", .data = &at91sam9260_caps },
65b1fdbac9e39d9 Alexandre Belloni 2014-04-15 1441 { .compatible = "atmel,at91sam9rl-adc", .data = &at91sam9rl_caps },
e1811f97ba985fe Josh Wu 2013-08-27 1442 { .compatible = "atmel,at91sam9g45-adc", .data = &at91sam9g45_caps },
e1811f97ba985fe Josh Wu 2013-08-27 1443 { .compatible = "atmel,at91sam9x5-adc", .data = &at91sam9x5_caps },
e364185f3ed2ecc Maxime Ripard 2012-05-11 1444 {},
e364185f3ed2ecc Maxime Ripard 2012-05-11 1445 };
e364185f3ed2ecc Maxime Ripard 2012-05-11 1446 MODULE_DEVICE_TABLE(of, at91_adc_dt_ids);
467a44b0372d826 Alexandre Belloni 2014-05-03 1447
:::::: The code at line 1439 was first introduced by commit
:::::: e364185f3ed2ecc0a4dbfe2507f20fd5db76c966 IIO: AT91: Add DT support to at91_adc driver
:::::: TO: Maxime Ripard <maxime.ripard(a)free-electrons.com>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [PATCH net-next v4 4/4] net: phy: dp83td510: Add support for the DP83TD510 Ethernet PHY
by kernel test robot
Hi Dan,
I love your patch! Yet something to improve:
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Dan-Murphy/DP83TD510-Single-Pair...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 72308ecbf33b145641aba61071be31a85ebfd92c
config: arm-randconfig-m031-20201118 (attached as .config)
compiler: arm-linux-gnueabi-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/ec556cedbd640ecfa25713eadf48e5b7e...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Dan-Murphy/DP83TD510-Single-Pair-10Mbps-Ethernet-PHY/20201118-041918
git checkout ec556cedbd640ecfa25713eadf48e5b7ee74fda3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
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/dp83td510.c: In function 'dp83869_of_init':
>> drivers/net/phy/dp83td510.c:450:2: error: 'dp83td510' undeclared (first use in this function)
450 | dp83td510->hi_diff_output = DP83TD510_2_4V_P2P
| ^~~~~~~~~
drivers/net/phy/dp83td510.c:450:2: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/net/phy/dp83td510.c:451:2: error: expected ';' before 'dp83td510'
451 | dp83td510->tx_fifo_depth = DP83TD510_FIFO_DEPTH_5_B_NIB
| ^~~~~~~~~
drivers/net/phy/dp83td510.c:453:1: error: no return statement in function returning non-void [-Werror=return-type]
453 | }
| ^
drivers/net/phy/dp83td510.c: In function 'dp83td510_probe':
>> drivers/net/phy/dp83td510.c:468:8: error: implicit declaration of function 'dp83td510_of_init'; did you mean 'dp83td510_config_init'? [-Werror=implicit-function-declaration]
468 | ret = dp83td510_of_init(phydev);
| ^~~~~~~~~~~~~~~~~
| dp83td510_config_init
At top level:
drivers/net/phy/dp83td510.c:448:12: warning: 'dp83869_of_init' defined but not used [-Wunused-function]
448 | static int dp83869_of_init(struct phy_device *phydev)
| ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/dp83td510 +450 drivers/net/phy/dp83td510.c
390
391 #if IS_ENABLED(CONFIG_OF_MDIO)
392 static int dp83td510_of_init(struct phy_device *phydev)
393 {
394 struct dp83td510_private *dp83td510 = phydev->priv;
395 struct device *dev = &phydev->mdio.dev;
396 struct device_node *of_node = dev->of_node;
397 s32 rx_int_delay;
398 s32 tx_int_delay;
399 int ret;
400
401 if (!of_node)
402 return -ENODEV;
403
404 ret = of_property_read_u32(phydev->mdio.dev.of_node,
405 "max-tx-rx-p2p-microvolt",
406 &dp83td510->hi_diff_output);
407 if (ret)
408 dp83td510->hi_diff_output = DP83TD510_2_4V_P2P;
409
410 if (dp83td510->hi_diff_output != DP83TD510_2_4V_P2P &&
411 dp83td510->hi_diff_output != DP83TD510_1_1V_P2P)
412 return -EINVAL;
413
414 if (of_property_read_u32(phydev->mdio.dev.of_node, "tx-fifo-depth",
415 &dp83td510->tx_fifo_depth))
416 dp83td510->tx_fifo_depth = DP83TD510_FIFO_DEPTH_5_B_NIB;
417
418 switch (dp83td510->tx_fifo_depth) {
419 case 4:
420 dp83td510->tx_fifo_depth = DP83TD510_FIFO_DEPTH_4_B_NIB;
421 break;
422 case 6:
423 dp83td510->tx_fifo_depth = DP83TD510_FIFO_DEPTH_6_B_NIB;
424 break;
425 case 8:
426 dp83td510->tx_fifo_depth = DP83TD510_FIFO_DEPTH_8_B_NIB;
427 break;
428 case 5:
429 default:
430 dp83td510->tx_fifo_depth = DP83TD510_FIFO_DEPTH_5_B_NIB;
431 }
432
433 rx_int_delay = phy_get_internal_delay(phydev, dev, NULL, 0, true);
434 if (rx_int_delay <= 0)
435 dp83td510->rgmii_delay = DP83TD510_RX_CLK_SHIFT;
436 else
437 dp83td510->rgmii_delay = 0;
438
439 tx_int_delay = phy_get_internal_delay(phydev, dev, NULL, 0, false);
440 if (tx_int_delay <= 0)
441 dp83td510->rgmii_delay |= DP83TD510_TX_CLK_SHIFT;
442 else
443 dp83td510->rgmii_delay &= ~DP83TD510_TX_CLK_SHIFT;
444
445 return 0;
446 }
447 #else
448 static int dp83869_of_init(struct phy_device *phydev)
449 {
> 450 dp83td510->hi_diff_output = DP83TD510_2_4V_P2P
> 451 dp83td510->tx_fifo_depth = DP83TD510_FIFO_DEPTH_5_B_NIB
452 return 0;
453 }
454 #endif /* CONFIG_OF_MDIO */
455
456 static int dp83td510_probe(struct phy_device *phydev)
457 {
458 struct dp83td510_private *dp83td510;
459 int ret;
460
461 dp83td510 = devm_kzalloc(&phydev->mdio.dev, sizeof(*dp83td510),
462 GFP_KERNEL);
463 if (!dp83td510)
464 return -ENOMEM;
465
466 phydev->priv = dp83td510;
467
> 468 ret = dp83td510_of_init(phydev);
469 if (ret)
470 return ret;
471
472 return dp83td510_config_init(phydev);
473 }
474
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[linux-next:master 4269/6320] pwm-tiecap.c:undefined reference to `devm_platform_ioremap_resource'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 7c8ca8129ee9724cb1527895fe6dec942ef07f19
commit: 2cbe492a1d9e2beb993ed3249f620bf316bf069f [4269/6320] pwm: tiecap: Convert to devm_platform_ioremap_resource()
config: s390-randconfig-r033-20201117 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ace9653c11c6308401dcda2e8b26bf97e6e66e30)
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 s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# 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 2cbe492a1d9e2beb993ed3249f620bf316bf069f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 >>):
s390x-linux-gnu-ld: drivers/irqchip/irq-renesas-intc-irqpin.o: in function `intc_irqpin_probe':
irq-renesas-intc-irqpin.c:(.text+0x1f2): undefined reference to `devm_ioremap'
s390x-linux-gnu-ld: drivers/irqchip/irq-renesas-irqc.o: in function `irqc_probe':
irq-renesas-irqc.c:(.text+0xd8): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/irqchip/irq-imx-intmux.o: in function `imx_intmux_probe':
irq-imx-intmux.c:(.text+0xbe): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/phy/hisilicon/phy-histb-combphy.o: in function `histb_combphy_probe':
phy-histb-combphy.c:(.text+0x4e): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/phy/st/phy-stm32-usbphyc.o: in function `stm32_usbphyc_probe':
phy-stm32-usbphyc.c:(.text+0x66): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/pwm/pwm-bcm-iproc.o: in function `iproc_pwmc_probe':
pwm-bcm-iproc.c:(.text+0x82): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/pwm/pwm-hibvt.o: in function `hibvt_pwm_probe':
pwm-hibvt.c:(.text+0xd8): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/pwm/pwm-pxa.o: in function `pwm_probe':
pwm-pxa.c:(.text+0xcc): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/pwm/pwm-tegra.o: in function `tegra_pwm_probe':
pwm-tegra.c:(.text+0x54): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/pwm/pwm-tiecap.o: in function `ecap_pwm_probe':
>> pwm-tiecap.c:(.text+0xf0): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/pwm/pwm-tiehrpwm.o: in function `ehrpwm_pwm_probe':
pwm-tiehrpwm.c:(.text+0xf2): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/char/ipmi/bt-bmc.o: in function `bt_bmc_probe':
bt-bmc.c:(.text+0xae): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/clk-fsl-sai.o: in function `fsl_sai_clk_probe':
clk-fsl-sai.c:(.text+0x60): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/clk-gemini.o: in function `gemini_clk_probe':
clk-gemini.c:(.text+0x66): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/clk-plldig.o: in function `plldig_clk_probe':
clk-plldig.c:(.text+0x48): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/actions/owl-common.o: in function `owl_clk_regmap_init':
owl-common.c:(.text+0x3e): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/mediatek/clk-mt6765.o: in function `clk_mt6765_apmixed_probe':
clk-mt6765.c:(.text+0x5c): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/mediatek/clk-mt6765.o: in function `clk_mt6765_top_probe':
clk-mt6765.c:(.text+0x19c): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/mediatek/clk-mt6765.o: in function `clk_mt6765_ifr_probe':
clk-mt6765.c:(.text+0x2dc): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/mediatek/clk-mt6779.o: in function `clk_mt6779_top_probe':
clk-mt6779.c:(.text+0xc6): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/mediatek/clk-mt2701.o: in function `mtk_topckgen_init':
clk-mt2701.c:(.text+0x5c): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/mediatek/clk-mt2701.o: in function `mtk_pericfg_init':
clk-mt2701.c:(.text+0x2dc): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/mediatek/clk-mt2712.o: in function `clk_mt2712_top_probe':
clk-mt2712.c:(.text+0xa6): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/mediatek/clk-mt2712.o: in function `clk_mt2712_mcu_probe':
clk-mt2712.c:(.text+0x320): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/mediatek/clk-mt7629.o: in function `mtk_topckgen_init':
clk-mt7629.c:(.text+0x1e0): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/mediatek/clk-mt7629.o: in function `mtk_pericfg_init':
clk-mt7629.c:(.text+0x346): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/sifive/fu540-prci.o: in function `sifive_fu540_prci_probe':
fu540-prci.c:(.text+0x8a): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/sprd/common.o: in function `sprd_clk_regmap_init':
common.c:(.text+0x28): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/sunxi-ng/ccu-sun50i-a100.o: in function `sun50i_a100_ccu_probe':
ccu-sun50i-a100.c:(.text+0x24): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/sunxi-ng/ccu-sun50i-a100-r.o: in function `sun50i_a100_r_ccu_probe':
ccu-sun50i-a100-r.c:(.text+0x24): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/sunxi-ng/ccu-sun8i-a83t.o: in function `sun8i_a83t_ccu_probe':
ccu-sun8i-a83t.c:(.text+0x36): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/sunxi-ng/ccu-sun8i-r40.o: in function `sun8i_r40_ccu_probe':
ccu-sun8i-r40.c:(.text+0x3a): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/sunxi-ng/ccu-sun9i-a80.o: in function `sun9i_a80_ccu_probe':
ccu-sun9i-a80.c:(.text+0x36): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/sunxi-ng/ccu-sun9i-a80-de.o: in function `sun9i_a80_de_clk_probe':
ccu-sun9i-a80-de.c:(.text+0x3a): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/clk/sunxi-ng/ccu-sun9i-a80-usb.o: in function `sun9i_a80_usb_clk_probe':
ccu-sun9i-a80-usb.c:(.text+0x3a): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/soc/amlogic/meson-clk-measure.o:meson-clk-measure.c:(.text+0x8e): more undefined references to `devm_ioremap_resource' follow
s390x-linux-gnu-ld: drivers/reset/reset-npcm.o: in function `npcm_rc_probe':
reset-npcm.c:(.text+0x48): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/reset/reset-qcom-pdc.o: in function `qcom_pdc_reset_probe':
reset-qcom-pdc.c:(.text+0x5a): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/reset/reset-simple.o: in function `reset_simple_probe':
reset-simple.c:(.text+0x49e): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/mfd/syscon.o: in function `syscon_probe':
syscon.c:(.text+0x2d0): undefined reference to `devm_ioremap'
s390x-linux-gnu-ld: drivers/input/serio/sun4i-ps2.o: in function `sun4i_ps2_probe':
sun4i-ps2.c:(.text+0xca): undefined reference to `ioremap'
s390x-linux-gnu-ld: sun4i-ps2.c:(.text+0x2f2): undefined reference to `iounmap'
s390x-linux-gnu-ld: drivers/input/serio/sun4i-ps2.o: in function `sun4i_ps2_remove':
sun4i-ps2.c:(.text+0x38a): undefined reference to `iounmap'
s390x-linux-gnu-ld: drivers/power/reset/ocelot-reset.o: in function `ocelot_reset_probe':
ocelot-reset.c:(.text+0x5a): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/thermal/broadcom/sr-thermal.o: in function `sr_thermal_probe':
sr-thermal.c:(.text+0x74): undefined reference to `devm_memremap'
s390x-linux-gnu-ld: drivers/thermal/zx2967_thermal.o: in function `zx2967_thermal_probe':
zx2967_thermal.c:(.text+0x5a): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/watchdog/s3c2410_wdt.o: in function `s3c2410wdt_probe':
s3c2410_wdt.c:(.text+0xe2): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/watchdog/imx2_wdt.o: in function `imx2_wdt_probe':
imx2_wdt.c:(.init.text+0x6e): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/watchdog/moxart_wdt.o: in function `moxart_wdt_probe':
moxart_wdt.c:(.text+0x4e): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/watchdog/sirfsoc_wdt.o: in function `sirfsoc_wdt_probe':
sirfsoc_wdt.c:(.text+0x24): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/watchdog/bcm_kona_wdt.o: in function `bcm_kona_wdt_probe':
bcm_kona_wdt.c:(.text+0x4e): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/watchdog/renesas_wdt.o:renesas_wdt.c:(.text+0x48): more undefined references to `devm_platform_ioremap_resource' follow
s390x-linux-gnu-ld: drivers/crypto/atmel-aes.o: in function `atmel_aes_probe':
atmel-aes.c:(.text+0x16a): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/crypto/atmel-sha.o: in function `atmel_sha_probe':
atmel-sha.c:(.text+0x3a8a): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/crypto/atmel-tdes.o: in function `atmel_tdes_probe':
atmel-tdes.c:(.text+0x16a): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/crypto/mediatek/mtk-platform.o: in function `mtk_crypto_probe':
mtk-platform.c:(.text+0x48): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/clocksource/timer-of.o: in function `timer_of_init':
timer-of.c:(.init.text+0x166): undefined reference to `iounmap'
s390x-linux-gnu-ld: drivers/clocksource/timer-of.o: in function `timer_of_cleanup':
timer-of.c:(.init.text+0x28a): undefined reference to `iounmap'
s390x-linux-gnu-ld: drivers/clocksource/ingenic-ost.o: in function `ingenic_ost_probe':
ingenic-ost.c:(.init.text+0x86): undefined reference to `devm_platform_ioremap_resource'
s390x-linux-gnu-ld: drivers/mailbox/mtk-cmdq-mailbox.o: in function `cmdq_probe':
mtk-cmdq-mailbox.c:(.text+0x7a): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/mailbox/sun6i-msgbox.o: in function `sun6i_msgbox_probe':
sun6i-msgbox.c:(.text+0x1be): undefined reference to `devm_ioremap_resource'
s390x-linux-gnu-ld: drivers/remoteproc/mtk_scp.o: in function `scp_probe':
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [RFC PATCH v2] MIPS: Kconfig: Select ARCH_WANT_FRAME_POINTERS
by kernel test robot
Hi Tiezhu,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on linus/master]
[also build test WARNING on v5.10-rc4 next-20201117]
[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/Tiezhu-Yang/MIPS-Kconfig-Select-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 09162bc32c880a791c6c0668ce0745cf7958f576
config: mips-randconfig-s032-20201117 (attached as .config)
compiler: mips-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-107-gaf3512a6-dirty
# https://github.com/0day-ci/linux/commit/ba16896ee0ca50235af02da0f7a00ae7d...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Tiezhu-Yang/MIPS-Kconfig-Select-ARCH_WANT_FRAME_POINTERS/20201116-175708
git checkout ba16896ee0ca50235af02da0f7a00ae7d028c14c
# 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=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 >>):
security/integrity/ima/ima_crypto.c: In function 'ima_calc_field_array_hash_tfm':
>> security/integrity/ima/ima_crypto.c:634:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
634 | }
| ^
vim +634 security/integrity/ima/ima_crypto.c
3bcced39ea7d1b0 Dmitry Kasatkin 2014-02-26 588
3323eec921efd81 Mimi Zohar 2009-02-04 589 /*
a71dc65d30a4724 Roberto Sassu 2013-06-07 590 * Calculate the hash of template data
3323eec921efd81 Mimi Zohar 2009-02-04 591 */
a71dc65d30a4724 Roberto Sassu 2013-06-07 592 static int ima_calc_field_array_hash_tfm(struct ima_field_data *field_data,
7ca79645a1f8837 Roberto Sassu 2020-03-25 593 struct ima_template_entry *entry,
6d94809af6b0830 Roberto Sassu 2020-03-25 594 int tfm_idx)
3323eec921efd81 Mimi Zohar 2009-02-04 595 {
6d94809af6b0830 Roberto Sassu 2020-03-25 596 SHASH_DESC_ON_STACK(shash, ima_algo_array[tfm_idx].tfm);
7ca79645a1f8837 Roberto Sassu 2020-03-25 597 struct ima_template_desc *td = entry->template_desc;
7ca79645a1f8837 Roberto Sassu 2020-03-25 598 int num_fields = entry->template_desc->num_fields;
a71dc65d30a4724 Roberto Sassu 2013-06-07 599 int rc, i;
3323eec921efd81 Mimi Zohar 2009-02-04 600
6d94809af6b0830 Roberto Sassu 2020-03-25 601 shash->tfm = ima_algo_array[tfm_idx].tfm;
c7c8bb237fdbff9 Dmitry Kasatkin 2013-04-25 602
357aabed626fe3f Behan Webster 2014-04-04 603 rc = crypto_shash_init(shash);
a71dc65d30a4724 Roberto Sassu 2013-06-07 604 if (rc != 0)
a71dc65d30a4724 Roberto Sassu 2013-06-07 605 return rc;
a71dc65d30a4724 Roberto Sassu 2013-06-07 606
a71dc65d30a4724 Roberto Sassu 2013-06-07 607 for (i = 0; i < num_fields; i++) {
e3b64c268b485f5 Roberto Sassu 2014-02-03 608 u8 buffer[IMA_EVENT_NAME_LEN_MAX + 1] = { 0 };
e3b64c268b485f5 Roberto Sassu 2014-02-03 609 u8 *data_to_hash = field_data[i].data;
e3b64c268b485f5 Roberto Sassu 2014-02-03 610 u32 datalen = field_data[i].len;
98e1d55d033eed2 Andreas Steffen 2016-12-19 611 u32 datalen_to_hash =
98e1d55d033eed2 Andreas Steffen 2016-12-19 612 !ima_canonical_fmt ? datalen : cpu_to_le32(datalen);
e3b64c268b485f5 Roberto Sassu 2014-02-03 613
b6f8f16f41d9286 Roberto Sassu 2013-11-08 614 if (strcmp(td->name, IMA_TEMPLATE_IMA_NAME) != 0) {
357aabed626fe3f Behan Webster 2014-04-04 615 rc = crypto_shash_update(shash,
98e1d55d033eed2 Andreas Steffen 2016-12-19 616 (const u8 *) &datalen_to_hash,
98e1d55d033eed2 Andreas Steffen 2016-12-19 617 sizeof(datalen_to_hash));
b6f8f16f41d9286 Roberto Sassu 2013-11-08 618 if (rc)
b6f8f16f41d9286 Roberto Sassu 2013-11-08 619 break;
e3b64c268b485f5 Roberto Sassu 2014-02-03 620 } else if (strcmp(td->fields[i]->field_id, "n") == 0) {
e3b64c268b485f5 Roberto Sassu 2014-02-03 621 memcpy(buffer, data_to_hash, datalen);
e3b64c268b485f5 Roberto Sassu 2014-02-03 622 data_to_hash = buffer;
e3b64c268b485f5 Roberto Sassu 2014-02-03 623 datalen = IMA_EVENT_NAME_LEN_MAX + 1;
b6f8f16f41d9286 Roberto Sassu 2013-11-08 624 }
357aabed626fe3f Behan Webster 2014-04-04 625 rc = crypto_shash_update(shash, data_to_hash, datalen);
a71dc65d30a4724 Roberto Sassu 2013-06-07 626 if (rc)
a71dc65d30a4724 Roberto Sassu 2013-06-07 627 break;
a71dc65d30a4724 Roberto Sassu 2013-06-07 628 }
a71dc65d30a4724 Roberto Sassu 2013-06-07 629
a71dc65d30a4724 Roberto Sassu 2013-06-07 630 if (!rc)
6d94809af6b0830 Roberto Sassu 2020-03-25 631 rc = crypto_shash_final(shash, entry->digests[tfm_idx].digest);
a71dc65d30a4724 Roberto Sassu 2013-06-07 632
a71dc65d30a4724 Roberto Sassu 2013-06-07 633 return rc;
3323eec921efd81 Mimi Zohar 2009-02-04 @634 }
3323eec921efd81 Mimi Zohar 2009-02-04 635
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
drivers/remoteproc/mtk_scp.c:306:39: sparse: sparse: incorrect type in argument 2 (different address spaces)
by kernel test robot
Hi Bjorn,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0fa8ee0d9ab95c9350b8b84574824d9a384a9f7d
commit: 141bc97c1bfe31397b2a12e5676d0c2692c8e07e remoteproc/mediatek: Remove non-standard dsb()
date: 5 weeks ago
config: mips-randconfig-s032-20201117 (attached as .config)
compiler: mips-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-107-gaf3512a6-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 141bc97c1bfe31397b2a12e5676d0c2692c8e07e
# 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=mips
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 >>)"
command-line: note: in included file:
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQUIRE redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_SEQ_CST redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQ_REL redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_RELEASE redefined
builtin:0:0: sparse: this was the original definition
>> drivers/remoteproc/mtk_scp.c:306:39: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void *addr @@
>> drivers/remoteproc/mtk_scp.c:306:39: sparse: expected void volatile [noderef] __iomem *mem
drivers/remoteproc/mtk_scp.c:306:39: sparse: got void *addr
drivers/remoteproc/mtk_scp.c:307:19: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void *addr @@
drivers/remoteproc/mtk_scp.c:307:19: sparse: expected void volatile [noderef] __iomem *mem
drivers/remoteproc/mtk_scp.c:307:19: sparse: got void *addr
drivers/remoteproc/mtk_scp.c:314:19: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void *addr @@
drivers/remoteproc/mtk_scp.c:314:19: sparse: expected void volatile [noderef] __iomem *mem
drivers/remoteproc/mtk_scp.c:314:19: sparse: got void *addr
drivers/remoteproc/mtk_scp.c:316:39: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void *addr @@
drivers/remoteproc/mtk_scp.c:316:39: sparse: expected void volatile [noderef] __iomem *mem
drivers/remoteproc/mtk_scp.c:316:39: sparse: got void *addr
drivers/remoteproc/mtk_scp.c:327:44: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem * @@
drivers/remoteproc/mtk_scp.c:327:44: sparse: expected void *addr
drivers/remoteproc/mtk_scp.c:327:44: sparse: got void [noderef] __iomem *
drivers/remoteproc/mtk_scp.c:328:44: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem * @@
drivers/remoteproc/mtk_scp.c:328:44: sparse: expected void *addr
drivers/remoteproc/mtk_scp.c:328:44: sparse: got void [noderef] __iomem *
drivers/remoteproc/mtk_scp.c:329:44: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem * @@
drivers/remoteproc/mtk_scp.c:329:44: sparse: expected void *addr
drivers/remoteproc/mtk_scp.c:329:44: sparse: got void [noderef] __iomem *
drivers/remoteproc/mtk_scp.c:330:44: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem * @@
drivers/remoteproc/mtk_scp.c:330:44: sparse: expected void *addr
drivers/remoteproc/mtk_scp.c:330:44: sparse: got void [noderef] __iomem *
drivers/remoteproc/mtk_scp.c:331:44: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem * @@
drivers/remoteproc/mtk_scp.c:331:44: sparse: expected void *addr
drivers/remoteproc/mtk_scp.c:331:44: sparse: got void [noderef] __iomem *
drivers/remoteproc/mtk_scp.c:431:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem * @@
drivers/remoteproc/mtk_scp.c:431:45: sparse: expected void *addr
drivers/remoteproc/mtk_scp.c:431:45: sparse: got void [noderef] __iomem *
drivers/remoteproc/mtk_scp.c:432:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem * @@
drivers/remoteproc/mtk_scp.c:432:45: sparse: expected void *addr
drivers/remoteproc/mtk_scp.c:432:45: sparse: got void [noderef] __iomem *
drivers/remoteproc/mtk_scp.c:433:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem * @@
drivers/remoteproc/mtk_scp.c:433:45: sparse: expected void *addr
drivers/remoteproc/mtk_scp.c:433:45: sparse: got void [noderef] __iomem *
drivers/remoteproc/mtk_scp.c:434:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem * @@
drivers/remoteproc/mtk_scp.c:434:45: sparse: expected void *addr
drivers/remoteproc/mtk_scp.c:434:45: sparse: got void [noderef] __iomem *
drivers/remoteproc/mtk_scp.c:435:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem * @@
drivers/remoteproc/mtk_scp.c:435:45: sparse: expected void *addr
drivers/remoteproc/mtk_scp.c:435:45: sparse: got void [noderef] __iomem *
drivers/remoteproc/mtk_scp.c:559:23: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __iomem *cpu_addr @@ got void * @@
drivers/remoteproc/mtk_scp.c:559:23: sparse: expected void [noderef] __iomem *cpu_addr
drivers/remoteproc/mtk_scp.c:559:23: sparse: got void *
drivers/remoteproc/mtk_scp.c:572:56: sparse: sparse: incorrect type in argument 3 (different address spaces) @@ expected void *cpu_addr @@ got void [noderef] __iomem *cpu_addr @@
drivers/remoteproc/mtk_scp.c:572:56: sparse: expected void *cpu_addr
drivers/remoteproc/mtk_scp.c:572:56: sparse: got void [noderef] __iomem *cpu_addr
vim +306 drivers/remoteproc/mtk_scp.c
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 300
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 301 static void mt8192_power_on_sram(void *addr)
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 302 {
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 303 int i;
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 304
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 305 for (i = 31; i >= 0; i--)
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 @306 writel(GENMASK(i, 0), addr);
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 307 writel(0, addr);
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 308 }
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 309
:::::: The code at line 306 was first introduced by commit
:::::: fd0b6c1ff85a489bcf1bcf58af64da1aeffd39f0 remoteproc/mediatek: Add support for mt8192 SCP
:::::: TO: Pi-Hsun Shih <pihsun(a)chromium.org>
:::::: CC: Bjorn Andersson <bjorn.andersson(a)linaro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [PATCH v4] swiotlb: Adjust SWIOTBL bounce buffer size for SEV guests.
by kernel test robot
Hi Ashish,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on tip/x86/core]
[also build test ERROR on tip/x86/mm hch-configfs/for-next v5.10-rc4 next-20201117]
[cannot apply to swiotlb/linux-next]
[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/Ashish-Kalra/swiotlb-Adjust-SWIO...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 238c91115cd05c71447ea071624a4c9fe661f970
config: i386-randconfig-r006-20201117 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/ec17437123f45040f2139e36122a4021f...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Ashish-Kalra/swiotlb-Adjust-SWIOTBL-bounce-buffer-size-for-SEV-guests/20201118-020049
git checkout ec17437123f45040f2139e36122a4021f1fd3b07
# save the attached .config to linux build tree
make W=1 ARCH=i386
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 >>):
ld: arch/x86/kernel/setup.o: in function `setup_arch':
>> arch/x86/kernel/setup.c:1169: undefined reference to `swiotlb_adjust'
vim +1169 arch/x86/kernel/setup.c
1098
1099 reserve_real_mode();
1100
1101 trim_platform_memory_ranges();
1102 trim_low_memory_range();
1103
1104 init_mem_mapping();
1105
1106 idt_setup_early_pf();
1107
1108 /*
1109 * Update mmu_cr4_features (and, indirectly, trampoline_cr4_features)
1110 * with the current CR4 value. This may not be necessary, but
1111 * auditing all the early-boot CR4 manipulation would be needed to
1112 * rule it out.
1113 *
1114 * Mask off features that don't work outside long mode (just
1115 * PCIDE for now).
1116 */
1117 mmu_cr4_features = __read_cr4() & ~X86_CR4_PCIDE;
1118
1119 memblock_set_current_limit(get_max_mapped());
1120
1121 /*
1122 * NOTE: On x86-32, only from this point on, fixmaps are ready for use.
1123 */
1124
1125 #ifdef CONFIG_PROVIDE_OHCI1394_DMA_INIT
1126 if (init_ohci1394_dma_early)
1127 init_ohci1394_dma_on_all_controllers();
1128 #endif
1129 /* Allocate bigger log buffer */
1130 setup_log_buf(1);
1131
1132 if (efi_enabled(EFI_BOOT)) {
1133 switch (boot_params.secure_boot) {
1134 case efi_secureboot_mode_disabled:
1135 pr_info("Secure boot disabled\n");
1136 break;
1137 case efi_secureboot_mode_enabled:
1138 pr_info("Secure boot enabled\n");
1139 break;
1140 default:
1141 pr_info("Secure boot could not be determined\n");
1142 break;
1143 }
1144 }
1145
1146 reserve_initrd();
1147
1148 acpi_table_upgrade();
1149
1150 vsmp_init();
1151
1152 io_delay_init();
1153
1154 early_platform_quirks();
1155
1156 /*
1157 * Parse the ACPI tables for possible boot-time SMP configuration.
1158 */
1159 acpi_boot_table_init();
1160
1161 early_acpi_boot_init();
1162
1163 initmem_init();
1164 dma_contiguous_reserve(max_pfn_mapped << PAGE_SHIFT);
1165
1166 if (boot_cpu_has(X86_FEATURE_GBPAGES))
1167 hugetlb_cma_reserve(PUD_SHIFT - PAGE_SHIFT);
1168
> 1169 swiotlb_adjust();
1170
1171 /*
1172 * Reserve memory for crash kernel after SRAT is parsed so that it
1173 * won't consume hotpluggable memory.
1174 */
1175 reserve_crashkernel();
1176
1177 memblock_find_dma_reserve();
1178
1179 if (!early_xdbc_setup_hardware())
1180 early_xdbc_register_console();
1181
1182 x86_init.paging.pagetable_init();
1183
1184 kasan_init();
1185
1186 /*
1187 * Sync back kernel address range.
1188 *
1189 * FIXME: Can the later sync in setup_cpu_entry_areas() replace
1190 * this call?
1191 */
1192 sync_initial_page_table();
1193
1194 tboot_probe();
1195
1196 map_vsyscall();
1197
1198 generic_apic_probe();
1199
1200 early_quirks();
1201
1202 /*
1203 * Read APIC and some other early information from ACPI tables.
1204 */
1205 acpi_boot_init();
1206 sfi_init();
1207 x86_dtb_init();
1208
1209 /*
1210 * get boot-time SMP configuration:
1211 */
1212 get_smp_config();
1213
1214 /*
1215 * Systems w/o ACPI and mptables might not have it mapped the local
1216 * APIC yet, but prefill_possible_map() might need to access it.
1217 */
1218 init_apic_mappings();
1219
1220 prefill_possible_map();
1221
1222 init_cpu_to_node();
1223
1224 io_apic_init_mappings();
1225
1226 x86_init.hyper.guest_late_init();
1227
1228 e820__reserve_resources();
1229 e820__register_nosave_regions(max_pfn);
1230
1231 x86_init.resources.reserve_resources();
1232
1233 e820__setup_pci_gap();
1234
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months