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: NMasahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: NHeiko Schocher <hs@denx.de> Acked-by: NSimon Glass <sjg@chromium.org>
Showing
想要评论请 注册 或 登录