linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RT][3.10.81-rt88] Build error in 'setup_clkevents' with 3.10.81-rt88 and vanilla kernel 3.10.81
@ 2015-06-25 11:36 Sreejith N
  2015-06-25 11:56 ` Mike Galbraith
  0 siblings, 1 reply; 2+ messages in thread
From: Sreejith N @ 2015-06-25 11:36 UTC (permalink / raw)
  To: linux-kernel

Getting build error with 3.10.81-rt88 and vanilla kernel 3.10.81 in below line,
./drivers/clocksource/tcb_clksrc.c:195: timer_clock = clk32k_divisor_idx;

Below kernel config enabled:
CONFIG_ATMEL_TCLIB=y
CONFIG_ATMEL_TCB_CLKSRC=y
CONFIG_ATMEL_TCB_CLKSRC_BLOCK=0
CONFIG_GENERIC_CLOCKEVENTS=y

Compiler: arm-none-linux-gnueabi-gcc (Sourcery CodeBench Lite
2014.05-29) 4.8.3 20140320 (prerelease)

Kernel booting is not successful.
[    0.109375] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.109375] ehci-atmel: EHCI Atmel driver
[    0.109375] atmel-ehci 700000.ehci: EHCI Host Controller
[    0.109375] atmel-ehci 700000.ehci: new USB bus registered,
assigned bus number 1
[    0.109375] atmel-ehci 700000.ehci: irq 26, io mem 0x00700000


Thanks,
Sreejith

Below patch fixed the compiler error:
diff -uNr linux-3.10.81-rt-orig/drivers/clocksource/tcb_clksrc.c
linux-3.10.81-rt-mine/drivers/clocksource/tcb_clksrc.c
--- linux-3.10.81-rt-orig/drivers/clocksource/tcb_clksrc.c 2015-06-25
12:01:00.274877048 +0530
+++ linux-3.10.81-rt-mine/drivers/clocksource/tcb_clksrc.c 2015-06-25
11:58:10.190868730 +0530
@@ -192,7 +192,7 @@
  clkevt.clk = t2_clk;
  tc_irqaction.dev_id = &clkevt;

- timer_clock = clk32k_divisor_idx;
+ timer_clock = divisor_idx;

  clkevt.clkevt.cpumask = cpumask_of(0);

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

* Re: [RT][3.10.81-rt88] Build error in 'setup_clkevents' with 3.10.81-rt88 and vanilla kernel 3.10.81
  2015-06-25 11:36 [RT][3.10.81-rt88] Build error in 'setup_clkevents' with 3.10.81-rt88 and vanilla kernel 3.10.81 Sreejith N
@ 2015-06-25 11:56 ` Mike Galbraith
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Galbraith @ 2015-06-25 11:56 UTC (permalink / raw)
  To: Sreejith N; +Cc: linux-kernel, Steven Rostedt

(cc)

On Thu, 2015-06-25 at 17:06 +0530, Sreejith N wrote:
> Getting build error with 3.10.81-rt88 and vanilla kernel 3.10.81 in below line,
> ./drivers/clocksource/tcb_clksrc.c:195: timer_clock = clk32k_divisor_idx;
> 
> Below kernel config enabled:
> CONFIG_ATMEL_TCLIB=y
> CONFIG_ATMEL_TCB_CLKSRC=y
> CONFIG_ATMEL_TCB_CLKSRC_BLOCK=0
> CONFIG_GENERIC_CLOCKEVENTS=y
> 
> Compiler: arm-none-linux-gnueabi-gcc (Sourcery CodeBench Lite
> 2014.05-29) 4.8.3 20140320 (prerelease)
> 
> Kernel booting is not successful.
> [    0.109375] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
> [    0.109375] ehci-atmel: EHCI Atmel driver
> [    0.109375] atmel-ehci 700000.ehci: EHCI Host Controller
> [    0.109375] atmel-ehci 700000.ehci: new USB bus registered,
> assigned bus number 1
> [    0.109375] atmel-ehci 700000.ehci: irq 26, io mem 0x00700000
> 
> 
> Thanks,
> Sreejith
> 
> Below patch fixed the compiler error:
> diff -uNr linux-3.10.81-rt-orig/drivers/clocksource/tcb_clksrc.c
> linux-3.10.81-rt-mine/drivers/clocksource/tcb_clksrc.c
> --- linux-3.10.81-rt-orig/drivers/clocksource/tcb_clksrc.c 2015-06-25
> 12:01:00.274877048 +0530
> +++ linux-3.10.81-rt-mine/drivers/clocksource/tcb_clksrc.c 2015-06-25
> 11:58:10.190868730 +0530
> @@ -192,7 +192,7 @@
>   clkevt.clk = t2_clk;
>   tc_irqaction.dev_id = &clkevt;
> 
> - timer_clock = clk32k_divisor_idx;
> + timer_clock = divisor_idx;
> 
>   clkevt.clkevt.cpumask = cpumask_of(0);
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/



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

end of thread, other threads:[~2015-06-25 11:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-25 11:36 [RT][3.10.81-rt88] Build error in 'setup_clkevents' with 3.10.81-rt88 and vanilla kernel 3.10.81 Sreejith N
2015-06-25 11:56 ` Mike Galbraith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).