]> git.itanic.dy.fi Git - linux-stable/commit
modpost: move __attribute__((format(printf, 2, 3))) to modpost.h
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 3 Dec 2023 09:49:31 +0000 (18:49 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 10 Dec 2023 06:34:37 +0000 (15:34 +0900)
commitcc87b7c06f2a6a1fbc7e06ccf6123aada4d0b588
tree4e182b6de1b3afbe264ac5648d0361fe912ad67b
parentcbe826b058bb3547f195144fc018957871568320
modpost: move __attribute__((format(printf, 2, 3))) to modpost.h

This attribute must be added to the function declaration in a header
for comprehensive checking of all the callsites.

Fixes: 6d9a89ea4b06 ("kbuild: declare the modpost error functions as printf like")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
scripts/mod/modpost.c
scripts/mod/modpost.h