From: kernel test robot <lkp@intel.com>
To: Jeff Hsu <Jeff.Hsu@mediatek.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Sean Wang <sean.wang@kernel.org>
Subject: [nbd168-wireless:pr/17 37/37] drivers/net/wireless/mediatek/mt76/mt7925/pci.c:682:36: error: use of undeclared identifier 'device'
Date: Wed, 13 May 2026 06:39:54 +0200 [thread overview]
Message-ID: <202605130608.70lPftBK-lkp@intel.com> (raw)
tree: https://github.com/nbd168/wireless pr/17
head: b0f5b3976cca04fffdf61e07483536cef5baa39f
commit: b0f5b3976cca04fffdf61e07483536cef5baa39f [37/37] wifi: mt76: mt7925: Add coredump callback in pci_driver
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20260513/202605130608.70lPftBK-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260513/202605130608.70lPftBK-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202605130608.70lPftBK-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/net/wireless/mediatek/mt76/mt7925/pci.c:682:36: error: use of undeclared identifier 'device'
682 | struct pci_dev *pdev = to_pci_dev(device);
| ^
>> drivers/net/wireless/mediatek/mt76/mt7925/pci.c:682:36: error: use of undeclared identifier 'device'
>> drivers/net/wireless/mediatek/mt76/mt7925/pci.c:682:36: error: use of undeclared identifier 'device'
3 errors generated.
vim +/device +682 drivers/net/wireless/mediatek/mt76/mt7925/pci.c
679
680 static void mt7925_coredump(struct device *dev)
681 {
> 682 struct pci_dev *pdev = to_pci_dev(device);
683 struct mt76_dev *mdev = pci_get_drvdata(pdev);
684 struct mt792x_dev *dev_792x = container_of(mdev, struct mt792x_dev, mt76);
685
686 mt792x_mutex_acquire(dev_792x);
687 mt7925_mcu_chip_config(dev_792x, "assert");
688 mt792x_mutex_release(dev_792x);
689 }
690
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-05-13 4:40 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=202605130608.70lPftBK-lkp@intel.com \
--to=lkp@intel.com \
--cc=Jeff.Hsu@mediatek.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sean.wang@kernel.org \
/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