2024-02-13 11:16:24

by Jiri Slaby

[permalink] [raw]
Subject: [PATCH] hpet: remove hpets::hp_clocksource

Commit cf8e8658100d (arch: Remove Itanium (IA-64) architecture) removed
the last user of hpets::hp_clocksource. Drop the member.

Found by https://github.com/jirislaby/clang-struct.

Signed-off-by: Jiri Slaby (SUSE) <[email protected]>
Cc: Clemens Ladisch <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
---
drivers/char/hpet.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c
index 9c90b1d2c036..d51fc8321d41 100644
--- a/drivers/char/hpet.c
+++ b/drivers/char/hpet.c
@@ -87,7 +87,6 @@ struct hpets {
struct hpets *hp_next;
struct hpet __iomem *hp_hpet;
unsigned long hp_hpet_phys;
- struct clocksource *hp_clocksource;
unsigned long long hp_tick_freq;
unsigned long hp_delta;
unsigned int hp_ntimer;
--
2.43.1



2024-02-13 12:44:09

by Arnd Bergmann

[permalink] [raw]
Subject: Re: [PATCH] hpet: remove hpets::hp_clocksource



On Tue, Feb 13, 2024, at 12:15, Jiri Slaby (SUSE) wrote:
> Commit cf8e8658100d (arch: Remove Itanium (IA-64) architecture) removed
> the last user of hpets::hp_clocksource. Drop the member.
>
> Found by https://github.com/jirislaby/clang-struct.

Nice tool!

> Signed-off-by: Jiri Slaby (SUSE) <[email protected]>
> Cc: Clemens Ladisch <[email protected]>
> Cc: Arnd Bergmann <[email protected]>
> Cc: Greg Kroah-Hartman <[email protected]>

Acked-by: Arnd Bergmann <[email protected]>