On Tue, Jan 17, 2017 at 05:54:57PM +0100, Sven Eckelmann wrote:
I did download the kernel source, but when I try to run the script it either tells me that I don't have a valid kernel tree (when using the sources for my Xubuntu kernel) or that the file I'm trying to scan isn't part of the tree (when using the latest from kernel.org). I've never used that tool in the past - can you send me a usage example for scanning a file in the alfred tree?
Just did this from my linux-next.git checkout:
./scripts/checkpatch.pl --strict --ignore=LONG_LINE_STRING \ --ignore=LONG_LINE --ignore=LONG_LINE_COMMENT \ --ignore=FSF_MAILING_ADDRESS \ -f ../alfred/main.c
or:
./scripts/checkpatch.pl --strict --ignore=LONG_LINE_STRING \ --ignore=LONG_LINE --ignore=LONG_LINE_COMMENT \ --ignore=FSF_MAILING_ADDRESS \ ../alfred/0001-IPv4-multicast-distribution-support.patch
Not 100% sure whether it's needed, but if you still have issues try to at least call "make scripts" (or even "make prepare") in the kernel source directory first.
Also, maybe simply use the vanilla tree from Torvalds with a $ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Should have a more up-to-date checkpatch.pl than the Ubuntu source directory anyway.