lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202108231924.qUfSFbhu-lkp@intel.com>
Date:   Mon, 23 Aug 2021 19:38:31 +0800
From:   kernel test robot <lkp@...el.com>
To:     Anup Patel <anup.patel@....com>
Cc:     clang-built-linux@...glegroups.com, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
Subject: [avpatel:riscv_kvm_aia_v1 35/44]
 drivers/irqchip/irq-riscv-imsic.c:268:14: error: no member named 'base_ipi'
 in 'struct imsic_priv'

tree:   https://github.com/avpatel/linux.git riscv_kvm_aia_v1
head:   d323ef43a3ca4d3c451244d1aec04536c09a525b
commit: d0363c5e3512c058637a3c4b062f7a06c2498076 [35/44] irqchip: Add RISC-V incoming MSI controller driver
config: riscv-buildonly-randconfig-r004-20210822 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 79b55e5038324e61a3abf4e6a9a949c473edd858)
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 riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://github.com/avpatel/linux/commit/d0363c5e3512c058637a3c4b062f7a06c2498076
        git remote add avpatel https://github.com/avpatel/linux.git
        git fetch --no-tags avpatel riscv_kvm_aia_v1
        git checkout d0363c5e3512c058637a3c4b062f7a06c2498076
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=riscv SHELL=/bin/bash drivers/irqchip/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

>> drivers/irqchip/irq-riscv-imsic.c:268:14: error: no member named 'base_ipi' in 'struct imsic_priv'
                   if ((priv->base_ipi <= i) &&
                        ~~~~  ^
   drivers/irqchip/irq-riscv-imsic.c:269:19: error: no member named 'base_ipi' in 'struct imsic_priv'
                       (i < (priv->base_ipi + priv->nr_ipis)))
                             ~~~~  ^
>> drivers/irqchip/irq-riscv-imsic.c:269:36: error: no member named 'nr_ipis' in 'struct imsic_priv'; did you mean 'nr_ids'?
                       (i < (priv->base_ipi + priv->nr_ipis)))
                                                    ^~~~~~~
                                                    nr_ids
   drivers/irqchip/irq-riscv-imsic.c:69:6: note: 'nr_ids' declared here
           u32 nr_ids;
               ^
   drivers/irqchip/irq-riscv-imsic.c:906:19: error: no member named 'base_ipi' in 'struct imsic_priv'
                                          &priv->base_ipi))
                                           ~~~~  ^
   drivers/irqchip/irq-riscv-imsic.c:907:9: error: no member named 'base_ipi' in 'struct imsic_priv'
                   priv->base_ipi = 0;
                   ~~~~  ^
   drivers/irqchip/irq-riscv-imsic.c:909:19: error: no member named 'nr_ipis' in 'struct imsic_priv'; did you mean 'nr_ids'?
                                          &priv->nr_ipis))
                                                 ^~~~~~~
                                                 nr_ids
   drivers/irqchip/irq-riscv-imsic.c:69:6: note: 'nr_ids' declared here
           u32 nr_ids;
               ^
   drivers/irqchip/irq-riscv-imsic.c:910:9: error: no member named 'nr_ipis' in 'struct imsic_priv'; did you mean 'nr_ids'?
                   priv->nr_ipis = 0;
                         ^~~~~~~
                         nr_ids
   drivers/irqchip/irq-riscv-imsic.c:69:6: note: 'nr_ids' declared here
           u32 nr_ids;
               ^
   7 errors generated.


vim +268 drivers/irqchip/irq-riscv-imsic.c

   261	
   262	static void imsic_ids_local_sync(struct imsic_priv *priv)
   263	{
   264		int i;
   265	
   266		raw_spin_lock(&priv->ids_lock);
   267		for (i = 1; i <= priv->nr_ids; i++) {
 > 268			if ((priv->base_ipi <= i) &&
 > 269			    (i < (priv->base_ipi + priv->nr_ipis)))
   270				continue;
   271			if (test_bit(i, priv->ids_enabled_bimap))
   272				csr_write(CSR_SETEIENUM, i);
   273			else
   274				csr_write(CSR_CLREIENUM, i);
   275		}
   276		raw_spin_unlock(&priv->ids_lock);
   277	}
   278	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (41255 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ