From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lars-Peter Clausen Subject: Re: [PATCH v2] DRM: add drm gem cma helper Date: Mon, 04 Jun 2012 11:08:20 +0200 Message-ID: <4FCC7B04.3070103@metafoo.de> References: <1338451734-20232-1-git-send-email-s.hauer@pengutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from smtp-out-111.synserver.de (smtp-out-111.synserver.de [212.40.185.111]) by gabe.freedesktop.org (Postfix) with ESMTP id CF6429E74C for ; Mon, 4 Jun 2012 02:04:59 -0700 (PDT) In-Reply-To: <1338451734-20232-1-git-send-email-s.hauer@pengutronix.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Sascha Hauer Cc: Laurent Pinchart , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On 05/31/2012 10:08 AM, Sascha Hauer wrote: > [...] > diff --git a/drivers/gpu/drm/drm_gem_cma_helper.c b/drivers/gpu/drm/drm_gem_cma_helper.c > new file mode 100644 > index 0000000..d8c0dc7 > --- /dev/null > +++ b/drivers/gpu/drm/drm_gem_cma_helper.c > @@ -0,0 +1,243 @@ > +/* > + * drm gem cma (contiguous memory allocator) helper functions > + * > + * Copyright (C) 2012 Sascha Hauer, Pengutronix > + * > + * Based on Samsung Exynos code > + * > + * Copyright (c) 2011 Samsung Electronics Co., Ltd. > + * > + * This program is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License > + * as published by the Free Software Foundation; either version 2 > + * of the License, or (at your option) any later version. > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + */ > +#include > +#include > +#include Sorry, forgot to mention this during the v1 review. This needs '#include ' for EXPORT_SYMBOL_GPL. I get compile errors otherwise. Maybe it also makes sense to include linux/slab.h, linux/dma-mapping.h, linux/mm.h and linux/mutex.h since those are only implicitly included right now. - Lars