Arnd Bergmann 78b0d99a68 drm/bridge: fix stack usage warning on old gcc
Some older versions of gcc badly optimize code that passes
an inline function argument into another function by reference,
causing huge stack usage:

drivers/gpu/drm/bridge/tc358768.c: In function 'tc358768_bridge_pre_enable':
drivers/gpu/drm/bridge/tc358768.c:840:1: error: the frame size of 2256 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]

Use a temporary variable as a workaround and add a comment pointing
to the gcc bug.

Fixes: ff1ca6397b1d ("drm/bridge: Add tc358768 driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200428215408.4111675-1-arnd@arndb.de
2020-04-29 22:35:50 +02:00
..
2020-04-28 16:04:00 +02:00
2020-04-28 16:13:03 +02:00
2020-04-02 14:16:44 +02:00
2020-04-21 09:02:29 +02:00
2020-04-02 14:16:44 +02:00
2020-04-29 18:44:26 +03:00
2020-04-02 14:16:44 +02:00
2020-04-24 20:51:24 +08:00
2020-04-17 08:12:22 +02:00
2020-04-25 19:54:50 +02:00
2020-03-12 12:42:56 +10:00
2020-04-03 17:11:41 +02:00
2020-04-02 14:16:45 +02:00
2020-04-02 14:16:45 +02:00
2020-04-28 16:05:15 +02:00
2020-04-17 08:12:22 +02:00
2020-04-28 15:15:59 +02:00
2020-04-17 08:12:22 +02:00
2020-03-26 15:45:36 +01:00
2020-04-02 14:16:46 +02:00
2020-04-17 08:12:22 +02:00
2020-04-02 14:16:46 +02:00
2020-04-03 17:11:41 +02:00
2020-03-11 07:27:21 +10:00
2020-04-03 17:11:41 +02:00
2020-04-28 15:05:19 +02:00
2020-04-29 18:44:26 +03:00
2020-03-26 15:38:09 +01:00
2020-03-16 09:27:09 +01:00
2020-04-29 18:44:26 +03:00
2020-04-03 17:11:41 +02:00
2020-03-18 14:48:34 +01:00
2020-04-28 16:05:15 +02:00
2020-04-28 16:05:15 +02:00