Skip to content

[REGRESSION] qcom-next: tech/bus/pci/pwrctl: build: implicit declaration of function ‘gpiod_set_value' #48

@shashim-quic

Description

@shashim-quic

New build issue found on qcom-next/qcom-next:

implicit declaration of function ‘gpiod_set_value’ [-Werror=implicit-function-declaration] in drivers/pci/pwrctrl/pci-pwrctrl-tc9563.o (drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c) [logspec:kbuild,kbuild.compiler.error]

Log excerpt:

drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c:419:9: error: implicit declaration of function ‘gpiod_set_value’ [-Werror=implicit-function-declaration]
419 | gpiod_set_value(ctx->reset_gpio, 1);
| ^~~~~~~~~~~~~~~
drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c: In function ‘tc9563_pwrctrl_probe’:
drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c:535:27: error: implicit declaration of function ‘devm_gpiod_get’; did you mean ‘em_pd_get’? [-Werror=implicit-function-declaration]
535 | ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH);
| ^~~~~~~~~~~~~~
| em_pd_get
drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c:535:56: error: ‘GPIOD_OUT_HIGH’ undeclared (first use in this function)
535 | ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH);
| ^~~~~~~~~~~~~~
drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c:535:56: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors

Builds where the incident occurred:

kernelci issue maestro:63f6eb801dd43baabcbe6611172b21adec7e417d

Reported-by: kernelci.org bot <[email protected]>

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions