Re: [PATCH] iio: ssp: Serialize watchdog timer state changes
From: Andriy Shevchenko
Date: Sun Oct 04 2026 - 04:38:19 EST
On Sun, Oct 04, 2026 at 01:39:15PM +0800, Runyu Xiao wrote:
> On Wed, Sep 30, 2026 at 03:03:19PM +0800, Runyu Xiao wrote:
...
> > struct ssp_data {
> > struct timer_list wdt_timer;
> > struct mutex wdt_lock;
> > bool wdt_enabled;
> > struct work_struct work_wdt;
> > };
>
> On the x86_64 build, pahole reports wdt_timer at offset 16, wdt_lock at
> 56, wdt_enabled at 80, and work_wdt at 88; sizeof(struct ssp_data) is
> 816 bytes. There is a 7-byte hole after wdt_enabled.
Right, so you can make it 3, correct?
--
With Best Regards,
Andy Shevchenko