module: make module_refcount() a signed integer.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 22 Jan 2015 00:43:14 +0000 (11:13 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 22 Jan 2015 00:45:54 +0000 (11:15 +1030)
commitd5db139ab3764640e0882a1746e7b9fdee33fd87
tree62f806a29a43c749c84354fbef3bdaa21dc3ce6f
parentc749637909eea5d4090c6f50b89c2c20b534a280
module: make module_refcount() a signed integer.

James Bottomley points out that it will be -1 during unload.  It's
only used for diagnostics, so let's not hide that as it could be a
clue as to what's gone wrong.

Cc: Jason Wessel <jason.wessel@windriver.com>
Acked-and-documention-added-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Reviewed-by: Masami Hiramatsu <maasami.hiramatsu.pt@hitachi.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/module.h
kernel/debug/kdb/kdb_main.c
kernel/module.c