From: Jani Nikula <jani.nikula@linux.intel.com>
To: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>,
Intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Subject: Re: [Intel-gfx] [PATCH 2/2] drm/i915: Add __rcu annotation to cursor when iterating client objects
Date: Mon, 20 Nov 2023 12:03:58 +0200 [thread overview]
Message-ID: <87cyw4pwq9.fsf@intel.com> (raw)
In-Reply-To: <20231113085457.199053-2-tvrtko.ursulin@linux.intel.com>
On Mon, 13 Nov 2023, Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com> wrote:
> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>
> __rcu annotation is needed to avoid the sparse warnings such as:
>
> .../i915_drm_client.c:92:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
> .../i915_drm_client.c:92:9: sparse: struct list_head [noderef] __rcu *
> .../i915_drm_client.c:92:9: sparse: struct list_head *
>
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> Fixes: 968853033d8a ("drm/i915: Implement fdinfo memory stats printing")
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202311110610.h0m6ydI5-lkp@intel.com/
> Cc: Andi Shyti <andi.shyti@linux.intel.com>
> Cc: Aravind Iddamsetty <aravind.iddamsetty@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
> ---
> drivers/gpu/drm/i915/i915_drm_client.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_drm_client.c b/drivers/gpu/drm/i915/i915_drm_client.c
> index be9acfd9410e..fa6852713bee 100644
> --- a/drivers/gpu/drm/i915/i915_drm_client.c
> +++ b/drivers/gpu/drm/i915/i915_drm_client.c
> @@ -78,7 +78,7 @@ static void show_meminfo(struct drm_printer *p, struct drm_file *file)
> struct drm_i915_private *i915 = fpriv->i915;
> struct drm_i915_gem_object *obj;
> struct intel_memory_region *mr;
> - struct list_head *pos;
> + struct list_head __rcu *pos;
> unsigned int id;
>
> /* Public objects. */
--
Jani Nikula, Intel
next prev parent reply other threads:[~2023-11-20 10:07 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-13 8:54 [Intel-gfx] [PATCH 1/2] drm/i915: Remove return type from i915_drm_client_remove_object Tvrtko Ursulin
2023-11-13 8:54 ` Tvrtko Ursulin
2023-11-13 8:54 ` [Intel-gfx] [PATCH 2/2] drm/i915: Add __rcu annotation to cursor when iterating client objects Tvrtko Ursulin
2023-11-13 8:54 ` Tvrtko Ursulin
2023-11-20 10:03 ` Jani Nikula [this message]
2023-11-20 10:16 ` [Intel-gfx] " Andi Shyti
2023-11-20 10:16 ` Andi Shyti
2023-11-13 14:45 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [1/2] drm/i915: Remove return type from i915_drm_client_remove_object Patchwork
2023-11-13 14:59 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-11-13 19:28 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2023-11-20 10:03 ` [Intel-gfx] [PATCH 1/2] " Jani Nikula
2023-11-20 10:03 ` Jani Nikula
2023-11-20 10:15 ` [Intel-gfx] " Andi Shyti
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=87cyw4pwq9.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=Intel-gfx@lists.freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=tvrtko.ursulin@intel.com \
--cc=tvrtko.ursulin@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.