Message ID | 20240213111511.25187-1-jirislaby@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-63406-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp465244dyb; Tue, 13 Feb 2024 03:15:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW1KF533Vt9fDzYxTIJYYrRngLx+fJqe8M8JdKgU2QvYRWKgUNuhP0pqU4Ux5NaPvd90VO8IsbfgsCyhQVN/6WlyLOJYA== X-Google-Smtp-Source: AGHT+IEUSFCbotBnAm45jGdaLSewl4Y0Xleo/MM/MhRH2EYt44xF0AsDyrXIiBFbpsOjpcZ7dGr2 X-Received: by 2002:a05:6830:3d18:b0:6e2:efe2:dace with SMTP id eu24-20020a0568303d1800b006e2efe2dacemr2787096otb.10.1707822928135; Tue, 13 Feb 2024 03:15:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707822928; cv=pass; d=google.com; s=arc-20160816; b=ecMVVFtjG53++u2tJ/UFx1tU8Oc1ICJczGwNFt++RuVbLjoolFZv5ZUHH0ESrxryif VFnqUDt/7uiNywgIiCW7avCP4opp0R30TZufDQfK2NDu/uEXH4cKVo7kxduxZYNxiLsD kkw3Sd09Wwy7RFOHvUK5RxsES3yKb1wlG97C3xuyXy4vrRHKabQrR74UgRpixw1Yvwdy 5cJGZFIjBznfCoXBOTC/UYx83C6+z74ziQ/YvYZ7V4egDhkoGVbQ6XMf5bxFRAHgS4fn FNmL4smFvvHxlHkcoHJLKbza4SkX0jEno36MUztPI5ShHmbefcy/So2IyzCIVDLv+8/Y m2nA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=YGa1yQ1wxMXITBdV9tGnNNbH7E/yR4j+RVu7JdYpq4g=; fh=vUNGERiBdG/OLNPI/ll9d0p8VTgjuXo7rWVWQA/R6eM=; b=Y9A7gMHybLpruXWaNqz13wnst4VM5LTnFyms9xNBHmOlGViyLhPc9GaojglZWAg6jq z2RaAqGEcb+CgIBJ50nzSdXgfkHHoJsPVCBkwDlGe4F2OH0kTdsRy7EARwYILvGH26hf vQSZuS+NitQPyb2am1HMHzc6amgRcOOH4KFydRWF7GSR6w4ugQpspWz89al5sMDwTMQk DzeSW0hCo95xgpFHuCEum8UcpthsgCLfSzRaHKUhO/6NaZOvFdctHAt4zJHLXEBcjITZ wglp0tdGR05r43CYFV8ktuKxOADWcnMn1wSe9ArbWNm8SL5sfAhmyAzArr2qsLLG2xyY V29Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PltzndGW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-63406-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63406-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCWB/dE7EfuUY4AdGdEgrvSwyZwpDLbc2KVejQ3YVlCiNwTiavm4+jipjLhAL64Dy2hgcVpy++N9RfNkl7uVx8oEMN2F/w== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v3-20020a05622a144300b0042d918da42dsi2802759qtx.37.2024.02.13.03.15.28 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 03:15:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63406-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PltzndGW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-63406-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63406-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E2D3E1C213A7 for <ouuuleilei@gmail.com>; Tue, 13 Feb 2024 11:15:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AACB636AEF; Tue, 13 Feb 2024 11:15:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PltzndGW" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 163162C697 for <linux-kernel@vger.kernel.org>; Tue, 13 Feb 2024 11:15:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707822915; cv=none; b=WXU8iAKxdjB+HCk9LxWgpYFT+clO6OQtrvtfZ51BKO7RL8vdkJWdYZ+iq+g9Lzu6IihC2kESmxNu/yW0M3qD8ZaHvZ4Z1313LOLlYKuydMmrxJWNHQFgp++YWqFdD1GwUYKlpCfC5dhvQZeK4IgZOPywnopxkQTujqvWR3SPJTc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707822915; c=relaxed/simple; bh=APFYotw86p62/fng4yVxpcCYH9lo/o/Vcj6fOv/RC1A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gBIlIGJ8lHdkeNSMYIx1pDL01DC/zKdkns3UwLDutAoQEIep3Ma45JTap1OV/eQsO6FSCgsh6JtAG0X2BeH29ZJ1QzuSsT3UDH8SApbrba0mtWig3toE1iwaa2vkmD+F7uA8V9cOqkhjoF+lhk6zk9dIdO3w0A7e4+6yPu3c0pM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PltzndGW; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6E826C433F1; Tue, 13 Feb 2024 11:15:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707822914; bh=APFYotw86p62/fng4yVxpcCYH9lo/o/Vcj6fOv/RC1A=; h=From:To:Cc:Subject:Date:From; b=PltzndGWBmDv79/xBrq7AJdgFkZVFxH4Z7szGa1fV9ivAucdRuutHaGUAmMbNdof0 hTslWXhiMAUBoDqPxv9tRx9LoEYjG80z2S03ce1B3dJkmYpDyQzSmAhtkqTcTWZG2m /Sq2wGU72W5seadfu8veobnkvhVUi5stEviuesGw6p7bsMr1LK546aF0OzHCULWolj cDPGehGbrTcMivrgAAtuBMa4ibhwstKGXZAmr51g9aYcYYpRhP9y7wLAaWz4hd2XwD BmYb/bSV+32WkP0LxQboQ6N24ox+m+Uoij43J7hJsbUtdpLKEk+zy9CdKPMH3eLwCT 1FpLSK85fkOrw== From: "Jiri Slaby (SUSE)" <jirislaby@kernel.org> To: airlied@redhat.com Cc: linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" <jirislaby@kernel.org>, dri-devel@lists.freedesktop.org Subject: [PATCH] char/agp: remove agp_bridge_data::type Date: Tue, 13 Feb 2024 12:15:11 +0100 Message-ID: <20240213111511.25187-1-jirislaby@kernel.org> X-Mailer: git-send-email 2.43.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790782134652563857 X-GMAIL-MSGID: 1790782134652563857 |
Series |
char/agp: remove agp_bridge_data::type
|
|
Commit Message
Jiri Slaby
Feb. 13, 2024, 11:15 a.m. UTC
agp_bridge_data::type is unused (and I cannot find when was used last).
Therefore, remove it.
Found by https://github.com/jirislaby/clang-struct.
Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Cc: David Airlie <airlied@redhat.com>
Cc: dri-devel@lists.freedesktop.org
---
drivers/char/agp/agp.h | 1 -
1 file changed, 1 deletion(-)
Comments
On Tue, Feb 13, 2024 at 12:15:11PM +0100, Jiri Slaby (SUSE) wrote: > agp_bridge_data::type is unused (and I cannot find when was used last). > > Therefore, remove it. > > Found by https://github.com/jirislaby/clang-struct. > > Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org> > Cc: David Airlie <airlied@redhat.com> > Cc: dri-devel@lists.freedesktop.org Thanks, pushed to drm-misc-next. -Sima > --- > drivers/char/agp/agp.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/char/agp/agp.h b/drivers/char/agp/agp.h > index 5c36ab85f80b..67d7be800a7c 100644 > --- a/drivers/char/agp/agp.h > +++ b/drivers/char/agp/agp.h > @@ -138,7 +138,6 @@ struct agp_bridge_data { > unsigned long gart_bus_addr; > unsigned long gatt_bus_addr; > u32 mode; > - enum chipset_type type; > unsigned long *key_list; > atomic_t current_memory_agp; > atomic_t agp_in_use; > -- > 2.43.1 >
diff --git a/drivers/char/agp/agp.h b/drivers/char/agp/agp.h index 5c36ab85f80b..67d7be800a7c 100644 --- a/drivers/char/agp/agp.h +++ b/drivers/char/agp/agp.h @@ -138,7 +138,6 @@ struct agp_bridge_data { unsigned long gart_bus_addr; unsigned long gatt_bus_addr; u32 mode; - enum chipset_type type; unsigned long *key_list; atomic_t current_memory_agp; atomic_t agp_in_use;