Makefile: add checkpatch target

Signed-off-by: Phil Sutter <phil@nwl.cc>
checkpatch fixes: change 'type* var' to 'type *var'

Signed-off-by: Phil Sutter <phil@nwl.cc>
checkpatch fixes: drop space after opening brace of functions

Signed-off-by: Phil Sutter <phil@nwl.cc>
authenc fixes: add spaces according to kernel coding style

Signed-off-by: Phil Sutter <phil@nwl.cc>
checkpatch fixes: put conditionals' opening curly brace on the same line

Signed-off-by: Phil Sutter <phil@nwl.cc>
checkpatch fixes: do not hide expressions behind conditionals

Signed-off-by: Phil Sutter <phil@nwl.cc>
checkpatch fixup: eliminate two-space indenting, cleanup code while here

Signed-off-by: Phil Sutter <phil@nwl.cc>
checkpatch fixes: drop braces around single expressions in conditionals

Signed-off-by: Phil Sutter <phil@nwl.cc>
checkpatch fixes: fix incorrect indenting and other leading spaces

Signed-off-by: Phil Sutter <phil@nwl.cc>
checkpatch fixes: remove trailing whitespace

Signed-off-by: Phil Sutter <phil@nwl.cc>
checkpatch fixes: replace C99 comments

Signed-off-by: Phil Sutter <phil@nwl.cc>
checkpatch fixes: use pr_info and pr_err instead of printk

Normally we use dprintk which respects the module's own log level, but
at this early stage (driver registration), being noisy should be fine.

Signed-off-by: Phil Sutter <phil@nwl.cc>
checkpatch fixes: put inline keyword between storage class and type

Signed-off-by: Phil Sutter <phil@nwl.cc>
introduce ddebug, dinfo, dwarning and derr macros

Use them instead of directly calling dprintk. Also, line continuations
are to be indented with two tabs, unless there is good reason not to.

Signed-off-by: Phil Sutter <phil@nwl.cc>
drop unneeded casts of arguments in print statements

Signed-off-by: Phil Sutter <phil@nwl.cc>
allow for parameterising checkpatch.pl

Signed-off-by: Phil Sutter <phil@nwl.cc>
allow for cross-compiling cryptodev

Signed-off-by: Phil Sutter <phil@nwl.cc>
tests/hmac_comp: use COP_FLAG_WRITE_IV and compare the updated IVs as well

Signed-off-by: Phil Sutter <phil@nwl.cc>
tests/hmac_comp: initialise compared output to different values

This makes the test complain if the output fields were not altered at
all.

Signed-off-by: Phil Sutter <phil@nwl.cc>