Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751892Ab2KIFQ4 (ORCPT ); Fri, 9 Nov 2012 00:16:56 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:51773 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750836Ab2KIFQy (ORCPT ); Fri, 9 Nov 2012 00:16:54 -0500 Message-ID: <1352438201.23783.1.camel@phoenix> Subject: [PATCH] mfd: rtsx_pcr: Include linux/slab.h to fix build error From: Axel Lin To: Samuel Ortiz Cc: Wei WANG , Borislav Petkov , linux-kernel@vger.kernel.org Date: Fri, 09 Nov 2012 13:16:41 +0800 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1769 Lines: 43 Fix below build error: CC [M] drivers/mfd/rtsx_pcr.o drivers/mfd/rtsx_pcr.c: In function 'rtsx_pci_init_chip': drivers/mfd/rtsx_pcr.c:985:2: error: implicit declaration of function 'kcalloc' [-Werror=implicit-function-declaration] drivers/mfd/rtsx_pcr.c:985:13: warning: assignment makes pointer from integer without a cast [enabled by default] drivers/mfd/rtsx_pcr.c:993:3: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration] drivers/mfd/rtsx_pcr.c: In function 'rtsx_pci_probe': drivers/mfd/rtsx_pcr.c:1021:2: error: implicit declaration of function 'kzalloc' [-Werror=implicit-function-declaration] drivers/mfd/rtsx_pcr.c:1021:6: warning: assignment makes pointer from integer without a cast [enabled by default] drivers/mfd/rtsx_pcr.c:1027:9: warning: assignment makes pointer from integer without a cast [enabled by default] cc1: some warnings being treated as errors make[2]: *** [drivers/mfd/rtsx_pcr.o] Error 1 make[1]: *** [drivers/mfd] Error 2 make: *** [drivers] Error 2 Signed-off-by: Axel Lin --- drivers/mfd/rtsx_pcr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/rtsx_pcr.c b/drivers/mfd/rtsx_pcr.c index 56d4377..a510584 100644 --- a/drivers/mfd/rtsx_pcr.c +++ b/drivers/mfd/rtsx_pcr.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/