From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DBEFE395D87 for ; Wed, 15 Apr 2026 08:32:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.97.179.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776241939; cv=none; b=WtQ4dp8QozA13im74K+oezqIIAUCJ/ND4hQSs9kIwy/LH1yNma+8gnaOuaMNwK/O0vv5Tv1pt7Ap3zP3ywl4tvUGogc+DDkzp/4ZWAmyUf++Gj1dqiK8aB57sU9+89vK2DDQm+Oy1IiDmjMzBVNeT/nm+opu7GscXGr1Hz4mtsQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776241939; c=relaxed/simple; bh=x66kQfrFrYjoIpaFR755Xxz2TSD2Vc1x7T5NXfjKNy0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=NQIdDtKL8JkRwbAQtxTC5ecS4ocyvWm89vAQe0cJVcUPtcvuVBD5gw/WxInAgeMK24Ss7JLJT9nJUZSvZNEhcaa24Ir3KEIq63S8Uy/ETUVYS/V9G5l95ZWoqbDN0462lqJ4B2TTVVWT9QUf71DOzTgtBSRwpAB5rsMeveVBkaQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=igalia.com; spf=pass smtp.mailfrom=igalia.com; dkim=pass (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b=OeulM41R; arc=none smtp.client-ip=213.97.179.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=igalia.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=igalia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b="OeulM41R" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=uccK1UlL2q32e1lqqlAUKrHuRToJr+1oqiB2D8KJ9Yg=; b=OeulM41Rf9CI3FDF8rLSWIjC+9 eMmpb/EjpJ6DkFSDG9BtOlSAoq3VHNB/aTadHr6u59crhbgjXtVufe5GLiSZjxeu6e6DOpOZEW+Eo QJl7ZpxN+ARQQTDmYMtEHHxz/vAQnLJpSV5dMGCISTc/r37Cr4vDpIvxxhch2Ipb9sRGsfffladBR LDR35MpKb0oJnvbEQ/jqCkkaJEuRujqh4nnZyqQphZ5xCKbBvDmuNwDPfzTuCspmdG2LFUyuJgTns LgOz0IJbkkN/G9xSlkR867pGVbvsSJMbs0cjwv3n+ExDIJHFHgVzLvo7uFA5WdazaAOVQjQ1fetL+ NwLs7G8A==; Received: from [90.240.106.137] (helo=localhost) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1wCvfO-00GHZP-5K; Wed, 15 Apr 2026 10:32:10 +0200 From: Tvrtko Ursulin To: dri-devel@lists.freedesktop.org Cc: kernel-dev@igalia.com, Tvrtko Ursulin , =?UTF-8?q?Christian=20K=C3=B6nig?= , linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org Subject: [PATCH 1/2] dma-fence: Silence sparse warning in dma_fence_describe Date: Wed, 15 Apr 2026 09:32:06 +0100 Message-ID: <20260415083207.40513-1-tvrtko.ursulin@igalia.com> X-Mailer: git-send-email 2.52.0 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sparse complains about assigning a string to a __rcu annotated local variable: drivers/dma-buf/dma-fence.c:1040:38: warning: incorrect type in initializer (different address spaces) drivers/dma-buf/dma-fence.c:1040:38: expected char const [noderef] __rcu *timeline drivers/dma-buf/dma-fence.c:1040:38: got char * drivers/dma-buf/dma-fence.c:1041:36: warning: incorrect type in initializer (different address spaces) drivers/dma-buf/dma-fence.c:1041:36: expected char const [noderef] __rcu *driver drivers/dma-buf/dma-fence.c:1041:36: got char * It is harmless but lets silence it. Signed-off-by: Tvrtko Ursulin Fixes: ac364014fd81 ("dma-buf: cleanup dma_fence_describe v3") Cc: Christian König Cc: linux-media@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: linaro-mm-sig@lists.linaro.org Reviewed-by: Christian König --- drivers/dma-buf/dma-fence.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c index 1826ba73094c..a2aa82f4eedd 100644 --- a/drivers/dma-buf/dma-fence.c +++ b/drivers/dma-buf/dma-fence.c @@ -1037,8 +1037,8 @@ EXPORT_SYMBOL(dma_fence_set_deadline); */ void dma_fence_describe(struct dma_fence *fence, struct seq_file *seq) { - const char __rcu *timeline = ""; - const char __rcu *driver = ""; + const char __rcu *timeline = (const char __rcu *)""; + const char __rcu *driver = (const char __rcu *)""; const char *signaled = ""; rcu_read_lock(); -- 2.52.0