linux-next: build failure after merge of the pinctrl tree
Hi Linus,
After merging the pinctrl tree, today's linux-next build (arm multi_v7_defconfig) failed like this:
drivers/pinctrl/bcm/pinctrl-iproc-gpio.c:640:50: warning: 'struct cygnus_gpio' declared inside parameter list
static void iproc_gpio_unregister_pinconf(struct cygnus_gpio *chip)
^
drivers/pinctrl/bcm/pinctrl-iproc-gpio.c:640:50: warning: its scope is only this definition or declaration, which is probably not what you want
drivers/pinctrl/bcm/pinctrl-iproc-gpio.c: In function 'iproc_gpio_unregister_pinconf':
drivers/pinctrl/bcm/pinctrl-iproc-gpio.c:642:25: error: dereferencing pointer to incomplete type 'struct cygnus_gpio'
pinctrl_unregister(chip->pctl);
^
drivers/pinctrl/bcm/pinctrl-iproc-gpio.c: In function 'iproc_gpio_probe':
drivers/pinctrl/bcm/pinctrl-iproc-gpio.c:738:32: warning: passing argument 1 of 'iproc_gpio_unregister_pinconf' from incompatible pointer type [-Wincompatible-pointer-types]
iproc_gpio_unregister_pinconf(chip);
^
drivers/pinctrl/bcm/pinctrl-iproc-gpio.c:640:13: note: expected 'struct cygnus_gpio *' but argument is of type 'struct iproc_gpio *'
static void iproc_gpio_unregister_pinconf(struct cygnus_gpio *chip)
^Caused by commit
afc8c78d179d ("gpio: Rename func/macro/var to IP-block,iproc")
This does not look like it has even been build tested :-(
I have used the pinctrl tree from next-20151217 again as the previous (fixed) error was hiding this one.
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Hi Stephen Rothwell,
This is the same error what we discussed on Friday mail-chain. Please see the attachment of my reply.
Regards,
Pramod
Quoted 40 lines
-----Original Message-----
From: Stephen Rothwell [mailto:[email protected]]
Sent: 21 December 2015 10:28
To: Linus Walleij
Cc: [email protected]; [email protected]; Pramod Kumar; Ray Jui; Scott Branden
Subject: linux-next: build failure after merge of the pinctrl treeHi Linus,
After merging the pinctrl tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:
drivers/pinctrl/bcm/pinctrl-iproc-gpio.c:640:50: warning: 'structcygnus_gpio' declared inside parameter list static voidiproc_gpio_unregister_pinconf(struct cygnus_gpio *chip)^
drivers/pinctrl/bcm/pinctrl-iproc-gpio.c:640:50: warning: its scope is only this definition or declaration, which is probably not what you wantdrivers/pinctrl/bcm/pinctrl-iproc-gpio.c: In function 'iproc_gpio_unregister_pinconf':drivers/pinctrl/bcm/pinctrl-iproc-gpio.c:642:25: error: dereferencing pointer to incomplete type 'structcygnus_gpio'pinctrl_unregister(chip->pctl); ^
drivers/pinctrl/bcm/pinctrl-iproc-gpio.c: In function 'iproc_gpio_probe':drivers/pinctrl/bcm/pinctrl-iproc-gpio.c:738:32: warning: passing argument 1 of 'iproc_gpio_unregister_pinconf' from incompatible pointer type [- Wincompatible-pointer-types]iproc_gpio_unregister_pinconf(chip); ^ drivers/pinctrl/bcm/pinctrl-iproc-gpio.c:640:13: note: expected 'struct cygnus_gpio *' but argument is of type 'struct iproc_gpio *' static void iproc_gpio_unregister_pinconf(struct cygnus_gpio *chip) ^Caused by commit
afc8c78d179d("gpio: Rename func/macro/var to IP-block,iproc")
Quoted 8 lines
This does not look like it has even been build tested :-(
I have used the pinctrl tree from next-20151217 again as the previous (fixed) error was hiding this one.
--
Cheers,
Stephen Rothwell [email protected]
Hi Stephen/Linus,
The patch " [PATCH v2 5/7] gpio: Rename func/macro/var to IP-block,iproc"
(https://lkml.org/lkml/2015/11/18/1004) in "for-next" and "devel" of pinctrl tree ( http://git.linaro.org/people/linus.walleij/linux-pinctrl.git ) has little rebase issue.
Original patch has:
<snip>
-static void cygnus_gpio_unregister_pinconf(struct cygnus_gpio *chip) +static void iproc_gpio_unregister_pinconf(struct iproc_gpio *chip) <snip>
while "for-next" and "devel" branch of pinctrl tree has:
<snip>
-static void cygnus_gpio_unregister_pinconf(struct cygnus_gpio *chip) +static void iproc_gpio_unregister_pinconf(struct cygnus_gpio *chip) <snip>
Please suggest us how could we fix this issue.
Regards,
Pramod
Quoted 39 lines
-----Original Message-----
From: Stephen Rothwell [mailto:[email protected]]
Sent: 18 December 2015 09:15
To: Linus Walleij
Cc: [email protected]; [email protected]; Pramod Kumar; Ray Jui; Scott Branden
Subject: linux-next: build failure after merge of the pinctrl treeHi Linus,
After merging the pinctrl tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:
drivers/pinctrl/bcm/pinctrl-iproc-gpio.c: In function 'iproc_gpio_unregister_pinconf':drivers/pinctrl/bcm/pinctrl-iproc-gpio.c:642:25: error: dereferencing pointer to incomplete type 'structcygnus_gpio'pinctrl_unregister(chip->pctl); ^
drivers/pinctrl/bcm/pinctrl-iproc-gpio.c: In function 'iproc_gpio_probe':drivers/pinctrl/bcm/pinctrl-iproc-gpio.c:738:32: warning: passing argument 1 of 'iproc_gpio_unregister_pinconf' from incompatible pointer type [- Wincompatible-pointer-types]iproc_gpio_unregister_pinconf(chip); ^ drivers/pinctrl/bcm/pinctrl-iproc-gpio.c:640:13: note: expected 'struct cygnus_gpio *' but argument is of type 'struct iproc_gpio *' static void iproc_gpio_unregister_pinconf(struct cygnus_gpio *chip) ^Caused by commit
616043d58a89("pinctrl: Rename gpio driver from cygnus to iproc")I have used the pinctrl tree from next-20151217 for today.
--
Cheers,
Stephen Rothwell [email protected]
Quoted 2 lines · Stephen Rothwell
After merging the pinctrl tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:
Argh damned, I pushed a oneliner fix in accordance with Pramod's report. Sorry about the mess.
Yours,
Linus Walleij