[linux-next:master 12218/12292] drivers/irqchip/irq-renesas-h8300h.c:66:13: error: unused variable 'bit'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   aa14a3016182213f022068500486ef3bcacb9006
commit: 1397e99a0cfdce6d35cb9ae5d558428c8a88cc90 [12218/12292] Merge remote-tracking branch 'h8300/h8300-next'
config: h8300-randconfig-r015-20210910 (attached as .config)
compiler: h8300-linux-gcc (GCC) 11.2.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/next/linux-next.git/commit/?id=1397e99a0cfdce6d35cb9ae5d558428c8a88cc90
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 1397e99a0cfdce6d35cb9ae5d558428c8a88cc90
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=h8300 

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

All errors (new ones prefixed by >>):

   drivers/irqchip/irq-renesas-h8300h.c: In function 'h8300h_ack_irq':
>> drivers/irqchip/irq-renesas-h8300h.c:66:13: error: unused variable 'bit' [-Werror=unused-variable]
      66 |         int bit;
         |             ^~~
   cc1: all warnings being treated as errors


vim +/bit +66 drivers/irqchip/irq-renesas-h8300h.c

8bd55b5fce8011 Yoshinori Sato 2020-04-15  63  
8bd55b5fce8011 Yoshinori Sato 2020-04-15  64  static void h8300h_ack_irq(struct irq_data *data)
8bd55b5fce8011 Yoshinori Sato 2020-04-15  65  {
8bd55b5fce8011 Yoshinori Sato 2020-04-15 @66  	int bit;
8bd55b5fce8011 Yoshinori Sato 2020-04-15  67  	int irq = data->irq - 12;
8bd55b5fce8011 Yoshinori Sato 2020-04-15  68  
8bd55b5fce8011 Yoshinori Sato 2020-04-15  69  	if (irq < 6)
8bd55b5fce8011 Yoshinori Sato 2020-04-15  70  		ctrl_bclr(irq, ISR);
8a7644821ae00b Yoshinori Sato 2015-05-10  71  }
8a7644821ae00b Yoshinori Sato 2015-05-10  72  

:::::: The code at line 66 was first introduced by commit
:::::: 8bd55b5fce8011d0026f7d233f7b45788f01ad0c irq-renesas-h8300h: Fix external interrupt contorol.

:::::: TO: Yoshinori Sato <ysato@xxxxxxxxxxxxxxxxxxxx>
:::::: CC: Yoshinori Sato <ysato@xxxxxxxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux