Skip to contentSkip to conversation

firmware: qcom: qseecom: add missing include guards

PATCH Applied Bartosz Golaszewski 3 participants 4 messages Oct 4, 2023 – Oct 16, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 firmware: qcom: qseecom: add missing include guards

From: Bartosz Golaszewski <[email protected]>

The qseecom header does not contain ifdef guards against multiple inclusion. Add them.

Fixes 00b1248606ba ("firmware: qcom_scm: Add support for Qualcomm Secure Execution Environment SCM interface")
---
 include/linux/firmware/qcom/qcom_qseecom.h | 6 ++++++
 1 file changed, 6 insertions(+)
include/linux/firmware/qcom/qcom_qseecom.h +6 -0
index b531547e1dc9..5c28298a98be 100644
@@ -5,6 +5,10 @@
  *
  * Copyright (C) 2023 Maximilian Luz <[email protected]>
  */
+
+#ifndef __QCOM_QSEECOM_H
+#define __QCOM_QSEECOM_H
+
 #include <linux/auxiliary_bus.h>
 #include <linux/types.h>
 
@@ -44,3 +48,5 @@ static inline int qcom_qseecom_app_send(struct qseecom_client *client, void *req
 {
 	return qcom_scm_qseecom_app_send(client->app_id, req, req_size, rsp, rsp_size);
 }
+
+#endif /* __QCOM_QSEECOM_H */
Signature · 1 line
2.39.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

The qseecom header does not contain ifdef guards against multiple inclusion. Add them.

Fixes 00b1248606ba ("firmware: qcom_scm: Add support for Qualcomm Secure Execution Environment SCM interface")

Oh, thanks for spotting and fixing that.

PS: I haven't forgotten about your SHM Bridge patches. Testing those is now next up on my kernel TODO list. Unfortunately, it might take a couple more days until I can get around to do it properly.

Quoted 25 lines
---
  include/linux/firmware/qcom/qcom_qseecom.h | 6 ++++++
  1 file changed, 6 insertions(+)
include/linux/firmware/qcom/qcom_qseecom.h +6 -0
index b531547e1dc9..5c28298a98be 100644
@@ -5,6 +5,10 @@
   *
   * Copyright (C) 2023 Maximilian Luz <[email protected]>
   */
+
+#ifndef __QCOM_QSEECOM_H
+#define __QCOM_QSEECOM_H
+
  #include <linux/auxiliary_bus.h>
  #include <linux/types.h>
 
@@ -44,3 +48,5 @@ static inline int qcom_qseecom_app_send(struct qseecom_client *client, void *req
  {
  	return qcom_scm_qseecom_app_send(client->app_id, req, req_size, rsp, rsp_size);
  }
+
+#endif /* __QCOM_QSEECOM_H */
#2 lore raw
Quoted 10 lines · Maximilian Luz
Quoted 7 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

The qseecom header does not contain ifdef guards against multiple inclusion. Add them.

Fixes 00b1248606ba ("firmware: qcom_scm: Add support for Qualcomm Secure Execution Environment SCM interface")
Quoted 7 lines

Oh, thanks for spotting and fixing that.

PS: I haven't forgotten about your SHM Bridge patches. Testing those is now next up on my kernel TODO list. Unfortunately, it might take a couple more days until I can get around to do it properly.

Thanks, you may as well wait for v3 as it'll be reworked significantly again due to some new information I got.

Bart

Quoted 26 lines
Quoted 26 lines
---
  include/linux/firmware/qcom/qcom_qseecom.h | 6 ++++++
  1 file changed, 6 insertions(+)
include/linux/firmware/qcom/qcom_qseecom.h +6 -0
index b531547e1dc9..5c28298a98be 100644
@@ -5,6 +5,10 @@
   *
   * Copyright (C) 2023 Maximilian Luz <[email protected]>
   */
+
+#ifndef __QCOM_QSEECOM_H
+#define __QCOM_QSEECOM_H
+
  #include <linux/auxiliary_bus.h>
  #include <linux/types.h>
 
@@ -44,3 +48,5 @@ static inline int qcom_qseecom_app_send(struct qseecom_client *client, void *req
  {
      return qcom_scm_qseecom_app_send(client->app_id, req, req_size, rsp, rsp_size);
  }
+
+#endif /* __QCOM_QSEECOM_H */
maintainer Applied
#3 lore raw
In reply to Bartosz Golaszewski
Quoted 4 lines · Bartosz Golaszewski

The qseecom header does not contain ifdef guards against multiple inclusion. Add them.

Applied, thanks!

[1/1] firmware: qcom: qseecom: add missing include guards

      commit: ada1682d60ac6017037305166d02eb0cd5ee50fa

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>