All of lore.kernel.org
 help / color / mirror / Atom feed
* [GIT PULL] clockevents 4.11 fixes
@ 2017-03-28 15:12 Daniel Lezcano
  2017-03-28 15:13 ` [PATCH 1/2] clockevents: Fix syntax error in clkevt-of macro Daniel Lezcano
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Lezcano @ 2017-03-28 15:12 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar; +Cc: Alexander Kochetkov, linux-kernel

Hi Thomas, Ingo,

This pull request provides a couple of fixes from Alexander Kochetkov regarding
the clkevt-of probe interface where a typo and a missing declaration.

 - Fix compilation error with the clkevt-probe interface (Alexander Kochetkov).

Thanks!

  -- Daniel



The following changes since commit 33d8c15559df4f0bce25d7e16ebb5879e249f2e7:

  Revert "clocksource/drivers/tcb_clksrc: Use 32 bit tcb as sched_clock" (2017-03-11 22:03:34 +0100)

are available in the git repository at:

  https://git.linaro.org/people/daniel.lezcano/linux.git clockevents/4.11-fixes

for you to fetch changes up to 8d09617b076fd03ee9ae124abce94dda17bf3723:

  vmlinux.lds: Add __clkevt_of_table to kernel (2017-03-28 09:40:39 +0200)

----------------------------------------------------------------
Alexander Kochetkov (2):
      clockevents: Fix syntax error in clkevt-of macro
      vmlinux.lds: Add __clkevt_of_table to kernel

 drivers/clocksource/clkevt-probe.c | 2 +-
 include/asm-generic/vmlinux.lds.h  | 2 ++
 include/linux/clockchips.h         | 2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)

-- 

 <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

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

* [PATCH 1/2] clockevents: Fix syntax error in clkevt-of macro
  2017-03-28 15:12 [GIT PULL] clockevents 4.11 fixes Daniel Lezcano
@ 2017-03-28 15:13 ` Daniel Lezcano
  2017-03-28 15:14     ` Daniel Lezcano
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Lezcano @ 2017-03-28 15:13 UTC (permalink / raw)
  To: tglx, mingo; +Cc: al.kochet, linux-kernel

From: Alexander Kochetkov <al.kochet@gmail.com>

The patch fix syntax errors introduced by commit 0c8893c9095d
("clockevents: Add a clkevt-of mechanism like clksrc-of").

Fixes: 0c8893c9095d ("clockevents: Add a clkevt-of mechanism like clksrc-of")
Signed-off-by: Alexander Kochetkov <al.kochet@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
 drivers/clocksource/clkevt-probe.c | 2 +-
 include/linux/clockchips.h         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/clocksource/clkevt-probe.c b/drivers/clocksource/clkevt-probe.c
index 8c30fec..eb89b50 100644
--- a/drivers/clocksource/clkevt-probe.c
+++ b/drivers/clocksource/clkevt-probe.c
@@ -17,7 +17,7 @@
 
 #include <linux/init.h>
 #include <linux/of.h>
-#include <linux/clockchip.h>
+#include <linux/clockchips.h>
 
 extern struct of_device_id __clkevt_of_table[];
 
diff --git a/include/linux/clockchips.h b/include/linux/clockchips.h
index 5d3053c..6d7edc3 100644
--- a/include/linux/clockchips.h
+++ b/include/linux/clockchips.h
@@ -229,7 +229,7 @@ static inline void tick_setup_hrtimer_broadcast(void) { }
 
 #ifdef CONFIG_CLKEVT_PROBE
 extern int clockevent_probe(void);
-#els
+#else
 static inline int clockevent_probe(void) { return 0; }
 #endif
 
-- 
2.7.4

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

* [PATCH 2/2] vmlinux.lds: Add __clkevt_of_table to kernel
  2017-03-28 15:13 ` [PATCH 1/2] clockevents: Fix syntax error in clkevt-of macro Daniel Lezcano
@ 2017-03-28 15:14     ` Daniel Lezcano
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Lezcano @ 2017-03-28 15:14 UTC (permalink / raw)
  To: tglx, mingo
  Cc: al.kochet, linux-kernel, Arnd Bergmann,
	open list:GENERIC INCLUDE/ASM HEADER FILES

From: Alexander Kochetkov <al.kochet@gmail.com>

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>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
 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 0968d13..8c6b525 100644
--- a/include/asm-generic/vmlinux.lds.h
+++ b/include/asm-generic/vmlinux.lds.h
@@ -173,6 +173,7 @@
 	KEEP(*(__##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)
@@ -559,6 +560,7 @@
 	CLK_OF_TABLES()							\
 	RESERVEDMEM_OF_TABLES()						\
 	CLKSRC_OF_TABLES()						\
+	CLKEVT_OF_TABLES()						\
 	IOMMU_OF_TABLES()						\
 	CPU_METHOD_OF_TABLES()						\
 	CPUIDLE_METHOD_OF_TABLES()					\
-- 
2.7.4

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

* [PATCH 2/2] vmlinux.lds: Add __clkevt_of_table to kernel
@ 2017-03-28 15:14     ` Daniel Lezcano
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Lezcano @ 2017-03-28 15:14 UTC (permalink / raw)
  To: tglx, mingo
  Cc: al.kochet, linux-kernel, Arnd Bergmann,
	open list:GENERIC INCLUDE/ASM HEADER FILES

From: Alexander Kochetkov <al.kochet@gmail.com>

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>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
 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 0968d13..8c6b525 100644
--- a/include/asm-generic/vmlinux.lds.h
+++ b/include/asm-generic/vmlinux.lds.h
@@ -173,6 +173,7 @@
 	KEEP(*(__##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)
@@ -559,6 +560,7 @@
 	CLK_OF_TABLES()							\
 	RESERVEDMEM_OF_TABLES()						\
 	CLKSRC_OF_TABLES()						\
+	CLKEVT_OF_TABLES()						\
 	IOMMU_OF_TABLES()						\
 	CPU_METHOD_OF_TABLES()						\
 	CPUIDLE_METHOD_OF_TABLES()					\
-- 
2.7.4

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

end of thread, other threads:[~2017-03-28 15:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-28 15:12 [GIT PULL] clockevents 4.11 fixes Daniel Lezcano
2017-03-28 15:13 ` [PATCH 1/2] clockevents: Fix syntax error in clkevt-of macro Daniel Lezcano
2017-03-28 15:14   ` [PATCH 2/2] vmlinux.lds: Add __clkevt_of_table to kernel Daniel Lezcano
2017-03-28 15:14     ` Daniel Lezcano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.