From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [arnd-playground:randconfig-v5.12 397/597] arch/alpha/kernel/pci.c:213:25: error: expected identifier or '(' before '=' token
Date: Sat, 20 Mar 2021 01:21:05 +0800 [thread overview]
Message-ID: <202103200103.II8qvkBR-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3352 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git randconfig-v5.12
head: fd21c2581b744639b5207c11651ab40abf13701a
commit: 130e1a398709fc631f3438fa57c450a4b392603e [397/597] pci: move PCI_PROBE_ONLY flag into host_bridge
config: alpha-defconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.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://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/commit/?id=130e1a398709fc631f3438fa57c450a4b392603e
git remote add arnd-playground https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
git fetch --no-tags arnd-playground randconfig-v5.12
git checkout 130e1a398709fc631f3438fa57c450a4b392603e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
arch/alpha/kernel/pci.c: In function 'pdev_save_srm_config':
>> arch/alpha/kernel/pci.c:213:25: error: expected identifier or '(' before '=' token
213 | struct pci_host_bridge = pci_find_host_bridge(dev->bus);
| ^
>> arch/alpha/kernel/pci.c:216:26: error: 'bridge' undeclared (first use in this function)
216 | if (!alpha_using_srm || bridge->probe_only)
| ^~~~~~
arch/alpha/kernel/pci.c:216:26: note: each undeclared identifier is reported only once for each function it appears in
arch/alpha/kernel/pci.c: In function 'pcibios_fixup_bus':
arch/alpha/kernel/pci.c:254:25: error: expected identifier or '(' before '=' token
254 | struct pci_host_bridge = pci_find_host_bridge(bus);
| ^
arch/alpha/kernel/pci.c:256:6: error: 'bridge' undeclared (first use in this function)
256 | if (bridge->probe_only && dev &&
| ^~~~~~
arch/alpha/kernel/pci.c: At top level:
arch/alpha/kernel/pci.c:283:1: warning: no previous prototype for 'pcibios_claim_one_bus' [-Wmissing-prototypes]
283 | pcibios_claim_one_bus(struct pci_bus *b)
| ^~~~~~~~~~~~~~~~~~~~~
vim +213 arch/alpha/kernel/pci.c
209
210 static void pdev_save_srm_config(struct pci_dev *dev)
211 {
212 struct pdev_srm_saved_conf *tmp;
> 213 struct pci_host_bridge = pci_find_host_bridge(dev->bus);
214 static int printed = 0;
215
> 216 if (!alpha_using_srm || bridge->probe_only)
217 return;
218
219 if (!printed) {
220 printk(KERN_INFO "pci: enabling save/restore of SRM state\n");
221 printed = 1;
222 }
223
224 tmp = kmalloc(sizeof(*tmp), GFP_KERNEL);
225 if (!tmp) {
226 printk(KERN_ERR "%s: kmalloc() failed!\n", __func__);
227 return;
228 }
229 tmp->next = srm_saved_configs;
230 tmp->dev = dev;
231
232 pci_save_state(dev);
233
234 srm_saved_configs = tmp;
235 }
236
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 13800 bytes --]
reply other threads:[~2021-03-19 17:21 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=202103200103.II8qvkBR-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.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.