Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756645Ab2FUBa4 (ORCPT ); Wed, 20 Jun 2012 21:30:56 -0400 Received: from oproxy7-pub.bluehost.com ([67.222.55.9]:53069 "HELO oproxy7-pub.bluehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1756530Ab2FUBay (ORCPT ); Wed, 20 Jun 2012 21:30:54 -0400 Message-ID: <4FE27936.8090401@xenotime.net> Date: Wed, 20 Jun 2012 18:30:30 -0700 From: Randy Dunlap User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110323 Thunderbird/3.1.9 MIME-Version: 1.0 To: linux-kernel@vger.kernel.org CC: akpm@linux-foundation.org, linux-media , Hans Verkuil , Mauro Carvalho Chehab , Linus Torvalds Subject: [PATCH] media: pms.c needs linux/slab.h References: <20120619212521.D53D6A01BD@akpm.mtv.corp.google.com> In-Reply-To: <20120619212521.D53D6A01BD@akpm.mtv.corp.google.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Identified-User: {1807:box742.bluehost.com:xenotime:xenotime.net} {sentby:smtp auth 50.53.38.135 authed with rdunlap@xenotime.net} Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1160 Lines: 32 From: Randy Dunlap drivers/media/video/pms.c uses kzalloc() and kfree() so it should include to fix build errors and a warning. drivers/media/video/pms.c:1047:2: error: implicit declaration of function 'kzalloc' drivers/media/video/pms.c:1047:6: warning: assignment makes pointer from integer without a cast drivers/media/video/pms.c:1116:2: error: implicit declaration of function 'kfree' Found in mmotm but applies to mainline. Signed-off-by: Randy Dunlap Cc: Hans Verkuil --- drivers/media/video/pms.c | 1 + 1 file changed, 1 insertion(+) --- mmotm-0619.orig/drivers/media/video/pms.c +++ mmotm-0619/drivers/media/video/pms.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include -- 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/