travis: workaround false positive in code checking tool
Workaround a checkpatch bug [1] by creating a non-empty file
const_structs.checkpatch. By adding the name of a struct that cannot
appear in valid code, we avoid the false warning (which occurs only
when no name is given) and this can't produce any unwanted side-effect.
[1] https://www.spinics.net/lists/kernel/threads.html#2364905
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
diff --git a/.travis.yml b/.travis.yml
index 4283ac9..642443d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -34,7 +34,7 @@
- export DST_KERNEL=$PWD/linux && mkdir -p $DST_KERNEL/scripts && cd $DST_KERNEL/scripts
- wget https://raw.githubusercontent.com/torvalds/linux/master/scripts/checkpatch.pl && chmod a+x checkpatch.pl
- wget https://raw.githubusercontent.com/torvalds/linux/master/scripts/spelling.txt
- - touch const_structs.checkpatch
+ - echo "invalid.struct.name" >const_structs.checkpatch
- cd $MYHOME
- export DL_DIR=$HOME/downloads