public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] vfio: mdev: Remove unused function declarations
@ 2024-08-12 12:08 Zhang Zekun
  2024-08-13 18:04 ` Jason Gunthorpe
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Zhang Zekun @ 2024-08-12 12:08 UTC (permalink / raw)
  To: kwankhede, alex.williamson, kvm; +Cc: zhangzekun11

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[];
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] vfio: mdev: Remove unused function declarations
  2024-08-12 12:08 [PATCH] vfio: mdev: Remove unused function declarations Zhang Zekun
@ 2024-08-13 18:04 ` Jason Gunthorpe
  2024-08-14  7:45 ` Tian, Kevin
  2024-09-03 18:48 ` Alex Williamson
  2 siblings, 0 replies; 4+ messages in thread
From: Jason Gunthorpe @ 2024-08-13 18:04 UTC (permalink / raw)
  To: Zhang Zekun; +Cc: kwankhede, alex.williamson, kvm

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH] vfio: mdev: Remove unused function declarations
  2024-08-12 12:08 [PATCH] vfio: mdev: Remove unused function declarations Zhang Zekun
  2024-08-13 18:04 ` Jason Gunthorpe
@ 2024-08-14  7:45 ` Tian, Kevin
  2024-09-03 18:48 ` Alex Williamson
  2 siblings, 0 replies; 4+ messages in thread
From: Tian, Kevin @ 2024-08-14  7:45 UTC (permalink / raw)
  To: Zhang Zekun, kwankhede@nvidia.com, alex.williamson@redhat.com,
	kvm@vger.kernel.org

> 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>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] vfio: mdev: Remove unused function declarations
  2024-08-12 12:08 [PATCH] vfio: mdev: Remove unused function declarations Zhang Zekun
  2024-08-13 18:04 ` Jason Gunthorpe
  2024-08-14  7:45 ` Tian, Kevin
@ 2024-09-03 18:48 ` Alex Williamson
  2 siblings, 0 replies; 4+ messages in thread
From: Alex Williamson @ 2024-09-03 18:48 UTC (permalink / raw)
  To: Zhang Zekun; +Cc: kwankhede, kvm

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-09-03 18:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-12 12:08 [PATCH] vfio: mdev: Remove unused function declarations Zhang Zekun
2024-08-13 18:04 ` Jason Gunthorpe
2024-08-14  7:45 ` Tian, Kevin
2024-09-03 18:48 ` Alex Williamson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox