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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1f22eb80-0b24-6ddd-afbf-95df8d45f3f9@intel.com>
Date: Mon, 23 Dec 2024 14:46:25 -0800
From: Fenghua Yu <fenghua.yu@...el.com>
To: <linux@...blig.org>, <dave.jiang@...el.com>, <vkoul@...nel.org>
CC: <dmaengine@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] dmaengine: idxd: Remove unused idxd_(un)register_bus_type



On 12/21/24 06:16, linux@...blig.org wrote:
> From: "Dr. David Alan Gilbert" <linux@...blig.org>
> 
> idxd_register_bus_type() and idxd_unregister_bus_type() have been unused
> since 2021's
> commit d9e5481fca74 ("dmaengine: dsa: move dsa_bus_type out of idxd driver
> to standalone")
> 
> Remove them.
> 
> Signed-off-by: Dr. David Alan Gilbert <linux@...blig.org>

Reviewed-by: Fenghua Yu <fenghua.yu@...el.com>

> ---
>   drivers/dma/idxd/idxd.h  |  2 --
>   drivers/dma/idxd/sysfs.c | 10 ----------
>   2 files changed, 12 deletions(-)
> 
> diff --git a/drivers/dma/idxd/idxd.h b/drivers/dma/idxd/idxd.h
> index d84e21daa991..ff33ebf08ee7 100644
> --- a/drivers/dma/idxd/idxd.h
> +++ b/drivers/dma/idxd/idxd.h
> @@ -725,8 +725,6 @@ static inline void idxd_desc_complete(struct idxd_desc *desc,
>   				   &desc->txd, &status);
>   }
>   
> -int idxd_register_bus_type(void);
> -void idxd_unregister_bus_type(void);
>   int idxd_register_devices(struct idxd_device *idxd);
>   void idxd_unregister_devices(struct idxd_device *idxd);
>   void idxd_wqs_quiesce(struct idxd_device *idxd);
> diff --git a/drivers/dma/idxd/sysfs.c b/drivers/dma/idxd/sysfs.c
> index f706eae0e76b..6af493f6ba77 100644
> --- a/drivers/dma/idxd/sysfs.c
> +++ b/drivers/dma/idxd/sysfs.c
> @@ -1979,13 +1979,3 @@ void idxd_unregister_devices(struct idxd_device *idxd)
>   		device_unregister(group_confdev(group));
>   	}
>   }
> -
> -int idxd_register_bus_type(void)
> -{
> -	return bus_register(&dsa_bus_type);
> -}
> -
> -void idxd_unregister_bus_type(void)
> -{
> -	bus_unregister(&dsa_bus_type);
> -}

Thanks.

-Fenghua

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ