]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
powerpc/rtas: Replace one-element array with flexible array member
authorThorsten Blum <thorsten.blum@linux.dev>
Wed, 13 Aug 2025 10:30:59 +0000 (12:30 +0200)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Tue, 2 Jun 2026 05:54:32 +0000 (11:24 +0530)
commitab8bbf8024b7434e2b630965fd373fba5b89f29f
treef219649c109ac04c395c445bba1a225f27f46a19
parentea8b474b5550d353a02f25a5813cb1682509d5e6
powerpc/rtas: Replace one-element array with flexible array member

Replace the deprecated one-element array with a modern flexible array
member in the struct rtas_error_log and add the __counted_by_be()
compiler attribute to improve access bounds-checking via
CONFIG_UBSAN_BOUNDS and CONFIG_FORTIFY_SOURCE.

Link: https://github.com/KSPP/linux/issues/79
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250813103101.163698-2-thorsten.blum@linux.dev
arch/powerpc/include/asm/rtas-types.h