Message ID | 20231107212200.1457-1-semen.protsenko@linaro.org |
---|---|
State | Accepted |
Commit | f655090901dce2a3890efb07c3f341d5b8bc2ae9 |
Headers | show |
Series | clk: exynos: Add header guard for clk-pll.h | expand |
On 11/7/23 16:22, Sam Protsenko wrote: > The clk-pll.h is going to be included in multiple files soon. Add > missing header guard to prevent possible build errors in future. > > Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> > Fixes: 166097e87753 ("clk: exynos: add clock driver for Exynos7420 Soc") > --- > drivers/clk/exynos/clk-pll.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/clk/exynos/clk-pll.h b/drivers/clk/exynos/clk-pll.h > index c79aac44258b..7b7af5e67612 100644 > --- a/drivers/clk/exynos/clk-pll.h > +++ b/drivers/clk/exynos/clk-pll.h > @@ -5,4 +5,9 @@ > * Thomas Abraham <thomas.ab@samsung.com> > */ > > +#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 */ Reviewed-by: Sean Anderson <seanga2@gmail.com>
Hi, 2023년 11월 9일 (목) 04:54, Sean Anderson <seanga2@gmail.com>님이 작성: > On 11/7/23 16:22, Sam Protsenko wrote: > > The clk-pll.h is going to be included in multiple files soon. Add > > missing header guard to prevent possible build errors in future. > > > > Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> > > Fixes: 166097e87753 ("clk: exynos: add clock driver for Exynos7420 Soc") > > --- > > drivers/clk/exynos/clk-pll.h | 5 +++++ > > 1 file changed, 5 insertions(+) > > > > diff --git a/drivers/clk/exynos/clk-pll.h b/drivers/clk/exynos/clk-pll.h > > index c79aac44258b..7b7af5e67612 100644 > > --- a/drivers/clk/exynos/clk-pll.h > > +++ b/drivers/clk/exynos/clk-pll.h > > @@ -5,4 +5,9 @@ > > * Thomas Abraham <thomas.ab@samsung.com> > > */ > > > > +#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 */ > > Reviewed-by: Sean Anderson <seanga2@gmail.com> applied to u-boot-samsung. Thanks. Minkyu Kang.
diff --git a/drivers/clk/exynos/clk-pll.h b/drivers/clk/exynos/clk-pll.h index c79aac44258b..7b7af5e67612 100644 --- a/drivers/clk/exynos/clk-pll.h +++ b/drivers/clk/exynos/clk-pll.h @@ -5,4 +5,9 @@ * Thomas Abraham <thomas.ab@samsung.com> */ +#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 */
The clk-pll.h is going to be included in multiple files soon. Add missing header guard to prevent possible build errors in future. Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> Fixes: 166097e87753 ("clk: exynos: add clock driver for Exynos7420 Soc") --- drivers/clk/exynos/clk-pll.h | 5 +++++ 1 file changed, 5 insertions(+)