From mboxrd@z Thu Jan 1 00:00:00 1970 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 9582478F59 for ; Sat, 14 Feb 2026 02:23:19 +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=1771035799; cv=none; b=mFR96sMbL3Dl11uxvCB7GyqUNMoQeQMyCaawc/XHbUwAe5Q4J5o9/Rqgfw50uKTr8QO+2TBDj44Y+dvwg7XvqMDPaV9Xej/G/D3L189U+zzCnfgHOrLbqyINoo2NT18BBIE5CSJCKi5k+iYrzmZWXeh6u2JBpOrtZkG1tKNiXws= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771035799; c=relaxed/simple; bh=Ytv37NXv0z5Ne3TNzrXe9snDQ0fnBIxpG5WD330q5QQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qMwDdEL6MzDxnNlflVFwT5YESmitxDgiLlOKtWKfHaVzhB8ZFiWM9P1P49WMWt4bU0+2zg6+sPLHse4dzjQgW5eo3J36YqdXQ00q8yIvc7FdhacIj7wiqiOQ9h7HPVwfVql8GVKsqa+SrZysl6wkwHC99W5dZrbiJCN6ZaltqGI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pakSx+T0; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pakSx+T0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CABFBC19425; Sat, 14 Feb 2026 02:23:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771035799; bh=Ytv37NXv0z5Ne3TNzrXe9snDQ0fnBIxpG5WD330q5QQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pakSx+T0XkEhkJhTLPpIvPFW/IdOEZIdcsfZaxEYtuypde4Q0d8DtkfkcTUIRkE6V +/FP2vtYVdudDb3tQQhMmnzSFzPZPqYiWFgXQQGsO29cSZ07k+16Cjic9OP841srXz VF6VeohE9FJHV/HC5dAqFUwBcN2aMqwUOvOYVqQkItclKE3/4uviNuKhd4LArnPG8T rZ5gS0ieDM58OG/v9zkdyPzeG/UzMjdFKre6mWXSaLm1oyHV34SEgFj2oPCKhfp6Qh CM14EO7LdhBUgnb+r0VODBYuw3FlDdGOD47k/5cVB14w3J7Y4TbgChyld8gD93bn0b 6CWRmsL1z0Lfw== From: Sasha Levin To: stable@vger.kernel.org Cc: Christophe JAILLET , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Bjorn Helgaas , Sasha Levin Subject: [PATCH 6.1.y 2/3] PCI: endpoint: Remove unused field in struct pci_epf_group Date: Fri, 13 Feb 2026 21:23:14 -0500 Message-ID: <20260214022316.4103092-2-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260214022316.4103092-1-sashal@kernel.org> References: <2026021308-foil-sycamore-7994@gregkh> <20260214022316.4103092-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Christophe JAILLET [ Upstream commit 328e4dffbeecc0f2cc5a149dee6c11a0577c9671 ] In "struct pci_epf_group", the 'type_group' field is unused. This was added, but already unused, by commit 70b3740f2c19 ("PCI: endpoint: Automatically create a function specific attributes group"). Thus, remove it. Found with cppcheck, unusedStructMember. [kwilczynski: commit log] Link: https://lore.kernel.org/linux-pci/6507d44b6c60a19af35a605e2d58050be8872ab6.1712341008.git.christophe.jaillet@wanadoo.fr Signed-off-by: Christophe JAILLET Signed-off-by: Krzysztof WilczyƄski Signed-off-by: Bjorn Helgaas Stable-dep-of: 7c5c7d06bd1f ("PCI: endpoint: Avoid creating sub-groups asynchronously") Signed-off-by: Sasha Levin --- drivers/pci/endpoint/pci-ep-cfs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/endpoint/pci-ep-cfs.c b/drivers/pci/endpoint/pci-ep-cfs.c index 76cffd1c18d8a..d8fe8a2d8e433 100644 --- a/drivers/pci/endpoint/pci-ep-cfs.c +++ b/drivers/pci/endpoint/pci-ep-cfs.c @@ -23,7 +23,6 @@ struct pci_epf_group { struct config_group group; struct config_group primary_epc_group; struct config_group secondary_epc_group; - struct config_group *type_group; struct delayed_work cfs_work; struct pci_epf *epf; int index; -- 2.51.0