]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MODSIGN: Fix build error with strict typechecking
authorDavid Rientjes <rientjes@google.com>
Thu, 4 Oct 2012 13:22:21 +0000 (14:22 +0100)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 5 Oct 2012 03:31:05 +0000 (13:01 +0930)
commit21536bb994be78dc6451c93055531da2c84ce5d1
treeec29aabfa428ca2c06caba94595b8c5d51a687e7
parent2a34b751a87dd7eae2ff7d2daf37ba961f337a15
MODSIGN: Fix build error with strict typechecking

"MODSIGN: Provide module signing public keys to the kernel" causes a build
error when CONFIG_UIDGID_STRICT_TYPE_CHECKS is enabled:

kernel/modsign_pubkey.c: In function 'module_verify_init':
kernel/modsign_pubkey.c:47: error: incompatible type for argument 3 of 'key_alloc'
include/linux/key.h:195: note: expected 'kuid_t' but argument is of type 'int'
kernel/modsign_pubkey.c:47: error: incompatible type for argument 4 of 'key_alloc'
include/linux/key.h:195: note: expected 'kgid_t' but argument is of type 'int'

Cast the parameters accordingly.

Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/modsign_pubkey.c