Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754070Ab2FUGN2 (ORCPT ); Thu, 21 Jun 2012 02:13:28 -0400 Received: from smtp-vbr10.xs4all.nl ([194.109.24.30]:2615 "EHLO smtp-vbr10.xs4all.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751433Ab2FUGN1 (ORCPT ); Thu, 21 Jun 2012 02:13:27 -0400 Message-ID: <4FE2BB56.2050306@xs4all.nl> Date: Thu, 21 Jun 2012 08:12:38 +0200 From: Hans Verkuil User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4 MIME-Version: 1.0 To: Randy Dunlap CC: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, linux-media , Mauro Carvalho Chehab , Linus Torvalds Subject: Re: [PATCH] media: pms.c needs linux/slab.h References: <20120619212521.D53D6A01BD@akpm.mtv.corp.google.com> <4FE27936.8090401@xenotime.net> In-Reply-To: <4FE27936.8090401@xenotime.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1297 Lines: 37 On 21/06/12 03:30, Randy Dunlap wrote: > 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 Acked-by: 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/