summaryrefslogtreecommitdiff
path: root/tools/unittests/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2026-07-10 11:33:20 +0200
committerChristian Brauner <brauner@kernel.org>2026-08-03 10:08:38 +0200
commitd9f7f1ebf56d2a571513f0654d6d69544a9504f8 (patch)
tree009cd7a4e9e5dcf6d436427afb712bd8ba61f93e /tools/unittests/git@git.tavy.me:linux.git
parent30f53f322f9d85e27751a81bbd5a8a920721fc0b (diff)
binfmt_misc: use a flexible array member for the register string
create_entry() allocates the entry and the register string it parses into in one chunk and finds the string part again through manual pointer arithmetic behind a cast. Make the layout explicit with a flexible array member and struct_size(), and give the magic pad of trailing delimiters a name while at it. No functional change. Link: https://patch.msgid.link/20260710-work-binfmt_misc-locking-v3-19-a162f7cb58d6@kernel.org Reviewed-by: Jori Koolstra <jkoolstra@xs4all.nl> Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/unittests/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions