diff mbox series

vfio: mdev: Remove unused function declarations

Message ID 20240812120823.10968-1-zhangzekun11@huawei.com (mailing list archive)
State New, archived
Headers show
Series vfio: mdev: Remove unused function declarations | expand

Commit Message

zhangzekun (A) Aug. 12, 2024, 12:08 p.m. UTC
The definition of mdev_bus_register() and mdev_bus_unregister() have been
removed since commit 6c7f98b334a3 ("vfio/mdev: Remove vfio_mdev.c"). So,
let's remove the unused declarations.

Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
---
 drivers/vfio/mdev/mdev_private.h | 3 ---
 1 file changed, 3 deletions(-)

Comments

Jason Gunthorpe Aug. 13, 2024, 6:04 p.m. UTC | #1
On Mon, Aug 12, 2024 at 08:08:23PM +0800, Zhang Zekun wrote:
> The definition of mdev_bus_register() and mdev_bus_unregister() have been
> removed since commit 6c7f98b334a3 ("vfio/mdev: Remove vfio_mdev.c"). So,
> let's remove the unused declarations.
> 
> Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
> ---
>  drivers/vfio/mdev/mdev_private.h | 3 ---
>  1 file changed, 3 deletions(-)

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>

Jason
Tian, Kevin Aug. 14, 2024, 7:45 a.m. UTC | #2
> From: Zhang Zekun <zhangzekun11@huawei.com>
> Sent: Monday, August 12, 2024 8:08 PM
> 
> The definition of mdev_bus_register() and mdev_bus_unregister() have been
> removed since commit 6c7f98b334a3 ("vfio/mdev: Remove vfio_mdev.c"). So,
> let's remove the unused declarations.
> 
> Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Alex Williamson Sept. 3, 2024, 6:48 p.m. UTC | #3
On Mon, 12 Aug 2024 20:08:23 +0800
Zhang Zekun <zhangzekun11@huawei.com> wrote:

> The definition of mdev_bus_register() and mdev_bus_unregister() have been
> removed since commit 6c7f98b334a3 ("vfio/mdev: Remove vfio_mdev.c"). So,
> let's remove the unused declarations.
> 
> Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
> ---
>  drivers/vfio/mdev/mdev_private.h | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/drivers/vfio/mdev/mdev_private.h b/drivers/vfio/mdev/mdev_private.h
> index 63a1316b08b7..5f61acd0fe42 100644
> --- a/drivers/vfio/mdev/mdev_private.h
> +++ b/drivers/vfio/mdev/mdev_private.h
> @@ -10,9 +10,6 @@
>  #ifndef MDEV_PRIVATE_H
>  #define MDEV_PRIVATE_H
>  
> -int  mdev_bus_register(void);
> -void mdev_bus_unregister(void);
> -
>  extern const struct bus_type mdev_bus_type;
>  extern const struct attribute_group *mdev_device_groups[];
>  

Applied to vfio next branch for v6.12.  Thanks!

Alex
diff mbox series

Patch

diff --git a/drivers/vfio/mdev/mdev_private.h b/drivers/vfio/mdev/mdev_private.h
index 63a1316b08b7..5f61acd0fe42 100644
--- a/drivers/vfio/mdev/mdev_private.h
+++ b/drivers/vfio/mdev/mdev_private.h
@@ -10,9 +10,6 @@ 
 #ifndef MDEV_PRIVATE_H
 #define MDEV_PRIVATE_H
 
-int  mdev_bus_register(void);
-void mdev_bus_unregister(void);
-
 extern const struct bus_type mdev_bus_type;
 extern const struct attribute_group *mdev_device_groups[];