<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 18, 2019 at 6:27 PM Ladislav Michl <<a href="mailto:ladis@linux-mips.org">ladis@linux-mips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Oct 18, 2019 at 05:30:04PM +0100, Sudip Mukherjee wrote:<br>
> The build of xtensa allmodconfig is giving a warning of:<br>
> In function 'dsi_dump_dsidev_irqs':<br>
> warning: the frame size of 1120 bytes is larger than 1024 bytes<br>
> <br>
> Allocate the memory for 'struct dsi_irq_stats' dynamically instead<br>
> of assigning it in stack.<br>
<br>
So now function can fail silently, executes longer, code is sligthly<br>
bigger... And all that to silent warning about exceeding frame size.<br>
Is it really worth "fixing"?<br></blockquote><div><br></div><div>The only point of failure is if kmalloc() fails and if kmalloc() fails then there will be error prints in dmesg to tell the user that there is no memory left in the system. About the size bigger, it seems the drivers/video/fbdev/omap2/omapfb/dss/dsi.o file is smaller with the patch.</div><div>This is without the patch:</div><div>wo_patch<br>-rw-r--r-- 1 sudip sudip 316856 Oct 18 22:27 drivers/video/fbdev/omap2/omapfb/dss/dsi.o<br></div><div>And this is with the patch:</div><div>-rw-r--r-- 1 sudip sudip 316436 Oct 18 20:09 drivers/video/fbdev/omap2/omapfb/dss/dsi.o<br></div><div><br></div><div>And also, objdump shows me that <dsi_dump_dsidev_irqs> was taking up 0xD7D bytes, and now with the patch it is taking up 0xBED bytes, thats a saving of 400 bytes. If it has 400 bytes of less code to execute will it not be faster now?</div><div><br></div><div>But, I may be totally wrong in my thinking, and in that case, please feel free to reject the patch.</div><div><br></div><div>-- <br></div></div><div dir="ltr" class="gmail_signature">Regards<br>Sudip</div></div>