Skip to contentSkip to conversation

Build error in 4.14 stable-queue

DISCUSSION Eric Biggers 4 participants 5 messages Mar 20, 2019 – Mar 21, 2019 Stable branch

lore
Share & tools
lore
#0 lore raw

queue-4.14/clocksource-drivers-arch_timer-workaround-for-allwinner-a64-timer-instability.patch causes a build error:

CC drivers/clocksource/arm_arch_timer.o
drivers/clocksource/arm_arch_timer.c:433:4: error: 'const struct arch_timer_erratum_workaround' has no member named 'read_cntpct_el0'; did you mean 'read_cntvct_el0'?
.read_cntpct_el0 = sun50i_a64_read_cntpct_el0,

    ^~~~~~~~~~~~~~~
    read_cntvct_el0

make[1]: *** [scripts/Makefile.build:327: drivers/clocksource/arm_arch_timer.o] Error 1
make: *** [Makefile:1686: drivers/clocksource/arm_arch_timer.o] Error 2

#1 lore raw
Quoted 10 lines · Eric Biggers

queue-4.14/clocksource-drivers-arch_timer-workaround-for-allwinner-a64-timer-instability.patch causes a build error:

CC drivers/clocksource/arm_arch_timer.o
drivers/clocksource/arm_arch_timer.c:433:4: error: 'const struct arch_timer_erratum_workaround' has no member named 'read_cntpct_el0'; did you mean 'read_cntvct_el0'?
.read_cntpct_el0 = sun50i_a64_read_cntpct_el0,

    ^~~~~~~~~~~~~~~
    read_cntvct_el0

make[1]: *** [scripts/Makefile.build:327: drivers/clocksource/arm_arch_timer.o] Error 1
make: *** [Makefile:1686: drivers/clocksource/arm_arch_timer.o] Error 2

4.14 looks to be before the kernel switched to using CNTPCT internally, so that hook doesn't exist. The line should be removed. (sun50i_a64_read_cntpct_el0 still needs to be there for the .read_cntp_tval_el0 implementation.)

Apologies for the breakage,
Samuel

maintainer
#2 lore raw
Quoted 12 lines · Samuel Holland
Quoted 10 lines · Eric Biggers

queue-4.14/clocksource-drivers-arch_timer-workaround-for-allwinner-a64-timer-instability.patch causes a build error:

CC drivers/clocksource/arm_arch_timer.o
drivers/clocksource/arm_arch_timer.c:433:4: error: 'const struct arch_timer_erratum_workaround' has no member named 'read_cntpct_el0'; did you mean 'read_cntvct_el0'?
.read_cntpct_el0 = sun50i_a64_read_cntpct_el0,

    ^~~~~~~~~~~~~~~
    read_cntvct_el0

make[1]: *** [scripts/Makefile.build:327: drivers/clocksource/arm_arch_timer.o] Error 1
make: *** [Makefile:1686: drivers/clocksource/arm_arch_timer.o] Error 2

Quoted 6 lines

4.14 looks to be before the kernel switched to using CNTPCT internally, so that hook doesn't exist. The line should be removed. (sun50i_a64_read_cntpct_el0 still needs to be there for the .read_cntp_tval_el0 implementation.)

Apologies for the breakage,
Samuel

I've dropped it from 4.14, thanks all!

--
Thanks,
Sasha

#3 lore raw
Quoted 13 lines · Sasha Levin
Quoted 12 lines · Samuel Holland
Quoted 10 lines · Eric Biggers

queue-4.14/clocksource-drivers-arch_timer-workaround-for-allwinner-a64-timer-instability.patch causes a build error:

CC drivers/clocksource/arm_arch_timer.o
drivers/clocksource/arm_arch_timer.c:433:4: error: 'const struct arch_timer_erratum_workaround' has no member named 'read_cntpct_el0'; did you mean 'read_cntvct_el0'?
.read_cntpct_el0 = sun50i_a64_read_cntpct_el0,

    ^~~~~~~~~~~~~~~
    read_cntvct_el0

make[1]: *** [scripts/Makefile.build:327: drivers/clocksource/arm_arch_timer.o] Error 1
make: *** [Makefile:1686: drivers/clocksource/arm_arch_timer.o] Error 2

Quoted 8 lines
Quoted 6 lines

4.14 looks to be before the kernel switched to using CNTPCT internally, so that hook doesn't exist. The line should be removed. (sun50i_a64_read_cntpct_el0 still needs to be there for the .read_cntp_tval_el0 implementation.)

Apologies for the breakage,
Samuel

I've dropped it from 4.14, thanks all!

I don't see it dropped in the public tree, so I've dropped it for real now :)

thanks,

greg k-h

maintainer
#4 lore raw
Quoted 18 lines · Greg Kroah-Hartman
Quoted 17 lines · Sasha Levin
Quoted 16 lines · Samuel Holland
Quoted 10 lines · Eric Biggers

queue-4.14/clocksource-drivers-arch_timer-workaround-for-allwinner-a64-timer-instability.patch causes a build error:

CC drivers/clocksource/arm_arch_timer.o
drivers/clocksource/arm_arch_timer.c:433:4: error: 'const struct arch_timer_erratum_workaround' has no member named 'read_cntpct_el0'; did you mean 'read_cntvct_el0'?
.read_cntpct_el0 = sun50i_a64_read_cntpct_el0,

    ^~~~~~~~~~~~~~~
    read_cntvct_el0

make[1]: *** [scripts/Makefile.build:327: drivers/clocksource/arm_arch_timer.o] Error 1
make: *** [Makefile:1686: drivers/clocksource/arm_arch_timer.o] Error 2

4.14 looks to be before the kernel switched to using CNTPCT internally, so that hook doesn't exist. The line should be removed. (sun50i_a64_read_cntpct_el0 still needs to be there for the .read_cntp_tval_el0 implementation.)

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Apologies for the breakage,
Samuel

I've dropped it from 4.14, thanks all!

I don't see it dropped in the public tree, so I've dropped it for real now :)

You were not supposed to be awake that early! :p

--
Thanks,
Sasha