]> git.itanic.dy.fi Git - linux-stable/commit
modpost: inform compilers that fatal() never returns
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 3 Dec 2023 09:49:32 +0000 (18:49 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 10 Dec 2023 06:34:37 +0000 (15:34 +0900)
commit16a473f60edc30ffcdf355676263730a6028ec67
treee3d5c84affc4bfad27ab7ab33675dbed11ab662b
parentcc87b7c06f2a6a1fbc7e06ccf6123aada4d0b588
modpost: inform compilers that fatal() never returns

The function fatal() never returns because modpost_log() calls exit(1)
when LOG_FATAL is passed.

Inform compilers of this fact so that unreachable code flow can be
identified at compile time.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
scripts/mod/modpost.c
scripts/mod/modpost.h