lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20231227000124.GA1484252@bhelgaas>
Date: Tue, 26 Dec 2023 18:01:24 -0600
From: Bjorn Helgaas <helgaas@...nel.org>
To: Mathias Krause <minipli@...ecurity.net>
Cc: Bjorn Helgaas <bhelgaas@...gle.com>,
	Arend van Spriel <arend.vanspriel@...adcom.com>,
	Franky Lin <franky.lin@...adcom.com>,
	Hante Meuleman <hante.meuleman@...adcom.com>,
	Kalle Valo <kvalo@...nel.org>, linux-pci@...r.kernel.org,
	linux-wireless@...r.kernel.org, linux-kernel@...r.kernel.org,
	SHA-cyfmac-dev-list@...ineon.com,
	brcm80211-dev-list.pdl@...adcom.com
Subject: Re: [PATCH] PCI: Remove unused 'node' member from struct pci_driver

On Wed, Dec 20, 2023 at 02:35:05PM +0100, Mathias Krause wrote:
> Remove the unused 'node' member. It got replaced by device_driver
> chaining more than 20 years ago in commit 4b4a837f2b57 ("PCI: start to
> use common fields of struct device_driver more...") of the history.git
> tree.
> 
> Signed-off-by: Mathias Krause <minipli@...ecurity.net>

Applied with Kalle's ack to pci/misc for v6.8, thanks!

> ---
> There is only one "user" that makes use of the 'node' member, which is
> the brcm80211 driver. However, its "use" is clearly wrong (a list head
> cannot be initialized this way) and, obviously, not needed.
> 
> If netdev folks instead want to split this off into a separate commit, I
> can do that. However, I don't expect any cross-tree conflicts regarding
> this change.
> 
>  drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c | 1 -
>  include/linux/pci.h                                     | 2 --
>  2 files changed, 3 deletions(-)
> 
> diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
> index 80220685f5e4..d7fb88bb6ae1 100644
> --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
> +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
> @@ -2707,7 +2707,6 @@ MODULE_DEVICE_TABLE(pci, brcmf_pcie_devid_table);
>  
>  
>  static struct pci_driver brcmf_pciedrvr = {
> -	.node = {},
>  	.name = KBUILD_MODNAME,
>  	.id_table = brcmf_pcie_devid_table,
>  	.probe = brcmf_pcie_probe,
> diff --git a/include/linux/pci.h b/include/linux/pci.h
> index dea043bc1e38..835a937fd233 100644
> --- a/include/linux/pci.h
> +++ b/include/linux/pci.h
> @@ -885,7 +885,6 @@ struct module;
>  
>  /**
>   * struct pci_driver - PCI driver structure
> - * @node:	List of driver structures.
>   * @name:	Driver name.
>   * @id_table:	Pointer to table of device IDs the driver is
>   *		interested in.  Most drivers should export this
> @@ -940,7 +939,6 @@ struct module;
>   *		own I/O address space.
>   */
>  struct pci_driver {
> -	struct list_head	node;
>  	const char		*name;
>  	const struct pci_device_id *id_table;	/* Must be non-NULL for probe to be called */
>  	int  (*probe)(struct pci_dev *dev, const struct pci_device_id *id);	/* New device inserted */
> -- 
> 2.39.2
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ