linux-next: build warning after merge of the gpio-brgl tree
Hi Bartosz,
After merging the gpio-brgl tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:
drivers/gpio/gpio-davinci.c: In function 'davinci_gpio_get_irq_chip':drivers/gpio/gpio-davinci.c:472:9: warning: function returns address of local variable [-Wreturn-local-addr]
return &gpio_unbanked.chip;
^~~~~~~~~~~~~~~~~~~
drivers/gpio/gpio-davinci.c: In function 'keystone_gpio_get_irq_chip':
drivers/gpio/gpio-davinci.c:480:9: warning: function returns address of local variable [-Wreturn-local-addr]
return &gpio_unbanked;
^~~~~~~~~~~~~~Introduced by commit
ee5e87158e63 ("gpio: davinci: drop pointless static qualifier")
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 14 lines · Stephen Rothwell
Hi Bartosz,
After merging the gpio-brgl tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:
drivers/gpio/gpio-davinci.c: In function 'davinci_gpio_get_irq_chip':drivers/gpio/gpio-davinci.c:472:9: warning: function returns address of local variable [-Wreturn-local-addr]return &gpio_unbanked.chip; ^~~~~~~~~~~~~~~~~~~ drivers/gpio/gpio-davinci.c: In function 'keystone_gpio_get_irq_chip': drivers/gpio/gpio-davinci.c:480:9: warning: function returns address of local variable [-Wreturn-local-addr] return &gpio_unbanked; ^~~~~~~~~~~~~~
Quoted 3 lines
Introduced by commit
ee5e87158e63("gpio: davinci: drop pointless static qualifier")
I'm very sorry for this.
I misread the code, Pls revert this.
Quoted 1 line
czw., 24 sty 2019 o 06:42 YueHaibing <[email protected]> napisał(a):
Quoted 16 lines · Stephen Rothwell
Quoted 14 lines
Hi Bartosz,
After merging the gpio-brgl tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:
drivers/gpio/gpio-davinci.c: In function 'davinci_gpio_get_irq_chip':drivers/gpio/gpio-davinci.c:472:9: warning: function returns address of local variable [-Wreturn-local-addr]return &gpio_unbanked.chip; ^~~~~~~~~~~~~~~~~~~ drivers/gpio/gpio-davinci.c: In function 'keystone_gpio_get_irq_chip': drivers/gpio/gpio-davinci.c:480:9: warning: function returns address of local variable [-Wreturn-local-addr] return &gpio_unbanked; ^~~~~~~~~~~~~~
Quoted 10 lines
Quoted 3 lines
Introduced by commit
ee5e87158e63("gpio: davinci: drop pointless static qualifier")I'm very sorry for this.
I misread the code, Pls revert this.
Quoted 1 line
I backed out this one.
Thanks,
Bartosz