Skip to contentSkip to conversation

firmware: arm_scmi: Remove repeated struct declaration

PATCH Applied Wan Jiabing 3 participants 3 messages Apr 27, 2021 – Apr 28, 2021 System control & power/management interface (SCPI/SCMI) Message Protocol drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 firmware: arm_scmi: Remove repeated struct declaration

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

---
 drivers/firmware/arm_scmi/notify.h | 2 --
 1 file changed, 2 deletions(-)
drivers/firmware/arm_scmi/notify.h +0 -2
index ce0324be6c71..4e9b627edfef 100644
@@ -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);
Signature · 1 line
2.25.1
reviewer Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 3 lines · Wan Jiabing

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

You're right.

Thanks,
Cristian

Quoted 21 lines
---
 drivers/firmware/arm_scmi/notify.h | 2 --
 1 file changed, 2 deletions(-)
drivers/firmware/arm_scmi/notify.h +0 -2
index ce0324be6c71..4e9b627edfef 100644
@@ -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);
Signature · 1 line
2.25.1