string: use __attribute__((nonnull())) in strends()
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 18 Nov 2025 10:04:04 +0000 (11:04 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 25 Nov 2025 10:22:08 +0000 (11:22 +0100)
commit194832dcb13b0d02fce0df887235b7e6d1ef0121
tree738989acc6b9107e7686e6047fcb3eb34dea1fbf
parent72eb5b1f5d7c0ab76e4db1b2d4eb8a880dbdbfad
string: use __attribute__((nonnull())) in strends()

The arguments of strends() must not be NULL so annotate the function
with the nonnull attribute.

Suggested-by: Kees Cook <kees@kernel.org>
Link: https://lore.kernel.org/r/20251118-strends-follow-up-v1-2-d3f8ef750f59@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
include/linux/string.h