* [nbd168-wireless:pr/17 37/37] drivers/net/wireless/mediatek/mt76/mt7925/pci.c:682:43: error: 'device' undeclared
@ 2026-05-13 7:33 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-05-13 7:33 UTC (permalink / raw)
To: Jeff Hsu; +Cc: oe-kbuild-all, Sean Wang
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [nbd168-wireless:pr/17 37/37] drivers/net/wireless/mediatek/mt76/mt7925/pci.c:682:43: error: 'device' undeclared
@ 2026-05-13 17:39 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-05-13 17:39 UTC (permalink / raw)
To: Jeff Hsu; +Cc: oe-kbuild-all, Sean Wang
tree: https://github.com/nbd168/wireless pr/17
head: b0f5b3976cca04fffdf61e07483536cef5baa39f
commit: b0f5b3976cca04fffdf61e07483536cef5baa39f [37/37] wifi: mt76: mt7925: Add coredump callback in pci_driver
config: arc-allmodconfig (https://download.01.org/0day-ci/archive/20260514/202605140159.DS89s5tn-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260514/202605140159.DS89s5tn-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/202605140159.DS89s5tn-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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-05-13 17:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-13 7:33 [nbd168-wireless:pr/17 37/37] drivers/net/wireless/mediatek/mt76/mt7925/pci.c:682:43: error: 'device' undeclared kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2026-05-13 17:39 kernel test robot
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.