]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: nintendo: fix initializer element is not constant error
authorRyan McClelland <rymcclel@gmail.com>
Thu, 14 Dec 2023 17:25:41 +0000 (09:25 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Jan 2024 10:50:08 +0000 (11:50 +0100)
commit44521a5dc40bf270c2a1b69ea4c82d4352a58c13
tree46f9f4a1c722c3a274d64151ba764c28f0b41b34
parent3910d7a441f2713318913270850153ddf067c5ed
HID: nintendo: fix initializer element is not constant error

[ Upstream commit 0b7dd38c1c520b650a889a81919838671b689eb9 ]

With gcc-7 builds, an error happens with the controller button values being
defined as const. Change to a define.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202312141227.C2h1IzfI-lkp@intel.com/
Signed-off-by: Ryan McClelland <rymcclel@gmail.com>
Reviewed-by: Daniel J. Ogorchock <djogorchock@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-nintendo.c