[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <13fbaedc-cf7c-4a95-b4f0-5572ad1e3f76@roeck-us.net>
Date: Fri, 21 Feb 2025 13:29:42 -0800
From: Guenter Roeck <linux@...ck-us.net>
To: Arnd Bergmann <arnd@...nel.org>,
Wolfram Sang <wsa+renesas@...g-engineering.com>,
Heiner Kallweit <hkallweit1@...il.com>
Cc: Arnd Bergmann <arnd@...db.de>, Andi Shyti <andi.shyti@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Joe Hattori <joe@...is.s.u-tokyo.ac.jp>,
Uwe Kleine-König <u.kleine-koenig@...libre.com>,
Hans de Goede <hdegoede@...hat.com>, linux-i2c@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Revert "i2c: core: Allocate temp client on the stack in
i2c_detect"
On 2/21/25 12:54, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@...db.de>
>
> struct i2c_client is way too large to be put on the kernel stack, and depending
> on the kernel configuration, this can exceed the compile-time warning limit:
>
> drivers/i2c/i2c-core-base.c:1420:12: error: stack frame size (1040) exceeds limit (1024) in 'i2c_do_add_adapter' [-Werror,-Wframe-larger-than]
> 1420 | static int i2c_do_add_adapter(struct i2c_driver *driver,
> | ^
>
> The current version is the result of a cleanup patch that does not appear
> to be a requirement for anything else, so address the problem through a
> simple revert.
>
> Fixes: 735668f8e5c9 ("i2c: core: Allocate temp client on the stack in i2c_detect")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
Reviewed-by: Guenter Roeck <linux@...ck-us.net>
Powered by blists - more mailing lists