Lint with checkpatch

http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/scripts/checkpatch.pl
checkpatch.pl -terse -file -no-tree lib.c

Not sold on some of these - for example, WARN for braces on single statement block.  I'd rather be safe here.

Also staying with spaces for now, although there's all sorts of errors/warns for not using tabs.