Re: drivers/gpu/drm/panel/panel-samsung-ld9040.c:240:12: warning: stack frame size of 8312 bytes in function 'ld9040_prepare'

2020-06-30 Thread Nick Desaulniers
On Sat, Jun 27, 2020 at 12:43 PM Vladimir Oltean wrote: > > Hi Nick, > > On Mon, 22 Jun 2020 at 19:50, Nick Desaulniers > wrote: > > > > > > I really don't get what's the problem here. The listing of > > > ld9040_prepare at the given commit and with the given .config is: > > > > I wrote a tool t

Re: drivers/gpu/drm/panel/panel-samsung-ld9040.c:240:12: warning: stack frame size of 8312 bytes in function 'ld9040_prepare'

2020-06-28 Thread Vladimir Oltean
Hi Nick, On Mon, 22 Jun 2020 at 19:50, Nick Desaulniers wrote: > > > I really don't get what's the problem here. The listing of > > ld9040_prepare at the given commit and with the given .config is: > > I wrote a tool to help debug these. > https://github.com/ClangBuiltLinux/frame-larger-than > I

Re: drivers/gpu/drm/panel/panel-samsung-ld9040.c:240:12: warning: stack frame size of 8312 bytes in function 'ld9040_prepare'

2020-06-22 Thread Sam Ravnborg
Hi Vladimir > I really don't get what's the problem here. The listing of > ld9040_prepare at the given commit and with the given .config is: The culprint is likely ld9040_brightness_set() that is inlined. I think we have troubles with static u8 const ld9040_gammas[25][22] I did not look cl

Re: drivers/gpu/drm/panel/panel-samsung-ld9040.c:240:12: warning: stack frame size of 8312 bytes in function 'ld9040_prepare'

2020-06-22 Thread Vladimir Oltean
obot > > All warnings (new ones prefixed by >>, old ones prefixed by <<): > > >> drivers/gpu/drm/panel/panel-samsung-ld9040.c:240:12: warning: stack frame > >> size of 8312 bytes in function 'ld9040_prepare' [-Wframe-larger-than=] > static int ld9040_prepare(struc