2023-05-23 02:55:46

by Jiapeng Chong

[permalink] [raw]
Subject: [PATCH] drivers: mcb: Modify mismatched function name

No functional modification involved.

drivers/mcb/mcb-core.c:335: warning: expecting prototype for mcb_bus_put(). Prototype was for mcb_bus_get() instead.

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

diff --git a/drivers/mcb/mcb-core.c b/drivers/mcb/mcb-core.c
index 978fdfc19a06..520160eaa7b1 100644
--- a/drivers/mcb/mcb-core.c
+++ b/drivers/mcb/mcb-core.c
@@ -326,7 +326,7 @@ void mcb_release_bus(struct mcb_bus *bus)
EXPORT_SYMBOL_NS_GPL(mcb_release_bus, MCB);

/**
- * mcb_bus_put() - Increment refcnt
+ * mcb_bus_get() - Increment refcnt
* @bus: The @mcb_bus
*
* Get a @mcb_bus' ref
--
2.20.1.7.g153144c



2023-05-23 02:59:14

by Randy Dunlap

[permalink] [raw]
Subject: Re: [PATCH] drivers: mcb: Modify mismatched function name



On 5/22/23 19:30, Jiapeng Chong wrote:
> No functional modification involved.
>
> drivers/mcb/mcb-core.c:335: warning: expecting prototype for mcb_bus_put(). Prototype was for mcb_bus_get() instead.
>
> Reported-by: Abaci Robot <[email protected]>
> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=5282
> Signed-off-by: Jiapeng Chong <[email protected]>

Acked-by: Randy Dunlap <[email protected]>

Thanks.

> ---
> drivers/mcb/mcb-core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mcb/mcb-core.c b/drivers/mcb/mcb-core.c
> index 978fdfc19a06..520160eaa7b1 100644
> --- a/drivers/mcb/mcb-core.c
> +++ b/drivers/mcb/mcb-core.c
> @@ -326,7 +326,7 @@ void mcb_release_bus(struct mcb_bus *bus)
> EXPORT_SYMBOL_NS_GPL(mcb_release_bus, MCB);
>
> /**
> - * mcb_bus_put() - Increment refcnt
> + * mcb_bus_get() - Increment refcnt
> * @bus: The @mcb_bus
> *
> * Get a @mcb_bus' ref

--
~Randy