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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202201041929.zvGUbHKt-lkp@intel.com>
Date:   Tue, 4 Jan 2022 20:02:33 +0800
From:   kernel test robot <lkp@...el.com>
To:     Lorenzo Bianconi <lorenzo@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Felix Fietkau <nbd@....name>
Subject: [nbd168-wireless:mt76 14/63]
 drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h:484:16: error: implicit
 declaration of function 'is_mt7915'

tree:   https://github.com/nbd168/wireless mt76
head:   f30499df8b27936cb612ef95630565bf06f48004
commit: e17a21440b61fcd6086226569f638f5704467d14 [14/63] mt76: mt7915: rely on mt76_connac_mcu_alloc_sta_req
config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20220104/202201041929.zvGUbHKt-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 11.2.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/nbd168/wireless/commit/e17a21440b61fcd6086226569f638f5704467d14
        git remote add nbd168-wireless https://github.com/nbd168/wireless
        git fetch --no-tags nbd168-wireless mt76
        git checkout e17a21440b61fcd6086226569f638f5704467d14
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/net/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

Note: the nbd168-wireless/mt76 HEAD f30499df8b27936cb612ef95630565bf06f48004 builds fine.
      It only hurts bisectability.

All errors (new ones prefixed by >>):

   In file included from drivers/net/wireless/mediatek/mt76/mt7915/pci.c:11:
   drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h: In function 'mt7915_wtbl_size':
>> drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h:484:16: error: implicit declaration of function 'is_mt7915' [-Werror=implicit-function-declaration]
     484 |         return is_mt7915(&dev->mt76) ? MT7915_WTBL_SIZE : MT7916_WTBL_SIZE;
         |                ^~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from drivers/net/wireless/mediatek/mt76/mt7915/init.c:8:
   drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h: In function 'mt7915_wtbl_size':
>> drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h:484:16: error: implicit declaration of function 'is_mt7915' [-Werror=implicit-function-declaration]
     484 |         return is_mt7915(&dev->mt76) ? MT7915_WTBL_SIZE : MT7916_WTBL_SIZE;
         |                ^~~~~~~~~
   In file included from drivers/net/wireless/mediatek/mt76/mt7915/../mt76_connac_mcu.h:7,
                    from drivers/net/wireless/mediatek/mt76/mt7915/mcu.h:7,
                    from drivers/net/wireless/mediatek/mt76/mt7915/init.c:10:
   drivers/net/wireless/mediatek/mt76/mt7915/../mt76_connac.h: At top level:
>> drivers/net/wireless/mediatek/mt76/mt7915/../mt76_connac.h:103:20: error: conflicting types for 'is_mt7915'; have 'bool(struct mt76_dev *)' {aka '_Bool(struct mt76_dev *)'}
     103 | static inline bool is_mt7915(struct mt76_dev *dev)
         |                    ^~~~~~~~~
   In file included from drivers/net/wireless/mediatek/mt76/mt7915/init.c:8:
   drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h:484:16: note: previous implicit declaration of 'is_mt7915' with type 'int()'
     484 |         return is_mt7915(&dev->mt76) ? MT7915_WTBL_SIZE : MT7916_WTBL_SIZE;
         |                ^~~~~~~~~
   cc1: some warnings being treated as errors


vim +/is_mt7915 +484 drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h

e57b7901469fc0b Ryder Lee 2020-04-25  481  
704f2ebdf4b17cb Bo Jiao   2021-12-20  482  static inline u16 mt7915_wtbl_size(struct mt7915_dev *dev)
704f2ebdf4b17cb Bo Jiao   2021-12-20  483  {
704f2ebdf4b17cb Bo Jiao   2021-12-20 @484  	return is_mt7915(&dev->mt76) ? MT7915_WTBL_SIZE : MT7916_WTBL_SIZE;
704f2ebdf4b17cb Bo Jiao   2021-12-20  485  }
704f2ebdf4b17cb Bo Jiao   2021-12-20  486  

:::::: The code at line 484 was first introduced by commit
:::::: 704f2ebdf4b17cb36bdc9d1379b84c41891cb351 mt76: mt7915: enlarge wcid size to 544

:::::: TO: Bo Jiao <Bo.Jiao@...iatek.com>
:::::: CC: Felix Fietkau <nbd@....name>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ