2022-09-19 07:16:25

by Jiapeng Chong

[permalink] [raw]
Subject: [PATCH] Drivers: hv: vmbus: Fix kernel-doc

drivers/hv/vmbus_drv.c:1587: warning: expecting prototype for __vmbus_child_driver_register(). Prototype was for __vmbus_driver_register() instead.

Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2210
Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Jiapeng Chong <[email protected]>
---
drivers/hv/vmbus_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c
index 7b9f3fc3adf7..621702a1725f 100644
--- a/drivers/hv/vmbus_drv.c
+++ b/drivers/hv/vmbus_drv.c
@@ -1573,7 +1573,7 @@ static int vmbus_bus_init(void)
}

/**
- * __vmbus_child_driver_register() - Register a vmbus's driver
+ * __vmbus_driver_register() - Register a vmbus's driver
* @hv_driver: Pointer to driver structure you want to register
* @owner: owner module of the drv
* @mod_name: module name string
--
2.20.1.7.g153144c


2022-09-22 22:52:25

by Michael Kelley (LINUX)

[permalink] [raw]
Subject: RE: [PATCH] Drivers: hv: vmbus: Fix kernel-doc

From: Jiapeng Chong <[email protected]> Sent: Sunday, September 18, 2022 11:38 PM
>
> drivers/hv/vmbus_drv.c:1587: warning: expecting prototype for
> __vmbus_child_driver_register(). Prototype was for __vmbus_driver_register() instead.
>
> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2210
> Reported-by: Abaci Robot <[email protected]>
> Signed-off-by: Jiapeng Chong <[email protected]>
> ---
> drivers/hv/vmbus_drv.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c
> index 7b9f3fc3adf7..621702a1725f 100644
> --- a/drivers/hv/vmbus_drv.c
> +++ b/drivers/hv/vmbus_drv.c
> @@ -1573,7 +1573,7 @@ static int vmbus_bus_init(void)
> }
>
> /**
> - * __vmbus_child_driver_register() - Register a vmbus's driver
> + * __vmbus_driver_register() - Register a vmbus's driver
> * @hv_driver: Pointer to driver structure you want to register
> * @owner: owner module of the drv
> * @mod_name: module name string
> --
> 2.20.1.7.g153144c

Reviewed-by: Michael Kelley <[email protected]>

2022-09-23 10:53:28

by Wei Liu

[permalink] [raw]
Subject: Re: [PATCH] Drivers: hv: vmbus: Fix kernel-doc

On Thu, Sep 22, 2022 at 10:37:27PM +0000, Michael Kelley (LINUX) wrote:
> From: Jiapeng Chong <[email protected]> Sent: Sunday, September 18, 2022 11:38 PM
> >
> > drivers/hv/vmbus_drv.c:1587: warning: expecting prototype for
> > __vmbus_child_driver_register(). Prototype was for __vmbus_driver_register() instead.
> >
> > Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2210
> > Reported-by: Abaci Robot <[email protected]>
> > Signed-off-by: Jiapeng Chong <[email protected]>
> > ---
> > drivers/hv/vmbus_drv.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c
> > index 7b9f3fc3adf7..621702a1725f 100644
> > --- a/drivers/hv/vmbus_drv.c
> > +++ b/drivers/hv/vmbus_drv.c
> > @@ -1573,7 +1573,7 @@ static int vmbus_bus_init(void)
> > }
> >
> > /**
> > - * __vmbus_child_driver_register() - Register a vmbus's driver
> > + * __vmbus_driver_register() - Register a vmbus's driver
> > * @hv_driver: Pointer to driver structure you want to register
> > * @owner: owner module of the drv
> > * @mod_name: module name string
> > --
> > 2.20.1.7.g153144c
>
> Reviewed-by: Michael Kelley <[email protected]>
>

Applied to hyperv-next. Thanks.