Thread (23 messages) 23 messages, 5 authors, 2025-02-20

Re: [PATCH v5 02/12] driver core: Split devres APIs to device/devres.h

From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: 2025-02-12 11:01:01
Also in: linux-gpio, linux-iio, lkml

On Wed, Feb 12, 2025 at 07:41:47AM +0100, Arnd Bergmann wrote:
On Wed, Feb 12, 2025, at 07:25, Raag Jadav wrote:
quoted
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

device.h is a huge header which is hard to follow and easy to miss
something. Improve that by splitting devres APIs to device/devres.h.

In particular this helps to speedup the build of the code that includes
device.h solely for a devres APIs.

While at it, cast the error pointers to __iomem using IOMEM_ERR_PTR()
and fix sparse warnings.
...
Acked-by: Arnd Bergmann <arnd@arndb.de>
Thank you!
Splitting this out makes a lot of sense conceptually, though
I don't think it will actually help with build speed: In order
to see real benefits, we'd need to remove the linux/device.h
inclusion from other headers that are frequently included,
but those don't really rely on the devres interfaces.
Yeah, that's just yet another baby step to the right direction, but it won't
change picture if being alone. I already did a number of patches to split
kernel.h and removing it from other headers, but a lot of work is still ahead
and it's not my hight priority task...

-- 
With Best Regards,
Andy Shevchenko

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help