]> Git Repo - linux.git/commit
modpost: inform compilers that fatal() never returns
authorMasahiro Yamada <[email protected]>
Sun, 3 Dec 2023 09:49:32 +0000 (18:49 +0900)
committerMasahiro Yamada <[email protected]>
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 <[email protected]>
Reviewed-by: Nathan Chancellor <[email protected]>
scripts/mod/modpost.c
scripts/mod/modpost.h
This page took 0.046568 seconds and 4 git commands to generate.