]> Gentwo Git Trees - linux/.git/commit
mfd: macsmc: Add new __SMC_KEY macro
authorJames Calligeros <jcalligeros99@gmail.com>
Sat, 25 Oct 2025 00:24:36 +0000 (10:24 +1000)
committerLee Jones <lee@kernel.org>
Thu, 6 Nov 2025 13:58:42 +0000 (13:58 +0000)
commitb340412a3b22b60b5e19cce8726940c7b5b14439
tree082c740512bc7c7b029e477b98352443d6918504
parent3a8660878839faadb4f1a6dd72c3179c1df56787
mfd: macsmc: Add new __SMC_KEY macro

When using the _SMC_KEY macro in switch/case statements, GCC 15.2.1 errors
out with 'case label does not reduce to an integer constant'. Introduce
a new __SMC_KEY macro that can be used instead.

Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
Link: https://patch.msgid.link/20251025-macsmc-subdevs-v4-5-374d5c9eba0e@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
include/linux/mfd/macsmc.h