Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2536194lqz; Wed, 3 Apr 2024 00:18:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWtFrKrGOJEfgediKiRljjd5dy/HNZIeqJGRHJVr+P7HbBXet7GbanaEqwhyi9SIE+hL5wyVCq75AiUC0yImJk0taoRcF33mgMcpCRzPA== X-Google-Smtp-Source: AGHT+IFlUjPsIa7giwBbw+iz7yRH3ig6a16ZSK5PuE1YxtvsD9ugMGg6dGmgh46rM1D/iYXoTPQn X-Received: by 2002:a05:6808:1a24:b0:3c4:da5f:cd35 with SMTP id bk36-20020a0568081a2400b003c4da5fcd35mr14853185oib.21.1712128686473; Wed, 03 Apr 2024 00:18:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712128686; cv=pass; d=google.com; s=arc-20160816; b=mdkI0uaBIes/XfnRmjQHZTCaoLyjYyMny8s9D676ok5wCFABAHUAfnLSx0tdbmnBsS kzLhEz3tJCfhPGE6qg7aCLCpRVkO2ANVI7yaV1RF1dSPMRHyfMdh3vdEgdlTGVr2scD1 oSPCEiyLvWZgH82sI6hXZxUbp2npKPnK2LYUVZqkXMhUcTDnVYSwZv04vux+KZ947tN0 Ms1UHik713q0+K/i2HbteA37tf6nrAuf2VhfbHuFNVW6aRRlSCedIGJt6DWGMxkOXTIO lr/NLoUy+rHNxzVVKGnNVAowtb3joo2FRR8niq/khXssQEXjv2THXNydDe5Bsa1+iFHN LxQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=lMqOpBDBirbRk5WtLg+vlFzNRgQtbuZ3Y3DmYR1mg+A=; fh=gMqALmGbM+UMbwROxCcOh/yDboSvFe5iTYljZ+qtD7o=; b=0vXmPCUO2nbAOMu4kgsm8qOxKTWEo584p6lJHNp9FFrudnzcLYZD+4piXKemZ17Qu0 4truBUsCM9O67DxKaSsZ23lG6Re23LJP8HLXMtQH+voDyAlvh+Agu6GNCVWzUXrdATCx T/6S7Dp+bfUsmRDM8ht+W1BsIA+N7C5awMQuvuVfH1zlRpwZJnaJFqxSPCNMPs/355kp jgAoAT/edtoJiRyVU0GGwyuoQnsdEfrelrQ5FczsjKKpKCrvv48Ma50fyqla+btCYoI+ f23i+wPgLWG/3ihrUi9abumiWz4nkpzRFvZT1FPU/ttreZSbmFQpLCvD+iGJ1Us3RYFQ yY4g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ZSOfNFjC; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-129144-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129144-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id bc17-20020a656d91000000b005f05664c05fsi14007024pgb.495.2024.04.03.00.18.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 00:18:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129144-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ZSOfNFjC; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-129144-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129144-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 21AEBB221ED for ; Wed, 3 Apr 2024 07:15:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B62115A79B; Wed, 3 Apr 2024 07:15:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="ZSOfNFjC" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 45D535491E for ; Wed, 3 Apr 2024 07:15:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712128513; cv=none; b=YFeo/bV/GMIxrcFc7lRBB1SQaD4ifpefVUq+yZL5JlQp1OZyRA6CD4hbeabeIyTRvxroD8dZxPV5FlBjCUF9SKANIgSPasAM11tCEuaahIJaELuPZ+JcL86JgE06hINnHpBoZg5SI1J8NOKsXZxrY73Kug6ocAvCwF11ilkWO4s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712128513; c=relaxed/simple; bh=qzfSfHG2Ybl71GhTl+7btqP37t8xlMwKwQEX6DKSPuc=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ZCx1gYcTo5OOCVNfoNbmcySHTDU/XwDTrbD8k68K1D9lHkEu4mPzBYzWxlprpc9pec833kA/+aIuNesWE1LVm32VfiaqX2JMfDNAl3OMrFoHFSthM/1mxKt0Rp6H55IwaTlBHUS7lB/tw1rzW2MuUg7mFL1cZ4RjxD1sKiUdcbA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=ZSOfNFjC; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1712128510; bh=qzfSfHG2Ybl71GhTl+7btqP37t8xlMwKwQEX6DKSPuc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ZSOfNFjCrw4xsn7R+uqY+6VzlKRxIvoD/aWVbFtNhVn80sXm02Bpr0gqGSLr91zGw xW9JDqijVntntCRsYNToY5aHEpTTk5vMJvV5iOET1iEh/rPQWmqYfmBxvd2uAxrMXa M6FLuM6v0VNaXLK6f8a9P8biOAGSNpeKj3E9QTId/4fZK/EUhxcu//uD1k3ls5qR8o IJyXSr1qf5gIWSfvNXBSR1ZPVBorEi3GEPn7kHU1kdnzYve/6g8CddMB3EqQzkJ1lC IAIEuNJLm1ZaePI9aCxLzUJZlojyAVbsIe+OCcH6EGf6Z3Cggf/p4GbWgrLEpV83Ra n22K46WdDofYQ== Received: from localhost (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bbrezillon) by madrid.collaboradmins.com (Postfix) with ESMTPSA id D9F1037813DC; Wed, 3 Apr 2024 07:15:09 +0000 (UTC) Date: Wed, 3 Apr 2024 09:15:08 +0200 From: Boris Brezillon To: Liviu Dudau Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Steven Price Subject: Re: [PATCH 1/2] drm/panthor: Cleanup unused variable 'cookie' Message-ID: <20240403091508.009369b0@collabora.com> In-Reply-To: <20240402215423.360341-1-liviu.dudau@arm.com> References: <20240402215423.360341-1-liviu.dudau@arm.com> Organization: Collabora X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-redhat-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 2 Apr 2024 22:54:22 +0100 Liviu Dudau wrote: > Commit 962f88b9c916 ("drm/panthor: Drop the dev_enter/exit() sections in > _irq_suspend/resume()") removed the code that used the 'cookie' variable > but left the declaration in place. Remove it. > > Fixes: 962f88b9c916 ("drm/panthor: Drop the dev_enter/exit() sections in _irq_suspend/resume()") > Cc: Boris Brezillon > Cc: Steven Price > Signed-off-by: Liviu Dudau Queued both patches to drm-misc-next. > --- > drivers/gpu/drm/panthor/panthor_device.h | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/gpu/drm/panthor/panthor_device.h b/drivers/gpu/drm/panthor/panthor_device.h > index dc3e9c666b5bd4..2fdd671b38fd9b 100644 > --- a/drivers/gpu/drm/panthor/panthor_device.h > +++ b/drivers/gpu/drm/panthor/panthor_device.h > @@ -323,8 +323,6 @@ static irqreturn_t panthor_ ## __name ## _irq_threaded_handler(int irq, void *da > \ > static inline void panthor_ ## __name ## _irq_suspend(struct panthor_irq *pirq) \ > { \ > - int cookie; \ > - \ > pirq->mask = 0; \ > gpu_write(pirq->ptdev, __reg_prefix ## _INT_MASK, 0); \ > synchronize_irq(pirq->irq); \ > @@ -333,8 +331,6 @@ static inline void panthor_ ## __name ## _irq_suspend(struct panthor_irq *pirq) > \ > static inline void panthor_ ## __name ## _irq_resume(struct panthor_irq *pirq, u32 mask) \ > { \ > - int cookie; \ > - \ > atomic_set(&pirq->suspended, false); \ > pirq->mask = mask; \ > gpu_write(pirq->ptdev, __reg_prefix ## _INT_CLEAR, mask); \