public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] firmware: qcom: qseecom: add missing include guards
@ 2023-10-04 18:57 Bartosz Golaszewski
  2023-10-04 19:10 ` Maximilian Luz
  2023-10-16 18:25 ` Bjorn Andersson
  0 siblings, 2 replies; 4+ messages in thread
From: Bartosz Golaszewski @ 2023-10-04 18:57 UTC (permalink / raw)
  To: Bjorn Andersson, Maximilian Luz
  Cc: linux-kernel, linux-arm-msm, Bartosz Golaszewski

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

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")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
 include/linux/firmware/qcom/qcom_qseecom.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/linux/firmware/qcom/qcom_qseecom.h b/include/linux/firmware/qcom/qcom_qseecom.h
index b531547e1dc9..5c28298a98be 100644
--- a/include/linux/firmware/qcom/qcom_qseecom.h
+++ b/include/linux/firmware/qcom/qcom_qseecom.h
@@ -5,6 +5,10 @@
  *
  * Copyright (C) 2023 Maximilian Luz <luzmaximilian@gmail.com>
  */
+
+#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.39.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] firmware: qcom: qseecom: add missing include guards
  2023-10-04 18:57 [PATCH] firmware: qcom: qseecom: add missing include guards Bartosz Golaszewski
@ 2023-10-04 19:10 ` Maximilian Luz
  2023-10-05  6:44   ` Bartosz Golaszewski
  2023-10-16 18:25 ` Bjorn Andersson
  1 sibling, 1 reply; 4+ messages in thread
From: Maximilian Luz @ 2023-10-04 19:10 UTC (permalink / raw)
  To: Bartosz Golaszewski, Bjorn Andersson
  Cc: linux-kernel, linux-arm-msm, Bartosz Golaszewski

On 10/4/23 20:57, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> 
> 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")
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

Oh, thanks for spotting and fixing that.

Reviewed-by: Maximilian Luz <luzmaximilian@gmail.com>

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.

> ---
>   include/linux/firmware/qcom/qcom_qseecom.h | 6 ++++++
>   1 file changed, 6 insertions(+)
> 
> diff --git a/include/linux/firmware/qcom/qcom_qseecom.h b/include/linux/firmware/qcom/qcom_qseecom.h
> index b531547e1dc9..5c28298a98be 100644
> --- a/include/linux/firmware/qcom/qcom_qseecom.h
> +++ b/include/linux/firmware/qcom/qcom_qseecom.h
> @@ -5,6 +5,10 @@
>    *
>    * Copyright (C) 2023 Maximilian Luz <luzmaximilian@gmail.com>
>    */
> +
> +#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 */

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] firmware: qcom: qseecom: add missing include guards
  2023-10-04 19:10 ` Maximilian Luz
@ 2023-10-05  6:44   ` Bartosz Golaszewski
  0 siblings, 0 replies; 4+ messages in thread
From: Bartosz Golaszewski @ 2023-10-05  6:44 UTC (permalink / raw)
  To: Maximilian Luz
  Cc: Bjorn Andersson, linux-kernel, linux-arm-msm, Bartosz Golaszewski

On Wed, Oct 4, 2023 at 9:10 PM Maximilian Luz <luzmaximilian@gmail.com> wrote:
>
> On 10/4/23 20:57, Bartosz Golaszewski wrote:
> > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> >
> > 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")
> > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
> Oh, thanks for spotting and fixing that.
>
> Reviewed-by: Maximilian Luz <luzmaximilian@gmail.com>
>
> 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

>
> > ---
> >   include/linux/firmware/qcom/qcom_qseecom.h | 6 ++++++
> >   1 file changed, 6 insertions(+)
> >
> > diff --git a/include/linux/firmware/qcom/qcom_qseecom.h b/include/linux/firmware/qcom/qcom_qseecom.h
> > index b531547e1dc9..5c28298a98be 100644
> > --- a/include/linux/firmware/qcom/qcom_qseecom.h
> > +++ b/include/linux/firmware/qcom/qcom_qseecom.h
> > @@ -5,6 +5,10 @@
> >    *
> >    * Copyright (C) 2023 Maximilian Luz <luzmaximilian@gmail.com>
> >    */
> > +
> > +#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 */

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] firmware: qcom: qseecom: add missing include guards
  2023-10-04 18:57 [PATCH] firmware: qcom: qseecom: add missing include guards Bartosz Golaszewski
  2023-10-04 19:10 ` Maximilian Luz
@ 2023-10-16 18:25 ` Bjorn Andersson
  1 sibling, 0 replies; 4+ messages in thread
From: Bjorn Andersson @ 2023-10-16 18:25 UTC (permalink / raw)
  To: Maximilian Luz, Bartosz Golaszewski
  Cc: linux-kernel, linux-arm-msm, Bartosz Golaszewski


On Wed, 04 Oct 2023 20:57:32 +0200, Bartosz Golaszewski wrote:
> 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,
-- 
Bjorn Andersson <andersson@kernel.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-10-16 18:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-04 18:57 [PATCH] firmware: qcom: qseecom: add missing include guards Bartosz Golaszewski
2023-10-04 19:10 ` Maximilian Luz
2023-10-05  6:44   ` Bartosz Golaszewski
2023-10-16 18:25 ` Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox