[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <4ea5bd29-3d42-440b-bbea-203479116b48@app.fastmail.com>
Date: Wed, 12 Feb 2025 07:41:47 +0100
From: "Arnd Bergmann" <arnd@...db.de>
To: "Raag Jadav" <raag.jadav@...el.com>,
"Greg Kroah-Hartman" <gregkh@...uxfoundation.org>,
"Rafael J . Wysocki" <rafael@...nel.org>,
"Linus Walleij" <linus.walleij@...aro.org>,
"Mika Westerberg" <mika.westerberg@...ux.intel.com>,
"Andy Shevchenko" <andriy.shevchenko@...ux.intel.com>,
"Dmitry Torokhov" <dmitry.torokhov@...il.com>,
"Jonathan Cameron" <jic23@...nel.org>,
"Przemek Kitszel" <przemyslaw.kitszel@...el.com>
Cc: "open list:GPIO SUBSYSTEM" <linux-gpio@...r.kernel.org>,
linux-kernel@...r.kernel.org, linux-input@...r.kernel.org,
linux-iio@...r.kernel.org
Subject: Re: [PATCH v5 02/12] driver core: Split devres APIs to device/devres.h
On Wed, Feb 12, 2025, at 07:25, Raag Jadav wrote:
> From: Andy Shevchenko <andriy.shevchenko@...ux.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.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
> Signed-off-by: Raag Jadav <raag.jadav@...el.com>
> ---
> include/linux/device.h | 119 +-------------------------------
> include/linux/device/devres.h | 124 ++++++++++++++++++++++++++++++++++
Acked-by: Arnd Bergmann <arnd@...db.de>
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.
Arnd
Powered by blists - more mailing lists