From: Inki Dae <inki.dae@samsung.com>
To: 'Thomas Meyer' <thomas@m3y3r.de>,
jy0922.shim@samsung.com, sw0312.kim@samsung.com,
kyungmin.park@samsung.com, airlied@linux.ie,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: RE: [PATCH] drm/exynos: Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(.. [1]
Date: Wed, 08 Aug 2012 10:26:04 +0900 [thread overview]
Message-ID: <002901cd7504$c72bd530$55837f90$%dae@samsung.com> (raw)
In-Reply-To: <1344322645.14513.122.camel@localhost.localdomain>
> -----Original Message-----
> From: Thomas Meyer [mailto:thomas@m3y3r.de]
> Sent: Tuesday, August 07, 2012 3:57 PM
> To: inki.dae@samsung.com; jy0922.shim@samsung.com; sw0312.kim@samsung.com;
> kyungmin.park@samsung.com; airlied@linux.ie; dri-
> devel@lists.freedesktop.org; linux-kernel@vger.kernel.org
> Subject: [PATCH] drm/exynos: Use ERR_CAST inlined function instead of
> ERR_PTR(PTR_ERR(.. [1]
>
> The semantic patch that makes this change is available
> in scripts/coccinelle/api/err_cast.cocci.
>
> More information about semantic patching is available at
> http://coccinelle.lip6.fr/
>
> Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
> ---
>
> diff -u -p a/drivers/gpu/drm/exynos/exynos_drm_gem.c
> b/drivers/gpu/drm/exynos/exynos_drm_gem.c
> --- a/drivers/gpu/drm/exynos/exynos_drm_gem.c
> +++ b/drivers/gpu/drm/exynos/exynos_drm_gem.c
> @@ -122,7 +122,7 @@ fail:
> __free_page(pages[i]);
>
> drm_free_large(pages);
> - return ERR_PTR(PTR_ERR(p));
> + return ERR_CAST(p);
> }
>
> static void exynos_gem_put_pages(struct drm_gem_object *obj,
Applied.
Thanks for your patch.
prev parent reply other threads:[~2012-08-08 1:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-07 6:57 [PATCH] drm/exynos: Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(.. [1] Thomas Meyer
2012-08-08 1:26 ` Inki Dae [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='002901cd7504$c72bd530$55837f90$%dae@samsung.com' \
--to=inki.dae@samsung.com \
--cc=airlied@linux.ie \
--cc=dri-devel@lists.freedesktop.org \
--cc=jy0922.shim@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sw0312.kim@samsung.com \
--cc=thomas@m3y3r.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox