mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matthew Auld <matthew.auld@intel.com>
To: Kai Song <songkai01@inspur.com>,
	jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com,
	rodrigo.vivi@intel.com
Cc: airlied@linux.ie, daniel@ffwll.ch, jason@jlekstrand.net,
	thomas.hellstrom@linux.intel.com,
	intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drm/i915/selftests: Fix inconsistent IS_ERR and PTR_ERR
Date: Mon, 25 Oct 2021 09:01:10 +0100	[thread overview]
Message-ID: <f0f66cb7-ce70-b968-2fa2-64c39a87e98c@intel.com> (raw)
In-Reply-To: <20211022120655.22173-1-songkai01@inspur.com>

On 22/10/2021 13:06, Kai Song wrote:
> Fix inconsistent IS_ERR and PTR_ERR in i915_gem_dmabuf.c
> 
> Signed-off-by: Kai Song <songkai01@inspur.com>

Pushed to drm-intel-gt-next. Thanks.

> ---
>   drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c b/drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c
> index 4a6bb64c3a35..3cc74b0fed06 100644
> --- a/drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c
> +++ b/drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c
> @@ -102,7 +102,7 @@ static int igt_dmabuf_import_same_driver_lmem(void *arg)
>   	obj = __i915_gem_object_create_user(i915, PAGE_SIZE, &lmem, 1);
>   	if (IS_ERR(obj)) {
>   		pr_err("__i915_gem_object_create_user failed with err=%ld\n",
> -		       PTR_ERR(dmabuf));
> +		       PTR_ERR(obj));
>   		err = PTR_ERR(obj);
>   		goto out_ret;
>   	}
> @@ -158,7 +158,7 @@ static int igt_dmabuf_import_same_driver(struct drm_i915_private *i915,
>   					    regions, num_regions);
>   	if (IS_ERR(obj)) {
>   		pr_err("__i915_gem_object_create_user failed with err=%ld\n",
> -		       PTR_ERR(dmabuf));
> +		       PTR_ERR(obj));
>   		err = PTR_ERR(obj);
>   		goto out_ret;
>   	}
> 

  reply	other threads:[~2021-10-25  8:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-22 12:06 Kai Song
2021-10-25  8:01 ` Matthew Auld [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-02-14 21:12 [PATCH] drm/i915/selftests: fix " Gustavo A. R. Silva
2018-02-15  9:13 ` Jani Nikula
2018-02-15 16:09   ` Gustavo A. R. Silva
2018-02-15 16:34     ` Chris Wilson

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=f0f66cb7-ce70-b968-2fa2-64c39a87e98c@intel.com \
    --to=matthew.auld@intel.com \
    --cc=airlied@linux.ie \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@linux.intel.com \
    --cc=jason@jlekstrand.net \
    --cc=joonas.lahtinen@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rodrigo.vivi@intel.com \
    --cc=songkai01@inspur.com \
    --cc=thomas.hellstrom@linux.intel.com \
    /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

Powered by JetHome