Skip to contentSkip to conversation

ath11k-check script pushed

DISCUSSION Kalle Valo 1 participant 1 message Jun 12, 2019 Qualcomm Atheros ATH11K wireless driver

lore
Share & tools
lore

Kalle Valo

author
#0 lore raw

Hi,

This is the script I use to check ath11k after I have applied the patches:

https://github.com/qca/qca-swiss-army-knife/blob/master/tools/scripts/ath11k/ath11k-check

Currently I run it as 'ath11k-check --fast' to avoid running checkpatch. But once the checkpatch warnings are fixed I will run it as 'ath11k-check'. Also I'm hoping to enable the extra W=1 warnings at some point, in general they are also quite useful.

The help switch some more info about the script:

$ ath11k-check --help
usage: ath11k-check [-h] [-d] [--fast] [--extra] [--no-filter] [--version]

ath11k source code checker

Runs various tests (gcc, sparse and checkpatch) with filtering unnecessary warnings away, the goal is to have empty output from the script.

Run this from the main kernel source directory which is preconfigured with ath11k enabled. gcc recompilation is forced every time, irrespective if there are any changes in source or not. So this can be run multiple times and every time the same warnings will appear.

Requirements (all available in $PATH):

* gcc
* sparse
* checkpatch.pl
* gtags (from package global)

optional arguments:

  -h, --help   show this help message and exit
  -d, --debug  enable debug messages
  --fast       run only tests which finish in few seconds
  --extra      Run extra checks like W=1
  --no-filter  Don't filter output with regexp: '/ath'
  --version    Show version information about dependencies

Installation:

As checkpatch is evolving this script always matches a certain version of checkpatch. Download the checkpatch version from the URL below and install it somewhere in your $PATH:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/plain/scripts/checkpatch.pl?id=12c253abb9c9d8e01d9365fc8cbde4688731f401

Alternatively if you want manually run checkpatch with the same settings as ath11k-check uses here's the command line:

checkpatch.pl --strict -q --terse --no-summary --max-line-length=90 --show-types --ignore MSLEEP,USLEEP_RANGE,PRINTK_WITHOUT_KERN_LEVEL,NETWORKING_BLOCK_COMMENT_STYLE,LINUX_VERSION_CODE,COMPLEX_MACRO,PREFER_DEV_LEVEL,PREFER_PR_LEVEL,COMPARISON_TO_NULL,BIT_MACRO,CONSTANT_COMPARISON,MACRO_WITH_FLOW_CONTROL,CONST_STRUCT,MACRO_ARG_REUSE,OPEN_ENDED_LINE,FUNCTION_ARGUMENTS,CONFIG_DESCRIPTION,ASSIGNMENT_CONTINUATIONS,UNNECESSARY_PARENTHESES,MACRO_ARG_PRECEDENCE,BOOL_MEMBER foo.patch

Signature · 6 lines
Kalle Valo

_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k