From: kernel test robot <lkp@intel.com>
To: David Matlack <dmatlack@google.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
0day robot <lkp@intel.com>
Subject: drivers/pci/liveupdate.h:31:1: error: expected identifier or '('
Date: Thu, 14 May 2026 11:26:43 +0200 [thread overview]
Message-ID: <202605141129.QEeW4TcK-lkp@intel.com> (raw)
tree: https://github.com/intel-lab-lkp/linux/commits/David-Matlack/PCI-liveupdate-Set-up-FLB-handler-for-the-PCI-core/20260514-111126
head: b4570b026ee40593fe4f6931f522a15adc6ea247
commit: f88bd26914e11847b921b4d09d4b91be5dec94ba PCI: liveupdate: Freeze preservation status during shutdown
date: 6 hours ago
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260514/202605141129.QEeW4TcK-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260514/202605141129.QEeW4TcK-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/202605141129.QEeW4TcK-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/pci/probe.c:27:
>> drivers/pci/liveupdate.h:31:1: error: expected identifier or '('
31 | {
| ^
1 error generated.
--
In file included from drivers/pci/pci.c:36:
>> drivers/pci/liveupdate.h:31:1: error: expected identifier or '('
31 | {
| ^
drivers/pci/pci.c:427:9: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference]
427 | return PCI_FIND_NEXT_CAP(pci_bus_read_config, pos, cap, NULL, bus, devfn);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/pci/pci.h:161:5: note: expanded from macro 'PCI_FIND_NEXT_CAP'
161 | *(u8 *)prev_ptr = __prev_pos; \
| ^~~~~~~~~~~~~~~
drivers/pci/pci.c:427:9: note: consider using __builtin_trap() or qualifying pointer with 'volatile'
drivers/pci/pci.h:161:5: note: expanded from macro 'PCI_FIND_NEXT_CAP'
161 | *(u8 *)prev_ptr = __prev_pos; \
| ^
drivers/pci/pci.c:531:9: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference]
531 | return PCI_FIND_NEXT_EXT_CAP(pci_bus_read_config, start, cap,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
532 | NULL, dev->bus, dev->devfn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/pci/pci.h:209:5: note: expanded from macro 'PCI_FIND_NEXT_EXT_CAP'
209 | *(u16 *)prev_ptr = __prev_pos; \
| ^~~~~~~~~~~~~~~~
drivers/pci/pci.c:531:9: note: consider using __builtin_trap() or qualifying pointer with 'volatile'
drivers/pci/pci.h:209:5: note: expanded from macro 'PCI_FIND_NEXT_EXT_CAP'
209 | *(u16 *)prev_ptr = __prev_pos; \
| ^
drivers/pci/pci.c:600:8: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference]
600 | pos = PCI_FIND_NEXT_CAP(pci_bus_read_config, pos,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
601 | PCI_CAP_ID_HT, NULL, dev->bus, dev->devfn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/pci/pci.h:161:5: note: expanded from macro 'PCI_FIND_NEXT_CAP'
161 | *(u8 *)prev_ptr = __prev_pos; \
| ^~~~~~~~~~~~~~~
drivers/pci/pci.c:600:8: note: consider using __builtin_trap() or qualifying pointer with 'volatile'
drivers/pci/pci.h:161:5: note: expanded from macro 'PCI_FIND_NEXT_CAP'
161 | *(u8 *)prev_ptr = __prev_pos; \
| ^
drivers/pci/pci.c:610:9: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference]
610 | pos = PCI_FIND_NEXT_CAP(pci_bus_read_config,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
611 | pos + PCI_CAP_LIST_NEXT,
| ~~~~~~~~~~~~~~~~~~~~~~~~
612 | PCI_CAP_ID_HT, NULL, dev->bus,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
613 | dev->devfn);
| ~~~~~~~~~~~
drivers/pci/pci.h:161:5: note: expanded from macro 'PCI_FIND_NEXT_CAP'
161 | *(u8 *)prev_ptr = __prev_pos; \
| ^~~~~~~~~~~~~~~
drivers/pci/pci.c:610:9: note: consider using __builtin_trap() or qualifying pointer with 'volatile'
drivers/pci/pci.h:161:5: note: expanded from macro 'PCI_FIND_NEXT_CAP'
161 | *(u8 *)prev_ptr = __prev_pos; \
| ^
4 warnings and 1 error generated.
vim +31 drivers/pci/liveupdate.h
29
30 static inline void pci_liveupdate_freeze(struct pci_dev *dev);
> 31 {
32 }
33
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-05-14 9:26 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=202605141129.QEeW4TcK-lkp@intel.com \
--to=lkp@intel.com \
--cc=dmatlack@google.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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.