* drivers/net/ethernet/qualcomm/emac/emac.c:727:3: error: implicit declaration of function 'iounmap'
@ 2016-10-09 2:33 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2016-10-09 2:33 UTC (permalink / raw)
To: Timur Tabi; +Cc: kbuild-all, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 8471 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b66484cd74706fa8681d051840fe4b18a3da40ff
commit: 54e19bc74f3380d414681762ceed9f7245bc6a6e net: qcom/emac: do not use devm on internal phy pdev
date: 10 days ago
config: um-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 54e19bc74f3380d414681762ceed9f7245bc6a6e
# save the attached .config to linux build tree
make ARCH=um
All errors (new ones prefixed by >>):
drivers/net/ethernet/qualcomm/emac/emac.c: In function 'emac_remove':
>> drivers/net/ethernet/qualcomm/emac/emac.c:727:3: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
iounmap(adpt->phy.digital);
^~~~~~~
Cyclomatic Complexity 5 include/linux/compiler.h:__write_once_size
Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:test_and_set_bit
Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:constant_test_bit
Cyclomatic Complexity 1 include/linux/list.h:INIT_LIST_HEAD
Cyclomatic Complexity 1 include/linux/spinlock.h:spinlock_check
Cyclomatic Complexity 1 include/linux/spinlock.h:spin_lock
Cyclomatic Complexity 1 include/linux/spinlock.h:spin_unlock
Cyclomatic Complexity 1 include/linux/err.h:PTR_ERR
Cyclomatic Complexity 1 include/linux/err.h:IS_ERR
Cyclomatic Complexity 1 include/linux/workqueue.h:queue_work
Cyclomatic Complexity 1 include/linux/workqueue.h:schedule_work
Cyclomatic Complexity 1 include/linux/device.h:dev_get_drvdata
Cyclomatic Complexity 1 include/linux/device.h:dev_set_drvdata
Cyclomatic Complexity 1 include/asm-generic/io.h:__raw_readl
Cyclomatic Complexity 1 include/asm-generic/io.h:__raw_writel
Cyclomatic Complexity 1 include/asm-generic/io.h:readl
Cyclomatic Complexity 1 include/asm-generic/io.h:writel
Cyclomatic Complexity 1 include/linux/dma-mapping.h:get_dma_ops
Cyclomatic Complexity 3 include/linux/dma-mapping.h:dma_supported
Cyclomatic Complexity 4 include/linux/dma-mapping.h:dma_set_mask
Cyclomatic Complexity 2 include/linux/dma-mapping.h:dma_set_coherent_mask
Cyclomatic Complexity 2 include/linux/dma-mapping.h:dma_set_mask_and_coherent
Cyclomatic Complexity 1 include/linux/netdevice.h:napi_disable_pending
Cyclomatic Complexity 3 include/linux/netdevice.h:napi_schedule_prep
Cyclomatic Complexity 1 include/linux/netdevice.h:napi_complete
Cyclomatic Complexity 1 include/linux/netdevice.h:netdev_priv
Cyclomatic Complexity 1 include/linux/netdevice.h:netif_running
Cyclomatic Complexity 1 include/linux/etherdevice.h:eth_random_addr
Cyclomatic Complexity 1 include/linux/etherdevice.h:eth_hw_addr_random
Cyclomatic Complexity 1 include/linux/etherdevice.h:ether_addr_copy
Cyclomatic Complexity 1 include/linux/clk.h:clk_prepare
Cyclomatic Complexity 1 include/linux/clk.h:clk_unprepare
Cyclomatic Complexity 1 include/linux/clk.h:devm_clk_get
Cyclomatic Complexity 1 include/linux/clk.h:clk_enable
Cyclomatic Complexity 1 include/linux/clk.h:clk_disable
Cyclomatic Complexity 1 include/linux/clk.h:clk_set_rate
Cyclomatic Complexity 3 include/linux/clk.h:clk_prepare_enable
Cyclomatic Complexity 1 include/linux/clk.h:clk_disable_unprepare
Cyclomatic Complexity 1 drivers/net/ethernet/qualcomm/emac/emac.c:emac_tx_timeout
Cyclomatic Complexity 3 drivers/net/ethernet/qualcomm/emac/emac.c:emac_get_stats64
Cyclomatic Complexity 1 drivers/net/ethernet/qualcomm/emac/emac.c:emac_init_adapter
Cyclomatic Complexity 7 drivers/net/ethernet/qualcomm/emac/emac.c:emac_clks_phase2_init
Cyclomatic Complexity 2 drivers/net/ethernet/qualcomm/emac/emac.c:emac_clks_teardown
Cyclomatic Complexity 2 drivers/net/ethernet/qualcomm/emac/emac.c:emac_remove
Cyclomatic Complexity 3 drivers/net/ethernet/qualcomm/emac/emac.c:emac_clks_get
Cyclomatic Complexity 5 drivers/net/ethernet/qualcomm/emac/emac.c:emac_clks_phase1_init
Cyclomatic Complexity 2 drivers/net/ethernet/qualcomm/emac/emac.c:emac_napi_rtx
Cyclomatic Complexity 3 drivers/net/ethernet/qualcomm/emac/emac.c:emac_ioctl
Cyclomatic Complexity 2 drivers/net/ethernet/qualcomm/emac/emac.c:emac_rx_mode_set
Cyclomatic Complexity 1 drivers/net/ethernet/qualcomm/emac/emac.c:emac_start_xmit
Cyclomatic Complexity 1 drivers/net/ethernet/qualcomm/emac/emac.c:emac_close
Cyclomatic Complexity 3 drivers/net/ethernet/qualcomm/emac/emac.c:emac_open
Cyclomatic Complexity 5 drivers/net/ethernet/qualcomm/emac/emac.c:emac_probe_resources
Cyclomatic Complexity 11 drivers/net/ethernet/qualcomm/emac/emac.c:emac_probe
Cyclomatic Complexity 1 drivers/net/ethernet/qualcomm/emac/emac.c:emac_reg_update32
Cyclomatic Complexity 1 drivers/net/ethernet/qualcomm/emac/emac.c:emac_reinit_locked
Cyclomatic Complexity 1 drivers/net/ethernet/qualcomm/emac/emac.c:emac_work_thread
Cyclomatic Complexity 3 drivers/net/ethernet/qualcomm/emac/emac.c:emac_set_features
Cyclomatic Complexity 4 drivers/net/ethernet/qualcomm/emac/emac.c:emac_change_mtu
Cyclomatic Complexity 10 drivers/net/ethernet/qualcomm/emac/emac.c:emac_isr
Cyclomatic Complexity 1 drivers/net/ethernet/qualcomm/emac/emac.c:emac_platform_driver_init
Cyclomatic Complexity 1 drivers/net/ethernet/qualcomm/emac/emac.c:emac_platform_driver_exit
Cyclomatic Complexity 1 drivers/net/ethernet/qualcomm/emac/emac.c:_GLOBAL__sub_I_65535_0_emac_reg_update32
cc1: some warnings being treated as errors
--
drivers/net/ethernet/qualcomm/emac/emac-sgmii.c: In function 'emac_sgmii_config':
>> drivers/net/ethernet/qualcomm/emac/emac-sgmii.c:709:14: error: implicit declaration of function 'ioremap' [-Werror=implicit-function-declaration]
phy->base = ioremap(res->start, resource_size(res));
^~~~~~~
drivers/net/ethernet/qualcomm/emac/emac-sgmii.c:709:12: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
phy->base = ioremap(res->start, resource_size(res));
^
drivers/net/ethernet/qualcomm/emac/emac-sgmii.c:718:16: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
phy->digital = ioremap(res->start, resource_size(res));
^
>> drivers/net/ethernet/qualcomm/emac/emac-sgmii.c:738:3: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
iounmap(phy->digital);
^~~~~~~
Cyclomatic Complexity 3 include/linux/ktime.h:ktime_compare
Cyclomatic Complexity 1 include/linux/ktime.h:ktime_add_us
Cyclomatic Complexity 1 include/linux/err.h:PTR_ERR
Cyclomatic Complexity 1 include/linux/err.h:IS_ERR
Cyclomatic Complexity 1 include/asm-generic/io.h:__raw_readl
Cyclomatic Complexity 1 include/asm-generic/io.h:__raw_writel
Cyclomatic Complexity 1 include/asm-generic/io.h:readl
Cyclomatic Complexity 1 include/asm-generic/io.h:writel
Cyclomatic Complexity 1 include/linux/ioport.h:resource_size
Cyclomatic Complexity 1 include/linux/clk.h:clk_set_rate
Cyclomatic Complexity 2 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c:emac_reg_write_all
Cyclomatic Complexity 6 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c:emac_sgmii_link_init
Cyclomatic Complexity 5 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c:emac_sgmii_irq_clear
Cyclomatic Complexity 5 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c:emac_sgmii_init_v1
Cyclomatic Complexity 5 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c:emac_sgmii_init_v2
Cyclomatic Complexity 1 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c:emac_sgmii_reset_prepare
Cyclomatic Complexity 2 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c:emac_sgmii_reset
Cyclomatic Complexity 9 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c:emac_sgmii_config
Cyclomatic Complexity 1 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c:_GLOBAL__sub_I_65535_0_emac_sgmii_init_v1
cc1: some warnings being treated as errors
vim +/iounmap +727 drivers/net/ethernet/qualcomm/emac/emac.c
721 emac_clks_teardown(adpt);
722
723 mdiobus_unregister(adpt->mii_bus);
724 free_netdev(netdev);
725
726 if (adpt->phy.digital)
> 727 iounmap(adpt->phy.digital);
728 iounmap(adpt->phy.base);
729
730 return 0;
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 18300 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-10-09 2:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-09 2:33 drivers/net/ethernet/qualcomm/emac/emac.c:727:3: error: implicit declaration of function 'iounmap' kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.