[gpio:for-next 2/2] drivers/gpio/gpio-dwapb.c:291: warning: statement with no effect

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git for-next
head:   64da0612c3526f26486122669c7c4c98ad7f6568
commit: 64da0612c3526f26486122669c7c4c98ad7f6568 [2/2] Merge branch 'devel' into for-next
config: x86_64-randconfig-a0-06202324 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
        git checkout 64da0612c3526f26486122669c7c4c98ad7f6568
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/gpio/gpio-dwapb.c: In function 'dwapb_irq_set_type':
   drivers/gpio/gpio-dwapb.c:291: error: stray '\357' in program
   drivers/gpio/gpio-dwapb.c:291: error: stray '\274' in program
   drivers/gpio/gpio-dwapb.c:291: error: stray '\210' in program
   drivers/gpio/gpio-dwapb.c:291: error: expected '(' before 'type'
>> drivers/gpio/gpio-dwapb.c:291: warning: statement with no effect
   drivers/gpio/gpio-dwapb.c:291: error: stray '\357' in program
   drivers/gpio/gpio-dwapb.c:291: error: stray '\274' in program
   drivers/gpio/gpio-dwapb.c:291: error: stray '\211' in program

vim +291 drivers/gpio/gpio-dwapb.c

7779b3455 Jamie Iles                2014-02-25  275  		level |= BIT(bit);
7779b3455 Jamie Iles                2014-02-25  276  		polarity &= ~BIT(bit);
7779b3455 Jamie Iles                2014-02-25  277  		break;
7779b3455 Jamie Iles                2014-02-25  278  	case IRQ_TYPE_LEVEL_HIGH:
7779b3455 Jamie Iles                2014-02-25  279  		level &= ~BIT(bit);
7779b3455 Jamie Iles                2014-02-25  280  		polarity |= BIT(bit);
7779b3455 Jamie Iles                2014-02-25  281  		break;
7779b3455 Jamie Iles                2014-02-25  282  	case IRQ_TYPE_LEVEL_LOW:
7779b3455 Jamie Iles                2014-02-25  283  		level &= ~BIT(bit);
7779b3455 Jamie Iles                2014-02-25  284  		polarity &= ~BIT(bit);
7779b3455 Jamie Iles                2014-02-25  285  		break;
7779b3455 Jamie Iles                2014-02-25  286  	}
7779b3455 Jamie Iles                2014-02-25  287  
6a2f4b7da Sebastian Andrzej Siewior 2014-05-26  288  	irq_setup_alt_chip(d, type);
6a2f4b7da Sebastian Andrzej Siewior 2014-05-26  289  
67809b974 Weike Chen                2014-09-17  290  	dwapb_write(gpio, GPIO_INTTYPE_LEVEL, level);
a9d21d8da Xiaoguang Chen            2017-06-02 @291  	if (type != IRQ_TYPE_EDGE_BOTH)
67809b974 Weike Chen                2014-09-17  292  		dwapb_write(gpio, GPIO_INT_POLARITY, polarity);
0f4630f37 Linus Walleij             2015-12-04  293  	spin_unlock_irqrestore(&gc->bgpio_lock, flags);
7779b3455 Jamie Iles                2014-02-25  294  
7779b3455 Jamie Iles                2014-02-25  295  	return 0;
7779b3455 Jamie Iles                2014-02-25  296  }
7779b3455 Jamie Iles                2014-02-25  297  
5d60d9efe Weike Chen                2014-09-17  298  static int dwapb_gpio_set_debounce(struct gpio_chip *gc,
5d60d9efe Weike Chen                2014-09-17  299  				   unsigned offset, unsigned debounce)

:::::: The code at line 291 was first introduced by commit
:::::: a9d21d8da76636abdb0ac21a7d248ab8f9e6cc50 gpio: dwapb: fix missing first irq for edgeboth irq type

:::::: TO: Xiaoguang Chen <xgchenshy@xxxxxxxxx>
:::::: CC: Linus Walleij <linus.walleij@xxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux