Skip to content

Commit 0a80e1d

Browse files
Sricharan Ramabadhranlinusw
authored andcommitted
pinctrl: qcom: Remove the unused _groups variable build warning
When building with clang toolchain and arm64-randconfig-r015-20230712 kernel test robot reports the below warning. drivers/pinctrl/qcom/pinctrl-ipq5018.c:244:27: warning: unused variable '_groups' [-Wunused-const-variable] static const char * const _groups[] = { ^ 1 warning generated. static const char * const _groups[] = { "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7", "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14", "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21", "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35", "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42", "gpio43", "gpio44", "gpio45", "gpio46", }; Fixing it by removing the variable. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Fixes: 725d1c8 ("pinctrl: qcom: Add IPQ5018 pinctrl driver") Signed-off-by: Sricharan Ramabadhran <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 1b1db9e commit 0a80e1d

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

drivers/pinctrl/qcom/pinctrl-ipq5018.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -241,16 +241,6 @@ static const char * const atest_char_groups[] = {
241241
"gpio0", "gpio1", "gpio2", "gpio3", "gpio37",
242242
};
243243

244-
static const char * const _groups[] = {
245-
"gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
246-
"gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
247-
"gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
248-
"gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
249-
"gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
250-
"gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
251-
"gpio43", "gpio44", "gpio45", "gpio46",
252-
};
253-
254244
static const char * const wci_txd_groups[] = {
255245
"gpio0", "gpio1", "gpio2", "gpio3",
256246
"gpio42", "gpio43", "gpio44", "gpio45",

0 commit comments

Comments
 (0)