• Arnd Bergmann's avatar
    fbdev: omapfb: avoid stack overflow warning · 634cf6ea
    Arnd Bergmann authored
    The dsi_irq_stats structure is a little too big to fit on the
    stack of a 32-bit task, depending on the specific gcc options:
    
    fbdev/omap2/omapfb/dss/dsi.c: In function 'dsi_dump_dsidev_irqs':
    fbdev/omap2/omapfb/dss/dsi.c:1621:1: error: the frame size of 1064 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
    
    Since this is only a debugfs file, performance is not critical,
    so just dynamically allocate it, and print an error message
    in there in place of a failure code when the allocation fails.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarHelge Deller <deller@gmx.de>
    634cf6ea
dsi.c 137 KB