]> git.ipfire.org Git - thirdparty/linux.git/commit
powerpc/rtas: Add for_each_rtas_function() iterator
authorNathan Lynch <nathanl@linux.ibm.com>
Tue, 12 Dec 2023 17:01:49 +0000 (11:01 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Dec 2023 10:38:20 +0000 (21:38 +1100)
commitc500c6e736df030f8956080738f59701c0b43dd8
tree065de6db398666af7f70973d170c4524957b1b28
parent01e346ffefda3a7088afebf02b940614179688e7
powerpc/rtas: Add for_each_rtas_function() iterator

Add a convenience macro for iterating over every element of the
internal function table and convert the one site that can use it. An
additional user of the macro is anticipated in changes to follow.

Reviewed-by: "Aneesh Kumar K.V (IBM)" <aneesh.kumar@kernel.org>
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231212-papr-sys_rtas-vs-lockdown-v6-2-e9eafd0c8c6c@linux.ibm.com
arch/powerpc/kernel/rtas.c