Commit 7530fbc
fbdev: omapfb: avoid stack overflow warning
[ Upstream commit 634cf6e ]
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 <arnd@arndb.de>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent e1df7f0 commit 7530fbc
1 file changed
Lines changed: 18 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1538 | 1538 | | |
1539 | 1539 | | |
1540 | 1540 | | |
1541 | | - | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 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 | | |
1558 | 1564 | | |
1559 | 1565 | | |
| |||
1577 | 1583 | | |
1578 | 1584 | | |
1579 | 1585 | | |
1580 | | - | |
1581 | | - | |
1582 | | - | |
1583 | | - | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
1584 | 1590 | | |
1585 | 1591 | | |
1586 | 1592 | | |
| |||
1596 | 1602 | | |
1597 | 1603 | | |
1598 | 1604 | | |
1599 | | - | |
| 1605 | + | |
1600 | 1606 | | |
1601 | 1607 | | |
1602 | 1608 | | |
| |||
1620 | 1626 | | |
1621 | 1627 | | |
1622 | 1628 | | |
| 1629 | + | |
| 1630 | + | |
1623 | 1631 | | |
1624 | 1632 | | |
1625 | 1633 | | |
| |||
0 commit comments