]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
linux_compat: move vzalloc() to header file as an inline function
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 13 Jul 2015 04:17:06 +0000 (13:17 +0900)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:49:01 +0000 (13:49 +0200)
commit02755c3c154186f8fb432bdefbf1c64d8cd85c22
tree3e3b82915eac8ba11d236e4363bab1fb4dd5b6b2
parent3dc9e3b59958e1247c926658a0c3d850d64a38b5
linux_compat: move vzalloc() to header file as an inline function

The vzalloc(size) is equivalent to kzalloc(size, 0).  Move it to
include/linux/compat.h as an inline function in order to avoid the
function call overhead.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
Acked-by: Simon Glass <sjg@chromium.org>
include/linux/compat.h
lib/linux_compat.c