lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201610091014.OWWv11wB%fengguang.wu@intel.com>
Date:   Sun, 9 Oct 2016 10:33:20 +0800
From:   kbuild test robot <fengguang.wu@...el.com>
To:     Timur Tabi <timur@...eaurora.org>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org
Subject: drivers/net/ethernet/qualcomm/emac/emac.c:727:3: error: implicit
 declaration of function 'iounmap'

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

Download attachment ".config.gz" of type "application/gzip" (18300 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ