Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B7F86C197A0 for ; Mon, 20 Nov 2023 10:17:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D3A8F10E398; Mon, 20 Nov 2023 10:17:04 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by gabe.freedesktop.org (Postfix) with ESMTPS id 903B310E398; Mon, 20 Nov 2023 10:17:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700475423; x=1732011423; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=1RbzHU9hGAKb03+oXFOpkvhNF04CcTDjh9zb67dT58U=; b=FoHDl9yjbuNbPjAqkkej1yH7le5Aid+W1yqrNwJGHuuYkTV1DmTqiEBg YFKcrxuhYLFpRyhr0G3kH+hyCHVRsQkNtJ0wE4bZ785qw5JSVDH989My+ CzSdoVDaAWXFgNQl9nRmLPEpaECFe3EiI2afJIG9q/RHbd0wYbQrHrZxe 82yJe2I430szxn7m+aB9RfPJ94F5TXNBgPrrPsfU5LAZp/4JXFyR8BqWx pU06otZPvIZ2Ihv+jNSDwwMvqFYGlOLiUkvX3/Xd6WTjopXbNed8KLUDn v12VEgrVbP0RHiXhzjB1whuKyDV7Uh52oy7qn8AUS136SDTXZtl/Njia8 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10899"; a="4708864" X-IronPort-AV: E=Sophos;i="6.04,213,1695711600"; d="scan'208";a="4708864" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2023 02:17:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,213,1695711600"; d="scan'208";a="7509718" Received: from kdaxer-mobl1.amr.corp.intel.com (HELO intel.com) ([10.249.46.237]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2023 02:17:01 -0800 Date: Mon, 20 Nov 2023 11:16:57 +0100 From: Andi Shyti To: Tvrtko Ursulin Subject: Re: [PATCH 2/2] drm/i915: Add __rcu annotation to cursor when iterating client objects Message-ID: References: <20231113085457.199053-1-tvrtko.ursulin@linux.intel.com> <20231113085457.199053-2-tvrtko.ursulin@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231113085457.199053-2-tvrtko.ursulin@linux.intel.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Aravind Iddamsetty , Tvrtko Ursulin , Intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Andi Shyti , kernel test robot Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Tvrtko, On Mon, Nov 13, 2023 at 08:54:57AM +0000, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > __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 > Fixes: 968853033d8a ("drm/i915: Implement fdinfo memory stats printing") > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202311110610.h0m6ydI5-lkp@intel.com/ > Cc: Andi Shyti > Cc: Aravind Iddamsetty Reviewed-by: Andi Shyti Thanks, Andi