Skip to contentSkip to conversation

clk: exynos: Add header guard for clk-pll.h

PATCH In review Sam Protsenko 3 participants 3 messages Nov 7, 2023 – Nov 14, 2023

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

PATCH 1/1 clk: exynos: Add header guard for clk-pll.h

The clk-pll.h is going to be included in multiple files soon. Add missing header guard to prevent possible build errors in future.

Fixes 166097e87753 ("clk: exynos: add clock driver for Exynos7420 Soc")
---
 drivers/clk/exynos/clk-pll.h | 5 +++++
 1 file changed, 5 insertions(+)
drivers/clk/exynos/clk-pll.h +5 -0
index c79aac44258b..7b7af5e67612 100644
@@ -5,4 +5,9 @@
  * Thomas Abraham <[email protected]>
  */
 
+#ifndef __EXYNOS_CLK_PLL_H
+#define __EXYNOS_CLK_PLL_H
+
 unsigned long pll145x_get_rate(unsigned int *con1, unsigned long fin_freq);
+
+#endif /* __EXYNOS_CLK_PLL_H */
Signature · 1 line
2.39.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Sam Protsenko

The clk-pll.h is going to be included in multiple files soon. Add missing header guard to prevent possible build errors in future.

Fixes 166097e87753 ("clk: exynos: add clock driver for Exynos7420 Soc")
---
  drivers/clk/exynos/clk-pll.h | 5 +++++
  1 file changed, 5 insertions(+)
drivers/clk/exynos/clk-pll.h +0 -0
index c79aac44258b..7b7af5e67612 100644

drivers/clk/exynos/clk-pll.h line 13

Quoted 9 lines
drivers/clk/exynos/clk-pll.h +5 -0
@@ -5,4 +5,9 @@
   * Thomas Abraham <[email protected]>
   */
 
+#ifndef __EXYNOS_CLK_PLL_H
+#define __EXYNOS_CLK_PLL_H
+
  unsigned long pll145x_get_rate(unsigned int *con1, unsigned long fin_freq);
+
+#endif /* __EXYNOS_CLK_PLL_H */
#2 lore raw

Hi,

2023년 11월 9일 (목) 04:54, Sean Anderson <[email protected]>님이 작성:

Quoted 23 lines · Sam Protsenko
Quoted 14 lines

The clk-pll.h is going to be included in multiple files soon. Add missing header guard to prevent possible build errors in future.

Fixes 166097e87753 ("clk: exynos: add clock driver for Exynos7420 Soc")
---
  drivers/clk/exynos/clk-pll.h | 5 +++++
  1 file changed, 5 insertions(+)
drivers/clk/exynos/clk-pll.h +0 -0
index c79aac44258b..7b7af5e67612 100644

drivers/clk/exynos/clk-pll.h line 11

Quoted 7 lines
drivers/clk/exynos/clk-pll.h +3 -0
@@ -5,4 +5,9 @@
   * Thomas Abraham <[email protected]>
   */
 
+#ifndef __EXYNOS_CLK_PLL_H
+#define __EXYNOS_CLK_PLL_H
+
  unsigned long pll145x_get_rate(unsigned int *con1, unsigned long

fin_freq);

Quoted 4 lines

drivers/clk/exynos/clk-pll.h line 13

Quoted 2 lines
drivers/clk/exynos/clk-pll.h +2 -0
+
+#endif /* __EXYNOS_CLK_PLL_H */

applied to u-boot-samsung.

Thanks.
Minkyu Kang.