linux-next: build failure after merge of the pinctrl tree
Hi all,
After merging the pinctrl tree, today's linux-next build (x86_64 allmodconfig) failed like this:
drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c: In function 'mtk_pinconf_bias_set_pd':drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c:606:13: error: unused variable 'err' [-Werror=unused-variable]
606 | int err, pd;
| ^~~drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c: At top level:drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c:602:12: error: 'mtk_pinconf_bias_set_pd' defined but not used [-Werror=unused-function]
602 | static int mtk_pinconf_bias_set_pd(struct mtk_pinctrl *hw,
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Caused by commit
1673d720b7e2 ("pinctrl: mediatek: add support for MTK_PULL_PD_TYPE")
I have used the pinctrl tree from next-20241220 for today.
Signature · 2 lines
Cheers, Stephen Rothwell
Hi all,
Quoted 11 lines · On Mon, 6 Jan 2025 16:46:30 +1100 Stephen Rothwell <[email protected]> wrote:
After merging the pinctrl tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c: In function 'mtk_pinconf_bias_set_pd':drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c:606:13: error: unused variable 'err' [-Werror=unused-variable]
606 | int err, pd;
| ^~~drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c: At top level:drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c:602:12: error: 'mtk_pinconf_bias_set_pd' defined but not used [-Werror=unused-function]
602 | static int mtk_pinconf_bias_set_pd(structmtk_pinctrl*hw,
Quoted 8 lines
| ^~~~~~~~~~~~~~~~~~~~~~~cc1: all warnings being treated as errors
Caused by commit
1673d720b7e2("pinctrl: mediatek: add support forMTK_PULL_PD_TYPE")I have used the pinctrl tree from next-20241220 for today.
I am still seeing these errors.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 15 lines · Stephen Rothwell
Quoted 14 lines · On Mon, 6 Jan 2025 16:46:30 +1100 Stephen Rothwell <[email protected]> wrote:
After merging the pinctrl tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c: In function 'mtk_pinconf_bias_set_pd':drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c:606:13: error: unused variable 'err' [-Werror=unused-variable]
606 | int err, pd;
| ^~~drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c: At top level:drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c:602:12: error: 'mtk_pinconf_bias_set_pd' defined but not used [-Werror=unused-function]
602 | static int mtk_pinconf_bias_set_pd(structmtk_pinctrl*hw,| ^~~~~~~~~~~~~~~~~~~~~~~cc1: all warnings being treated as errors
Quoted 7 lines
Quoted 5 lines
Caused by commit
1673d720b7e2("pinctrl: mediatek: add support forMTK_PULL_PD_TYPE")I have used the pinctrl tree from next-20241220 for today.
I am still seeing these errors.
Sorry for not attending to it earlier.
I fixed this up by just adding a patch deleting the unused mtk_pinconf_bias_set_pd() function. That should do it.
Thanks Stephen!
Yours,
Linus Walleij
Am 8. Januar 2025 22:58:01 MEZ schrieb Linus Walleij <[email protected]>:
Quoted 26 lines · Stephen Rothwell
Quoted 15 lines · On Mon, 6 Jan 2025 16:46:30 +1100 Stephen Rothwell <[email protected]> wrote:
Quoted 14 lines
After merging the pinctrl tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c: In function 'mtk_pinconf_bias_set_pd':drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c:606:13: error: unused variable 'err' [-Werror=unused-variable]
606 | int err, pd;
| ^~~drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c: At top level:drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c:602:12: error: 'mtk_pinconf_bias_set_pd' defined but not used [-Werror=unused-function]
602 | static int mtk_pinconf_bias_set_pd(structmtk_pinctrl*hw,| ^~~~~~~~~~~~~~~~~~~~~~~cc1: all warnings being treated as errors
Quoted 7 lines
Quoted 5 lines
Caused by commit
1673d720b7e2("pinctrl: mediatek: add support forMTK_PULL_PD_TYPE")I have used the pinctrl tree from next-20241220 for today.
I am still seeing these errors.
Sorry for not attending to it earlier.
Quoted 7 lines
I fixed this up by just adding a patch deleting the unused
mtk_pinconf_bias_set_pd()function. That should do it.Thanks Stephen!
Yours,
Linus Walleij
Hi,
Sorry, that was my mistake while changing daniels code to use mtk_pinconf_bias_set_pu_pd instead of this function based on angelos review. I forgot to drop this unused function (and did not notice it before sending last version).
Thank you Linus for providing the fix.
regards Frank