diff options
| author | Mehmet Fide <mehmet.fide@screeningeagle.com> | 2026-09-24 08:55:14 +0200 |
|---|---|---|
| committer | Linus Walleij <linusw@kernel.org> | 2026-09-24 13:09:00 +0200 |
| commit | c2d996d9c6dab31ae41d19507c2b7ef8dbc14602 (patch) | |
| tree | 8e10dc3153caf76160e4900a949e6900bcae4c29 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 7dcf87d2dbbe8c9c1efb69fe9be728a3dfd51d3d (diff) | |
| download | linux-next-c2d996d9c6dab31ae41d19507c2b7ef8dbc14602.tar.gz linux-next-c2d996d9c6dab31ae41d19507c2b7ef8dbc14602.zip | |
pinctrl: include linux/errno.h in consumer.h for ENOTSUPP
The CONFIG_PINCTRL=n stubs of pinctrl_gpio_get_config() and
pinctrl_gpio_set_config() return -ENOTSUPP, but the header only pulls in
linux/err.h, which provides asm/errno.h and not the kernel-internal
ENOTSUPP from linux/errno.h. A translation unit that includes
pinctrl/consumer.h before anything else fails to build:
include/linux/pinctrl/consumer.h:110:10: error: use of undeclared identifier 'ENOTSUPP'
Include linux/errno.h explicitly.
Fixes: b44aec87658e ("pinctrl: make the CONFIG_PINCTRL=n gpio config stubs return -ENOTSUPP")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202609240855.U59akHDO-lkp@intel.com/
Closes: https://lore.kernel.org/oe-kbuild-all/202609241240.61Hz5rix-lkp@intel.com/
Signed-off-by: Mehmet Fide <mehmet.fide@screeningeagle.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
