Skip to contentSkip to conversation

linux-next: build failure after merge of the tip tree

DISCUSSION Stephen Rothwell 2 participants 5 messages Aug 26, 2024 – Sep 1, 2024 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the tip tree, today's linux-next build (x86_64 allmodconfig) failed like this:

In file included from include/linux/bitops.h:7,

                 from include/linux/kernel.h:23,
                 from include/linux/cpumask.h:11,
                 from arch/x86/include/asm/paravirt.h:21,
                 from arch/x86/include/asm/cpuid.h:62,
                 from arch/x86/include/asm/processor.h:19,
                 from arch/x86/include/asm/timex.h:5,
                 from include/linux/timex.h:67,
                 from include/linux/clocksource.h:13,
                 from include/linux/timekeeper_internal.h:10,
                 from kernel/time/timekeeping.c:6:

kernel/time/timekeeping.c: In function 'timekeeping_check_update':
include/linux/typecheck.h:12:25: error: comparison of distinct pointer types lacks a cast [-Werror]
12 | (void)(&__dummy == &__dummy2); \
| ^~
include/linux/jiffies.h:129:10: note: in expansion of macro 'typecheck'

  129 |          typecheck(unsigned long, b) && \
      |          ^~~~~~~~~
kernel/time/timekeeping.c:220:21: note: in expansion of macro 'time_after'
  220 |                 if (time_after(jiffies, tk->last_warning + WARNING_FREQ)) {
      |                     ^~~~~~~~~~

include/linux/typecheck.h:12:25: error: comparison of distinct pointer types lacks a cast [-Werror]
12 | (void)(&__dummy == &__dummy2); \
| ^~
include/linux/jiffies.h:129:10: note: in expansion of macro 'typecheck'

  129 |          typecheck(unsigned long, b) && \
      |          ^~~~~~~~~
kernel/time/timekeeping.c:230:21: note: in expansion of macro 'time_after'
  230 |                 if (time_after(jiffies, tk->last_warning + WARNING_FREQ)) {
      |                     ^~~~~~~~~~

cc1: all warnings being treated as errors

Caused by commit

42db2c2cb5ac ("timekeeping: Use time_after() in timekeeping_check_update()")

I have used the tip tree from next-20240823 for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 3 lines · Stephen Rothwell

kernel/time/timekeeping.c: In function 'timekeeping_check_update':
include/linux/typecheck.h:12:25: error: comparison of distinct pointer types lacks a cast [-Werror]
12 | (void)(&__dummy == &__dummy2); \

Offending commit has been removed.

#2 lore raw

Hi Thomas,

Quoted 7 lines · On Mon, 26 Aug 2024 10:04:49 +0200 Thomas Gleixner <[email protected]> wrote:
Quoted 3 lines · Stephen Rothwell

kernel/time/timekeeping.c: In function 'timekeeping_check_update':
include/linux/typecheck.h:12:25: error: comparison of distinct pointer types lacks a cast [-Werror]
12 | (void)(&__dummy == &__dummy2); \

Offending commit has been removed.

That commit is still in the tip tree this morning.

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw

Hi Stephen,

Quoted 5 lines · On Tue, 27 Aug 2024 08:09:25 +1000 Stephen Rothwell <[email protected]>…

Hi Thomas,

Quoted 1 line · On Mon, 26 Aug 2024 10:04:49 +0200 Thomas Gleixner <[email protected]> wrote:
Quoted 8 lines
Quoted 6 lines · Stephen Rothwell
Quoted 3 lines

kernel/time/timekeeping.c: In function 'timekeeping_check_update':
include/linux/typecheck.h:12:25: error: comparison of distinct pointer types lacks a cast [-Werror]
12 | (void)(&__dummy == &__dummy2); \

Offending commit has been removed.

That commit is still in the tip tree this morning.

I am still reverting that commit.

Signature · 2 lines
Cheers,
Stephen Rothwell
#4 lore raw
Quoted 8 lines · Stephen Rothwell
Quoted 7 lines · On Tue, 27 Aug 2024 08:09:25 +1000 Stephen Rothwell <[email protected]>…
Quoted 6 lines · On Mon, 26 Aug 2024 10:04:49 +0200 Thomas Gleixner <[email protected]> wrote:
Quoted 3 lines · Stephen Rothwell

kernel/time/timekeeping.c: In function 'timekeeping_check_update':
include/linux/typecheck.h:12:25: error: comparison of distinct pointer types lacks a cast [-Werror]
12 | (void)(&__dummy == &__dummy2); \

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Offending commit has been removed.

That commit is still in the tip tree this morning.

I am still reverting that commit.

Hrmpf. This was pulled in via some other branch again. I've reverted it in that branch and merged that into master

Thanks,

tglx