Skip to content

Commit be54f8c

Browse files
committed
Merge tag 'timers-cleanups-2025-06-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull timer cleanup from Thomas Gleixner: "The delayed from_timer() API cleanup: The renaming to the timer_*() namespace was delayed due massive conflicts against Linux-next. Now that everything is upstream finish the conversion" * tag 'timers-cleanups-2025-06-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: treewide, timers: Rename from_timer() to timer_container_of()
2 parents 0529ef8 + 41cb085 commit be54f8c

File tree

689 files changed

+1151
-955
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

689 files changed

+1151
-955
lines changed

arch/alpha/kernel/srmcons.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ srmcons_do_receive_chars(struct tty_port *port)
6969
static void
7070
srmcons_receive_chars(struct timer_list *t)
7171
{
72-
struct srmcons_private *srmconsp = from_timer(srmconsp, t, timer);
72+
struct srmcons_private *srmconsp = timer_container_of(srmconsp, t,
73+
timer);
7374
struct tty_port *port = &srmconsp->port;
7475
unsigned long flags;
7576
int incr = 10;

arch/powerpc/kvm/booke.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ static void arm_next_watchdog(struct kvm_vcpu *vcpu)
628628

629629
static void kvmppc_watchdog_func(struct timer_list *t)
630630
{
631-
struct kvm_vcpu *vcpu = from_timer(vcpu, t, arch.wdt_timer);
631+
struct kvm_vcpu *vcpu = timer_container_of(vcpu, t, arch.wdt_timer);
632632
u32 tsr, new_tsr;
633633
int final;
634634

arch/powerpc/platforms/powermac/low_i2c.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,8 @@ static irqreturn_t kw_i2c_irq(int irq, void *dev_id)
359359

360360
static void kw_i2c_timeout(struct timer_list *t)
361361
{
362-
struct pmac_i2c_host_kw *host = from_timer(host, t, timeout_timer);
362+
struct pmac_i2c_host_kw *host = timer_container_of(host, t,
363+
timeout_timer);
363364
unsigned long flags;
364365

365366
spin_lock_irqsave(&host->lock, flags);

arch/sh/drivers/heartbeat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static inline void heartbeat_toggle_bit(struct heartbeat_data *hd,
5858

5959
static void heartbeat_timer(struct timer_list *t)
6060
{
61-
struct heartbeat_data *hd = from_timer(hd, t, timer);
61+
struct heartbeat_data *hd = timer_container_of(hd, t, timer);
6262
static unsigned bit = 0, up = 1;
6363

6464
heartbeat_toggle_bit(hd, bit, hd->flags & HEARTBEAT_INVERTED);

arch/sh/drivers/pci/common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ int __init pci_is_66mhz_capable(struct pci_channel *hose,
8888

8989
static void pcibios_enable_err(struct timer_list *t)
9090
{
91-
struct pci_channel *hose = from_timer(hose, t, err_timer);
91+
struct pci_channel *hose = timer_container_of(hose, t, err_timer);
9292

9393
timer_delete(&hose->err_timer);
9494
printk(KERN_DEBUG "PCI: re-enabling error IRQ.\n");
@@ -97,7 +97,7 @@ static void pcibios_enable_err(struct timer_list *t)
9797

9898
static void pcibios_enable_serr(struct timer_list *t)
9999
{
100-
struct pci_channel *hose = from_timer(hose, t, serr_timer);
100+
struct pci_channel *hose = timer_container_of(hose, t, serr_timer);
101101

102102
timer_delete(&hose->serr_timer);
103103
printk(KERN_DEBUG "PCI: re-enabling system error IRQ.\n");

arch/sh/drivers/push-switch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ static DEVICE_ATTR_RO(switch);
2525

2626
static void switch_timer(struct timer_list *t)
2727
{
28-
struct push_switch *psw = from_timer(psw, t, debounce);
28+
struct push_switch *psw = timer_container_of(psw, t, debounce);
2929

3030
schedule_work(&psw->work);
3131
}

arch/sparc/kernel/viohs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ EXPORT_SYMBOL(vio_port_up);
804804

805805
static void vio_port_timer(struct timer_list *t)
806806
{
807-
struct vio_driver_state *vio = from_timer(vio, t, timer);
807+
struct vio_driver_state *vio = timer_container_of(vio, t, timer);
808808

809809
vio_port_up(vio);
810810
}

arch/um/drivers/vector_kern.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1534,7 +1534,7 @@ static const struct net_device_ops vector_netdev_ops = {
15341534

15351535
static void vector_timer_expire(struct timer_list *t)
15361536
{
1537-
struct vector_private *vp = from_timer(vp, t, tl);
1537+
struct vector_private *vp = timer_container_of(vp, t, tl);
15381538

15391539
vp->estats.tx_kicks++;
15401540
napi_schedule(&vp->napi);

arch/x86/kvm/xen.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1571,7 +1571,8 @@ static bool kvm_xen_schedop_poll(struct kvm_vcpu *vcpu, bool longmode,
15711571

15721572
static void cancel_evtchn_poll(struct timer_list *t)
15731573
{
1574-
struct kvm_vcpu *vcpu = from_timer(vcpu, t, arch.xen.poll_timer);
1574+
struct kvm_vcpu *vcpu = timer_container_of(vcpu, t,
1575+
arch.xen.poll_timer);
15751576

15761577
kvm_make_request(KVM_REQ_UNBLOCK, vcpu);
15771578
kvm_vcpu_kick(vcpu);

arch/xtensa/platforms/iss/network.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ static int iss_net_poll(struct iss_net_private *lp)
338338

339339
static void iss_net_timer(struct timer_list *t)
340340
{
341-
struct iss_net_private *lp = from_timer(lp, t, timer);
341+
struct iss_net_private *lp = timer_container_of(lp, t, timer);
342342

343343
iss_net_poll(lp);
344344
mod_timer(&lp->timer, jiffies + lp->timer_val);

0 commit comments

Comments
 (0)