From: WANG Chao Date: Tue, 14 Oct 2014 08:58:37 +0000 (+0800) Subject: staging, unisys: remove leftover function kmalloc_kernel() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=00e053bd9f7a86a8ed8f9a057dc994b610e3add7;p=linux-beck.git staging, unisys: remove leftover function kmalloc_kernel() kmalloc_kernel() previously declared in timskmodutils.h which recently got removed. Now also remove kmalloc_kernel(), because it's not used anywhere. Signed-off-by: WANG Chao Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/visorutil/visorkmodutils.c b/drivers/staging/unisys/visorutil/visorkmodutils.c index d6815f9e1337..64b135d83c0d 100644 --- a/drivers/staging/unisys/visorutil/visorkmodutils.c +++ b/drivers/staging/unisys/visorutil/visorkmodutils.c @@ -36,16 +36,6 @@ int unisys_spar_platform; EXPORT_SYMBOL_GPL(unisys_spar_platform); -/** Callers to interfaces that set __GFP_NORETRY flag below - * must check for a NULL (error) result as we are telling the - * kernel interface that it is okay to fail. - */ - -void *kmalloc_kernel(size_t siz) -{ - return kmalloc(siz, GFP_KERNEL | __GFP_NORETRY); -} - static __init uint32_t visorutil_spar_detect(void) {