mirror of
https://github.com/qca/qca-swiss-army-knife.git
synced 2024-11-23 09:43:48 +08:00
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:
parent
0a556ac040
commit
ef11ea4c7a
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user