From: kernel test robot <lkp@intel.com>
To: Jeff Hsu <Jeff.Hsu@mediatek.com>
Cc: 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:43: error: 'device' undeclared
Date: Wed, 13 May 2026 09:33:36 +0200 [thread overview]
Message-ID: <202605130912.xc5U1ul6-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-ltp (https://download.01.org/0day-ci/archive/20260513/202605130912.xc5U1ul6-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260513/202605130912.xc5U1ul6-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/202605130912.xc5U1ul6-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/kernel.h:22,
from drivers/net/wireless/mediatek/mt76/mt7925/pci.c:4:
drivers/net/wireless/mediatek/mt76/mt7925/pci.c: In function 'mt7925_coredump':
>> drivers/net/wireless/mediatek/mt76/mt7925/pci.c:682:43: error: 'device' undeclared (first use in this function)
682 | struct pci_dev *pdev = to_pci_dev(device);
| ^~~~~~
include/linux/container_of.h:20:33: note: in definition of macro 'container_of'
20 | void *__mptr = (void *)(ptr); \
| ^~~
drivers/net/wireless/mediatek/mt76/mt7925/pci.c:682:32: note: in expansion of macro 'to_pci_dev'
682 | struct pci_dev *pdev = to_pci_dev(device);
| ^~~~~~~~~~
drivers/net/wireless/mediatek/mt76/mt7925/pci.c:682:43: note: each undeclared identifier is reported only once for each function it appears in
682 | struct pci_dev *pdev = to_pci_dev(device);
| ^~~~~~
include/linux/container_of.h:20:33: note: in definition of macro 'container_of'
20 | void *__mptr = (void *)(ptr); \
| ^~~
drivers/net/wireless/mediatek/mt76/mt7925/pci.c:682:32: note: in expansion of macro 'to_pci_dev'
682 | struct pci_dev *pdev = to_pci_dev(device);
| ^~~~~~~~~~
In file included from include/linux/container_of.h:5:
include/linux/compiler_types.h:610:27: error: expression in static assertion is not an integer
610 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:80:56: note: in definition of macro '__static_assert'
80 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~
include/linux/container_of.h:21:9: note: in expansion of macro 'static_assert'
21 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:21:23: note: in expansion of macro '__same_type'
21 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
include/linux/pci.h:609:23: note: in expansion of macro 'container_of'
609 | #define to_pci_dev(n) container_of(n, struct pci_dev, dev)
| ^~~~~~~~~~~~
drivers/net/wireless/mediatek/mt76/mt7925/pci.c:682:32: note: in expansion of macro 'to_pci_dev'
682 | struct pci_dev *pdev = to_pci_dev(device);
| ^~~~~~~~~~
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
next reply other threads:[~2026-05-13 7:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-13 7:33 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-05-13 17:39 [nbd168-wireless:pr/17 37/37] drivers/net/wireless/mediatek/mt76/mt7925/pci.c:682:43: error: 'device' undeclared kernel test robot
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=202605130912.xc5U1ul6-lkp@intel.com \
--to=lkp@intel.com \
--cc=Jeff.Hsu@mediatek.com \
--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 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.