]> www.infradead.org Git - users/dwmw2/linux.git/commit
compiler.h: Introduce __must_be_byte_array()
authorKees Cook <kees@kernel.org>
Wed, 5 Feb 2025 20:48:07 +0000 (12:48 -0800)
committerKees Cook <kees@kernel.org>
Fri, 7 Feb 2025 02:48:02 +0000 (18:48 -0800)
commit20e5cc26e56db09cc612721f90b4994cce5e5b7b
treea33c8240b9230d0c23995d2129b6c42414240e6f
parentcb7380de9e4cbc9a24216b722ec50e092ae83036
compiler.h: Introduce __must_be_byte_array()

In preparation for adding stricter type checking to the str/mem*()
helpers, provide a way to check that a variable is a byte array
via __must_be_byte_array().

Suggested-by: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Kees Cook <kees@kernel.org>
include/linux/compiler.h