diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2025-07-29 14:02:53 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2025-07-29 14:02:53 -0700 |
| commit | 99e731bcb8e6dd197aa4ab587887a3f670d12b72 (patch) | |
| tree | 612e324b9e7fffbf80da5dbd5727f5f6115dbb3e /kernel/time | |
| parent | Merge tag 'irq-drivers-2025-07-27' of git://git.kernel.org/pub/scm/linux/kern... (diff) | |
| parent | time/timecounter: Fix the lie that struct cyclecounter is const (diff) | |
| download | linux-99e731bcb8e6dd197aa4ab587887a3f670d12b72.tar.gz linux-99e731bcb8e6dd197aa4ab587887a3f670d12b72.zip | |
Merge tag 'timers-cleanups-2025-07-27' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull timer cleanups from Thomas Gleixner:
"A treewide cleanup of struct cycle_counter const annotations.
The initial idea of making them const was correct as they were
seperate instances. When they got embedded into larger data
structures, which are even modified by the callback this got moot. The
only reason why this went unnoticed is that the required
container_of() casts the const attribute forcefully away.
Stop pretending that it is const"
* tag 'timers-cleanups-2025-07-27' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
time/timecounter: Fix the lie that struct cyclecounter is const
Diffstat (limited to 'kernel/time')
| -rw-r--r-- | kernel/time/timecounter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/timecounter.c b/kernel/time/timecounter.c index e6285288d765..3d2a354cfe1c 100644 --- a/kernel/time/timecounter.c +++ b/kernel/time/timecounter.c @@ -6,7 +6,7 @@ #include <linux/timecounter.h> void timecounter_init(struct timecounter *tc, - const struct cyclecounter *cc, + struct cyclecounter *cc, u64 start_tstamp) { tc->cc = cc; |
