[PATCH v3 01/15] gpio: dwapb: Use modern PM macros
Andy Shevchenko
andriy.shevchenko at intel.com
Wed Nov 19 08:27:35 PST 2025
On Thu, Nov 20, 2025 at 12:04:58AM +0800, Jisheng Zhang wrote:
> On Wed, Nov 19, 2025 at 06:11:53PM +0200, Andy Shevchenko wrote:
> > On Wed, Nov 19, 2025 at 6:09 PM Jisheng Zhang <jszhang at kernel.org> wrote:
> > > On Wed, Nov 19, 2025 at 05:42:59PM +0200, Andy Shevchenko wrote:
> > > > On Wed, Nov 19, 2025 at 10:43:13PM +0800, Jisheng Zhang wrote:
...
> > > > > -#ifdef CONFIG_PM_SLEEP
> > > > > struct dwapb_context *ctx;
> > > > > -#endif
> > > >
> > > > But why this? For the PM_SLEEP=n cases it will give an unrequested overhead.
> > >
> > > the pm_ptr() and pm_sleep_ptr() can optimize out the PM related
> > > functions, but those functions are still compiled, so if we keep the
> > > #ifdef, there will be build errors.
> >
> > Is this an expectation or you can share the error, please?
>
> drivers/gpio/gpio-dwapb.c: In function ‘dwapb_irq_set_wake’:
> drivers/gpio/gpio-dwapb.c:368:51: error: ‘struct dwapb_gpio_port’ h
> as no member named ‘ctx’
> 368 | struct dwapb_context *ctx = gpio->ports[0].ctx;
Thank you!
I just answered in the other email that I will tag v4 after fixing typos
and dropping unrelated changes.
--
With Best Regards,
Andy Shevchenko
More information about the linux-arm-kernel
mailing list