2021-04-27 03:32:12

by Jiabing Wan

[permalink] [raw]
Subject: [PATCH] firmware: arm_scmi: Remove repeated struct declaration

struct scmi_protocol_handle is declared at 34th line.
The declaration here is duplicate. Remove it.

Signed-off-by: Wan Jiabing <[email protected]>
---
drivers/firmware/arm_scmi/notify.h | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/firmware/arm_scmi/notify.h b/drivers/firmware/arm_scmi/notify.h
index ce0324be6c71..4e9b627edfef 100644
--- a/drivers/firmware/arm_scmi/notify.h
+++ b/drivers/firmware/arm_scmi/notify.h
@@ -79,8 +79,6 @@ struct scmi_protocol_events {

int scmi_notification_init(struct scmi_handle *handle);
void scmi_notification_exit(struct scmi_handle *handle);
-
-struct scmi_protocol_handle;
int scmi_register_protocol_events(const struct scmi_handle *handle, u8 proto_id,
const struct scmi_protocol_handle *ph,
const struct scmi_protocol_events *ee);
--
2.25.1


2021-04-27 06:37:43

by Cristian Marussi

[permalink] [raw]
Subject: Re: [PATCH] firmware: arm_scmi: Remove repeated struct declaration

Hi,

On Tue, Apr 27, 2021 at 11:30:31AM +0800, Wan Jiabing wrote:
> struct scmi_protocol_handle is declared at 34th line.
> The declaration here is duplicate. Remove it.
>

You're right.

Reviewed-by: Cristian Marussi <[email protected]>

Thanks,
Cristian

> Signed-off-by: Wan Jiabing <[email protected]>
> ---
> drivers/firmware/arm_scmi/notify.h | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/firmware/arm_scmi/notify.h b/drivers/firmware/arm_scmi/notify.h
> index ce0324be6c71..4e9b627edfef 100644
> --- a/drivers/firmware/arm_scmi/notify.h
> +++ b/drivers/firmware/arm_scmi/notify.h
> @@ -79,8 +79,6 @@ struct scmi_protocol_events {
>
> int scmi_notification_init(struct scmi_handle *handle);
> void scmi_notification_exit(struct scmi_handle *handle);
> -
> -struct scmi_protocol_handle;
> int scmi_register_protocol_events(const struct scmi_handle *handle, u8 proto_id,
> const struct scmi_protocol_handle *ph,
> const struct scmi_protocol_events *ee);
> --
> 2.25.1
>

2021-04-28 10:47:54

by Sudeep Holla

[permalink] [raw]
Subject: Re: [PATCH] firmware: arm_scmi: Remove repeated struct declaration

On Tue, 27 Apr 2021 11:30:31 +0800, Wan Jiabing wrote:
> struct scmi_protocol_handle is declared at 34th line.
> The declaration here is duplicate. Remove it.

Applied to sudeep.holla/linux (for-next/scmi), thanks!

[1/1] firmware: arm_scmi: Remove repeated struct declaration
https://git.kernel.org/sudeep.holla/c/03f840c492

--
Regards,
Sudeep