Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 2 messages Apr 9, 2024 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

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

In file included from <command-line>:
lib/vdso/gettimeofday.c: In function 'vdso_calc_ns':
lib/vdso/gettimeofday.c:11:33: error: 'U64_MAX' undeclared (first use in this function); did you mean 'U64_C'?

   11 | # define VDSO_DELTA_MASK(vd)    U64_MAX
      |                                 ^~~~~~~

lib/vdso/gettimeofday.c:41:49: note: in expansion of macro 'VDSO_DELTA_MASK'
41 | u64 delta = (cycles - vd->cycle_last) & VDSO_DELTA_MASK(vd);
| ^~~~~~~~~~~~~~~
lib/vdso/gettimeofday.c:11:33: note: each undeclared identifier is reported only once for each function it appears in

   11 | # define VDSO_DELTA_MASK(vd)    U64_MAX
      |                                 ^~~~~~~

lib/vdso/gettimeofday.c:41:49: note: in expansion of macro 'VDSO_DELTA_MASK'
41 | u64 delta = (cycles - vd->cycle_last) & VDSO_DELTA_MASK(vd);
| ^~~~~~~~~~~~~~~

Caused by commit

c8e3a8b6f2e6 ("vdso: Consolidate vdso_calc_delta()")

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

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

Hi all,

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

In file included from <command-line>:
lib/vdso/gettimeofday.c: In function 'vdso_calc_ns':
lib/vdso/gettimeofday.c:11:33: error: 'U64_MAX' undeclared (first use in this function); did you mean 'U64_C'?

   11 | # define VDSO_DELTA_MASK(vd)    U64_MAX
      |                                 ^~~~~~~

lib/vdso/gettimeofday.c:41:49: note: in expansion of macro 'VDSO_DELTA_MASK'
41 | u64 delta = (cycles - vd->cycle_last) & VDSO_DELTA_MASK(vd);
| ^~~~~~~~~~~~~~~
lib/vdso/gettimeofday.c:11:33: note: each undeclared identifier is reported only once for each function it appears in

   11 | # define VDSO_DELTA_MASK(vd)    U64_MAX
      |                                 ^~~~~~~

lib/vdso/gettimeofday.c:41:49: note: in expansion of macro 'VDSO_DELTA_MASK'
41 | u64 delta = (cycles - vd->cycle_last) & VDSO_DELTA_MASK(vd);
| ^~~~~~~~~~~~~~~

Quoted 5 lines

Caused by commit

c8e3a8b6f2e6 ("vdso: Consolidate vdso_calc_delta()")

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

Thanks you! Please consider the fix cc'ed you and linked below:

    https://lore.kernel.org/all/[email protected]/