1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-12 01:20:14 +00:00
Nathan Chancellor 0341d1b1eb pinctrl: airoha: Fix AIROHA_PINCTRL_CONFS_DRIVE_E2 in an7583_pinctrl_match_data
Clang warns (or errors with CONFIG_WERROR=y / W=e):

  pinctrl/mediatek/pinctrl-airoha.c:2064:41: error: variable 'an7583_pinctrl_drive_e2_conf' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration]
   2064 | static const struct airoha_pinctrl_conf an7583_pinctrl_drive_e2_conf[] = {
        |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

Due to a typo, an7583_pinctrl_drive_e2_conf is only used within
ARRAY_SIZE() (hence no instance of -Wunused-variable), which is
evaluated at compile time, so it will not be needed in the final object
file.

Fix the .confs assignment for AIROHA_PINCTRL_CONFS_DRIVE_E2 in
an7583_pinctrl_match_data to clear up the warning.

Closes: https://github.com/ClangBuiltLinux/linux/issues/2142
Fixes: 3ffeb17a9a27 ("pinctrl: airoha: add support for Airoha AN7583 PINs")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Acked-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2025-11-19 00:03:30 +01:00
..
2025-10-10 10:37:13 -07:00
2025-10-07 08:40:15 -07:00
2025-10-06 10:37:06 -07:00
2025-10-05 12:08:14 -07:00
2025-10-10 14:02:14 -07:00
2025-10-07 08:40:15 -07:00
2025-10-08 09:44:38 -07:00
2025-10-09 11:13:08 -07:00
2025-10-06 11:17:18 -07:00
2025-10-07 12:13:26 -07:00
2025-10-10 13:05:40 -07:00
2025-10-08 18:51:00 -07:00
2025-10-07 08:59:25 -07:00
2025-10-06 10:34:22 -07:00
2025-10-11 11:56:47 -07:00
2025-10-11 11:49:00 -07:00
2025-10-06 10:32:22 -07:00
2025-10-07 11:41:06 -07:00
2025-10-11 11:49:00 -07:00
2025-10-07 11:36:01 -07:00
2025-10-11 11:49:00 -07:00
2025-10-07 08:40:15 -07:00
2025-10-06 11:00:30 -07:00
2025-10-07 08:40:15 -07:00