All of lore.kernel.org
 help / color / mirror / Atom feed
* [tglx-devel:devicemsi 10/38] arch/x86/kernel/devicetree.c:232:6: error: no member named 'ioapic_id' in 'struct irq_alloc_info'; did you mean
@ 2020-08-21  8:41 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-08-21  8:41 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4810 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git devicemsi
head:   67d94e5e316843b1af2b0c4cf5d4f8e9a91d97b4
commit: 92a04d4c74918f3dd5870d946b73b61161e1b161 [10/38] x86/ioapic: Consolidate IOAPIC allocation
config: x86_64-randconfig-a002-20200820 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b587ca93be114d07ec3bf654add97d7872325281)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        git checkout 92a04d4c74918f3dd5870d946b73b61161e1b161
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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/x86/kernel/devicetree.c:232:6: error: no member named 'ioapic_id' in 'struct irq_alloc_info'; did you mean 'ioapic'?
           tmp.ioapic_id = mpc_ioapic_id(mp_irqdomain_ioapic_idx(domain));
               ^~~~~~~~~
               ioapic
   arch/x86/include/asm/hw_irq.h:78:28: note: 'ioapic' declared here
                   struct ioapic_alloc_info        ioapic;
                                                   ^
>> arch/x86/kernel/devicetree.c:232:16: error: assigning to 'struct ioapic_alloc_info' from incompatible type 'int'
           tmp.ioapic_id = mpc_ioapic_id(mp_irqdomain_ioapic_idx(domain));
                         ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/x86/kernel/devicetree.c:233:6: error: no member named 'ioapic_pin' in 'struct irq_alloc_info'
           tmp.ioapic_pin = fwspec->param[0];
           ~~~ ^
   3 errors generated.

# https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id=92a04d4c74918f3dd5870d946b73b61161e1b161
git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel devicemsi
git checkout 92a04d4c74918f3dd5870d946b73b61161e1b161
vim +232 arch/x86/kernel/devicetree.c

bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22  214  
d32932d02e1869b Jiang Liu                 2015-04-13  215  static int dt_irqdomain_alloc(struct irq_domain *domain, unsigned int virq,
d32932d02e1869b Jiang Liu                 2015-04-13  216  			      unsigned int nr_irqs, void *arg)
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22  217  {
0a5169add90e43a Ivan Gorinov              2018-03-07  218  	struct irq_fwspec *fwspec = (struct irq_fwspec *)arg;
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22  219  	struct of_ioapic_type *it;
d32932d02e1869b Jiang Liu                 2015-04-13  220  	struct irq_alloc_info tmp;
0a5169add90e43a Ivan Gorinov              2018-03-07  221  	int type_index;
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22  222  
0a5169add90e43a Ivan Gorinov              2018-03-07  223  	if (WARN_ON(fwspec->param_count < 2))
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22  224  		return -EINVAL;
0a5169add90e43a Ivan Gorinov              2018-03-07  225  
0a5169add90e43a Ivan Gorinov              2018-03-07  226  	type_index = fwspec->param[1];
0a5169add90e43a Ivan Gorinov              2018-03-07  227  	if (type_index >= ARRAY_SIZE(of_ioapic_type))
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22  228  		return -EINVAL;
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22  229  
0a5169add90e43a Ivan Gorinov              2018-03-07  230  	it = &of_ioapic_type[type_index];
d32932d02e1869b Jiang Liu                 2015-04-13  231  	ioapic_set_alloc_attr(&tmp, NUMA_NO_NODE, it->trigger, it->polarity);
d32932d02e1869b Jiang Liu                 2015-04-13 @232  	tmp.ioapic_id = mpc_ioapic_id(mp_irqdomain_ioapic_idx(domain));
0a5169add90e43a Ivan Gorinov              2018-03-07 @233  	tmp.ioapic_pin = fwspec->param[0];
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22  234  
d32932d02e1869b Jiang Liu                 2015-04-13  235  	return mp_irqdomain_alloc(domain, virq, nr_irqs, &tmp);
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22  236  }
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22  237  

:::::: The code at line 232 was first introduced by commit
:::::: d32932d02e1869be838cea3ace42467c360db377 x86/irq: Convert IOAPIC to use hierarchical irqdomain interfaces

:::::: TO: Jiang Liu <jiang.liu@linux.intel.com>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

---
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: 42248 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-21  8:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-21  8:41 [tglx-devel:devicemsi 10/38] arch/x86/kernel/devicetree.c:232:6: error: no member named 'ioapic_id' in 'struct irq_alloc_info'; did you mean 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.