ath12k-check: run kernel-doc

Idea and example from Jeff Johnson.

Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
This commit is contained in:
Kalle Valo 2024-01-26 18:31:11 +02:00
parent 0a556ac040
commit ef11ea4c7a

View File

@ -348,6 +348,10 @@ def run_checkpatch(args):
return 0
def run_kdoc(args):
p = subprocess.run(['scripts/kernel-doc', '-Werror', '-none'] +
get_commited_files())
return p.returncode
def show_version(args):
host_gcc_version = 'not found'
@ -565,5 +569,10 @@ $CHECKPATCH_CMDLINE
logger.debug('checkpatch failed: %d', ret)
sys.exit(3)
ret = run_kdoc(args)
if ret != 0:
logger.debug('kernel-doc failed: %d', ret)
sys.exit(4)
if __name__ == "__main__":
main()