From: kernel test robot <lkp@intel.com>
To: Lorenzo Bianconi <lorenzo@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Felix Fietkau <nbd@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'
Date: Tue, 4 Jan 2022 20:02:33 +0800 [thread overview]
Message-ID: <202201041929.zvGUbHKt-lkp@intel.com> (raw)
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@intel.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@mediatek.com>
:::::: CC: Felix Fietkau <nbd@nbd.name>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2022-01-04 12:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202201041929.zvGUbHKt-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lorenzo@kernel.org \
--cc=nbd@nbd.name \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®