Commit 634cf6e
fbdev: omapfb: avoid stack overflow warning
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: Arnd Bergmann <[email protected]>
Signed-off-by: Helge Deller <[email protected]>1 parent f685dd7 commit 634cf6e
1 file changed
+18
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1536 | 1536 | | |
1537 | 1537 | | |
1538 | 1538 | | |
1539 | | - | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
1540 | 1546 | | |
1541 | 1547 | | |
1542 | 1548 | | |
1543 | | - | |
| 1549 | + | |
1544 | 1550 | | |
1545 | 1551 | | |
1546 | 1552 | | |
1547 | 1553 | | |
1548 | 1554 | | |
1549 | 1555 | | |
1550 | | - | |
| 1556 | + | |
1551 | 1557 | | |
1552 | | - | |
| 1558 | + | |
1553 | 1559 | | |
1554 | | - | |
| 1560 | + | |
1555 | 1561 | | |
1556 | 1562 | | |
1557 | 1563 | | |
| |||
1575 | 1581 | | |
1576 | 1582 | | |
1577 | 1583 | | |
1578 | | - | |
1579 | | - | |
1580 | | - | |
1581 | | - | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
1582 | 1588 | | |
1583 | 1589 | | |
1584 | 1590 | | |
| |||
1594 | 1600 | | |
1595 | 1601 | | |
1596 | 1602 | | |
1597 | | - | |
| 1603 | + | |
1598 | 1604 | | |
1599 | 1605 | | |
1600 | 1606 | | |
| |||
1618 | 1624 | | |
1619 | 1625 | | |
1620 | 1626 | | |
| 1627 | + | |
| 1628 | + | |
1621 | 1629 | | |
1622 | 1630 | | |
1623 | 1631 | | |
| |||
0 commit comments