From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from oproxy7-pub.bluehost.com ([67.222.55.9]:38469 "HELO oproxy7-pub.bluehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1756527Ab2FUBay (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 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 Sender: linux-media-owner@vger.kernel.org List-ID: 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