Skip to content

Commit 8ff1e6c

Browse files
ahunter6KAGA-KOKO
authored andcommitted
vdso: Fix powerpc build U64_MAX undeclared error
U64_MAX is not in include/vdso/limits.h, although that isn't noticed on x86 because x86 includes include/linux/limits.h indirectly. However powerpc is more selective, resulting in the following build error: 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 11 | # define VDSO_DELTA_MASK(vd) U64_MAX | ^~~~~~~ Use ULLONG_MAX instead which will work just as well and is in include/vdso/limits.h. Fixes: c8e3a8b ("vdso: Consolidate vdso_calc_delta()") Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Adrian Hunter <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Closes: https://lore.kernel.org/all/[email protected]/
1 parent 98fe0fc commit 8ff1e6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/vdso/gettimeofday.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#ifndef vdso_calc_ns
99

1010
#ifdef VDSO_DELTA_NOMASK
11-
# define VDSO_DELTA_MASK(vd) U64_MAX
11+
# define VDSO_DELTA_MASK(vd) ULLONG_MAX
1212
#else
1313
# define VDSO_DELTA_MASK(vd) (vd->mask)
1414
#endif

0 commit comments

Comments
 (0)