Skip to content

Commit

Permalink
ath12k-check: run kernel-doc
Browse files Browse the repository at this point in the history
Idea and example from Jeff Johnson.

Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
  • Loading branch information
kvalo committed Jan 26, 2024
1 parent 0a556ac commit ef11ea4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tools/scripts/ath12k/ath12k-check
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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()

0 comments on commit ef11ea4

Please sign in to comment.