From: Stephen Rothwell <sfr@canb•auug.org.au>
To: Daniel Lezcano <daniel.lezcano@linaro•org>
Cc: Marc Zyngier <maz@kernel•org>,
Linux Kernel Mailing List <linux-kernel@vger•kernel.org>,
Linux Next Mailing List <linux-next@vger•kernel.org>
Subject: linux-next: build warning after merge of the clockevents tree
Date: Thu, 14 Aug 2025 11:16:57 +1000 [thread overview]
Message-ID: <20250814111657.7debc9f1@canb.auug.org.au> (raw)
[-- Attachment #1: Type: text/plain, Size: 2280 bytes --]
Hi all,
After merging the clockevents tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:
In file included from include/linux/bitops.h:6,
from include/linux/log2.h:12,
from include/asm-generic/div64.h:55,
from arch/arm/include/asm/div64.h:114,
from include/linux/math.h:6,
from include/linux/math64.h:6,
from include/linux/time.h:6,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/clocksource.h:13,
from include/linux/clockchips.h:14,
from drivers/clocksource/arm_arch_timer_mmio.c:13:
drivers/clocksource/arm_arch_timer_mmio.c: In function 'arch_timer_mmio_setup':
include/linux/bits.h:47:9: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '72057594037927935' to '4294967295' [-Woverflow]
47 | ((t)(GENMASK_INPUT_CHECK(h, l) + \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
48 | (type_max(t) << (l) & \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
49 | type_max(t) >> (BITS_PER_TYPE(t) - 1 - (h)))))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/bits.h:52:33: note: in expansion of macro 'GENMASK_TYPE'
52 | #define GENMASK_ULL(h, l) GENMASK_TYPE(unsigned long long, h, l)
| ^~~~~~~~~~~~
include/linux/clocksource.h:153:32: note: in expansion of macro 'GENMASK_ULL'
153 | #define CLOCKSOURCE_MASK(bits) GENMASK_ULL((bits) - 1, 0)
| ^~~~~~~~~~~
drivers/clocksource/arm_arch_timer_mmio.c:264:66: note: in expansion of macro 'CLOCKSOURCE_MASK'
264 | clockevents_config_and_register(&at->evt, at->rate, 0xf, CLOCKSOURCE_MASK(56));
| ^~~~~~~~~~~~~~~~
Introduced by commit
fbdd82d7f782 ("clocksource/drivers/arm_arch_timer: Add standalone MMIO driver")
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next reply other threads:[~2025-08-14 1:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-14 1:16 Stephen Rothwell [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-07-16 6:08 linux-next: build warning after merge of the clockevents tree Stephen Rothwell
[not found] ` <CAKnoXLynCY8dAe8k+ttTVpN2U49_-DyQFU7t1BRk-x74tfJ78Q@mail.gmail.com>
2025-07-18 22:08 ` Stephen Rothwell
2025-07-29 1:40 ` Stephen Rothwell
2025-07-30 12:22 ` Daniel Lezcano
2025-07-30 14:26 ` Stephen Rothwell
2020-01-06 2:37 Stephen Rothwell
2014-01-16 4:03 Stephen Rothwell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250814111657.7debc9f1@canb.auug.org.au \
--to=sfr@canb$(echo .)auug.org.au \
--cc=daniel.lezcano@linaro$(echo .)org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-next@vger$(echo .)kernel.org \
--cc=maz@kernel$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox