diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-10-16 16:32:40 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.com> | 2024-10-18 12:24:52 +0200 |
commit | 7b2daa648eb75ec75a6ebf5fce5629b758ea06df (patch) | |
tree | 0e3319cfc251d062049805cad96faf650d208a56 /drivers/pinctrl/nuvoton/pinctrl-ma35.c | |
parent | b2b8a75e1d88c551a0b30d44d0be552210219eea (diff) |
HID: debug: Remove duplicates from 'keys'
Duplicates in 'keys prevents kernel builds with clang, `make W=1` and
CONFIG_WERROR=y, for example:
drivers/hid/hid-debug.c:3443:18: error: initializer overrides prior initialization of this subobject [-Werror,-Winitializer-overrides]
3443 | [KEY_HANGEUL] = "HanGeul", [KEY_HANGUP_PHONE] = "HangUpPhone",
| ^~~~~~~~~
drivers/hid/hid-debug.c:3217:18: note: previous initialization is here
3217 | [KEY_HANGUEL] = "Hangeul", [KEY_HANJA] = "Hanja",
| ^~~~~~~~~
Fix this by removing them.
The logic of removal is that, remove...
1) if there is a constant that uses another defined constant, OR
2) the one that appears later in the list.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'drivers/pinctrl/nuvoton/pinctrl-ma35.c')
0 files changed, 0 insertions, 0 deletions