Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1606594 > unrolled thread

[PATCH] vmlinux.lds: add __clkevt_of_table to kernel

Started byAlexander Kochetkov <al.kochet@gmail.com>
First post2017-03-22 15:40 +0100
Last post2017-03-24 10:00 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] vmlinux.lds: add __clkevt_of_table to kernel Alexander Kochetkov <al.kochet@gmail.com> - 2017-03-22 15:40 +0100
    Re: [PATCH] vmlinux.lds: add __clkevt_of_table to kernel Daniel Lezcano <daniel.lezcano@linaro.org> - 2017-03-24 10:00 +0100

#1606594 — [PATCH] vmlinux.lds: add __clkevt_of_table to kernel

FromAlexander Kochetkov <al.kochet@gmail.com>
Date2017-03-22 15:40 +0100
Subject[PATCH] vmlinux.lds: add __clkevt_of_table to kernel
Message-ID<tnPAC-3OD-19@gated-at.bofh.it>
The code introduced by commit 0c8893c9095d ("clockevents: Add a
clkevt-of mechanism like clksrc-of") refer to __clkevt_of_table
what doesn't exist in the vmlinux. As a result kernel build
failed with error: "clkevt-probe.c:63: undefined reference to
`__clkevt_of_table’"

Fixes: 0c8893c9095d ("clockevents: Add a clkevt-of mechanism like clksrc-of")
Signed-off-by: Alexander Kochetkov <al.kochet@gmail.com>
---
 include/asm-generic/vmlinux.lds.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h
index 2456397..42afee3 100644
--- a/include/asm-generic/vmlinux.lds.h
+++ b/include/asm-generic/vmlinux.lds.h
@@ -173,6 +173,7 @@
 	*(__##name##_of_table_end)
 
 #define CLKSRC_OF_TABLES()	OF_TABLE(CONFIG_CLKSRC_OF, clksrc)
+#define CLKEVT_OF_TABLES()	OF_TABLE(CONFIG_CLKEVT_OF, clkevt)
 #define IRQCHIP_OF_MATCH_TABLE() OF_TABLE(CONFIG_IRQCHIP, irqchip)
 #define CLK_OF_TABLES()		OF_TABLE(CONFIG_COMMON_CLK, clk)
 #define IOMMU_OF_TABLES()	OF_TABLE(CONFIG_OF_IOMMU, iommu)
@@ -539,6 +540,7 @@
 	CLK_OF_TABLES()							\
 	RESERVEDMEM_OF_TABLES()						\
 	CLKSRC_OF_TABLES()						\
+	CLKEVT_OF_TABLES()						\
 	IOMMU_OF_TABLES()						\
 	CPU_METHOD_OF_TABLES()						\
 	CPUIDLE_METHOD_OF_TABLES()					\
-- 
1.7.9.5

[toc] | [next] | [standalone]


#1608241

FromDaniel Lezcano <daniel.lezcano@linaro.org>
Date2017-03-24 10:00 +0100
Message-ID<toteH-7pT-39@gated-at.bofh.it>
In reply to#1606594
On 22/03/2017 15:29, Alexander Kochetkov wrote:
> The code introduced by commit 0c8893c9095d ("clockevents: Add a
> clkevt-of mechanism like clksrc-of") refer to __clkevt_of_table
> what doesn't exist in the vmlinux. As a result kernel build
> failed with error: "clkevt-probe.c:63: undefined reference to
> `__clkevt_of_table’"
> 
> Fixes: 0c8893c9095d ("clockevents: Add a clkevt-of mechanism like clksrc-of")
> Signed-off-by: Alexander Kochetkov <al.kochet@gmail.com>
> ---

Arnd,

I would like to take this patch through my tree.

Is it ok for you ?

Thanks.

  -- Daniel



-- 
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web