]> git.baikalelectronics.ru Git - kernel.git/commit
keys: make key_serial() a function if CONFIG_KEYS=y
authorDavid Howells <dhowells@redhat.com>
Tue, 29 Apr 2008 08:01:34 +0000 (01:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Apr 2008 15:06:17 +0000 (08:06 -0700)
commit8a6f769cf757f54e3602cda2b6afb4a30b79e374
tree7d0c42af5c2cb3724fd18aa3aff8de3c827bfe77
parent1846154a1f74413a0767995931cb534be56fadf7
keys: make key_serial() a function if CONFIG_KEYS=y

Make key_serial() an inline function rather than a macro if CONFIG_KEYS=y.
This prevents double evaluation of the key pointer and also provides better
type checking.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/key.h