[PATCH] firmware: tegra: include IVC header file only once

Manish Bhardwaj posted 1 patch 3 years, 6 months ago
include/soc/tegra/ivc.h | 1 +
1 file changed, 1 insertion(+)
[PATCH] firmware: tegra: include IVC header file only once
Posted by Manish Bhardwaj 3 years, 6 months ago
Add the necessary definition to prevent compilation
errors from the ivc.h file being included multiple times.
This does not currently cause any compilation issues,
but fix this anyway.

Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com>
---
 include/soc/tegra/ivc.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/soc/tegra/ivc.h b/include/soc/tegra/ivc.h
index 4aeb77cc22c5..88ce0bf439ad 100644
--- a/include/soc/tegra/ivc.h
+++ b/include/soc/tegra/ivc.h
@@ -4,6 +4,7 @@
  */
 
 #ifndef __TEGRA_IVC_H
+#define __TEGRA_IVC_H
 
 #include <linux/device.h>
 #include <linux/dma-mapping.h>
-- 
2.37.3
Re: [PATCH] firmware: tegra: include IVC header file only once
Posted by Thierry Reding 3 years, 4 months ago
On Thu, Sep 22, 2022 at 03:56:27PM +0530, Manish Bhardwaj wrote:
> Add the necessary definition to prevent compilation
> errors from the ivc.h file being included multiple times.
> This does not currently cause any compilation issues,
> but fix this anyway.
> 
> Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com>
> ---
>  include/soc/tegra/ivc.h | 1 +
>  1 file changed, 1 insertion(+)

Applied, thanks.

Thierry