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

Stephen Rothwell
2025-07-08T06:08:32Z

[-- Attachment #1: Type: text/plain, Size: 1744 bytes --]

Hi all,

After merging the tip tree, today's linux-next build (powerpc
ppc64_allmodconfig) produced this warning:

In file included from include/vdso/datapage.h:8,
from lib/vdso/gettimeofday.c:6,
from <command-line>:
lib/vdso/gettimeofday.c: In function '__cvdso_clock_gettime_common':
include/uapi/linux/bits.h:7:56: warning: right shift count >= width of type [-Wshift-count-overflow]
7 | #define __GENMASK(h, l) (((~_UL(0)) << (l)) & (~_UL(0) >> (BITS_PER_LONG - 1 - (h))))
| ^~
include/vdso/datapage.h:50:25: note: in expansion of macro '__GENMASK'
50 | #define VDSO_AUX __GENMASK(CLOCK_AUX_LAST, CLOCK_AUX)
| ^~~~~~~~~
lib/vdso/gettimeofday.c:335:24: note: in expansion of macro 'VDSO_AUX'
335 | else if (msk & VDSO_AUX)
| ^~~~~~~~
lib/vdso/gettimeofday.c: In function '__cvdso_clock_getres_common':
include/uapi/linux/bits.h:7:56: warning: right shift count >= width of type [-Wshift-count-overflow]
7 | #define __GENMASK(h, l) (((~_UL(0)) << (l)) & (~_UL(0) >> (BITS_PER_LONG - 1 - (h))))
| ^~
include/vdso/datapage.h:50:25: note: in expansion of macro '__GENMASK'
50 | #define VDSO_AUX __GENMASK(CLOCK_AUX_LAST, CLOCK_AUX)
| ^~~~~~~~~
lib/vdso/gettimeofday.c:481:26: note: in expansion of macro 'VDSO_AUX'
481 | } else if (msk & VDSO_AUX) {
| ^~~~~~~~

Introduced by commit

7893ea1006fc ("vdso/gettimeofday: Add support for auxiliary clocks")

--
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]