Commit a935b3f
ASoC: SOF: ipc4-topology: Allocate ref_params on stack
Currently the compiler (clang 19.1.7) is not happy about the size of
the stack frame in sof_ipc4_prepare_copier_module:
sound/soc/sof/ipc4-topology.c:1800:1: error: stack frame size (1288) exceeds limit (1024) in 'sof_ipc4_prepare_copier_module' [-Werror,-Wframe-larger-than]
1800 | sof_ipc4_prepare_copier_module(struct snd_sof_widget *swidget,
| ^
Work around this by allocating ref_params on stack, as it looks the biggest
variable on stack right now.
Note, this only happens when compile for 32-bit machines (x86_32 in my case).
Signed-off-by: Andy Shevchenko <[email protected]>
Acked-by: Peter Ujfalusi <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>1 parent 87fa872 commit a935b3f
1 file changed
+17
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
1807 | 1808 | | |
1808 | 1809 | | |
1809 | 1810 | | |
1810 | | - | |
1811 | 1811 | | |
| 1812 | + | |
1812 | 1813 | | |
1813 | 1814 | | |
1814 | 1815 | | |
| |||
1885 | 1886 | | |
1886 | 1887 | | |
1887 | 1888 | | |
1888 | | - | |
| 1889 | + | |
1889 | 1890 | | |
1890 | | - | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
1891 | 1894 | | |
1892 | 1895 | | |
1893 | 1896 | | |
| |||
1924 | 1927 | | |
1925 | 1928 | | |
1926 | 1929 | | |
1927 | | - | |
1928 | | - | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
1929 | 1935 | | |
1930 | 1936 | | |
1931 | 1937 | | |
| |||
1934 | 1940 | | |
1935 | 1941 | | |
1936 | 1942 | | |
1937 | | - | |
| 1943 | + | |
1938 | 1944 | | |
1939 | 1945 | | |
1940 | 1946 | | |
| |||
1946 | 1952 | | |
1947 | 1953 | | |
1948 | 1954 | | |
1949 | | - | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
1950 | 1959 | | |
1951 | 1960 | | |
1952 | 1961 | | |
| |||
1959 | 1968 | | |
1960 | 1969 | | |
1961 | 1970 | | |
1962 | | - | |
| 1971 | + | |
1963 | 1972 | | |
1964 | 1973 | | |
1965 | 1974 | | |
| |||
0 commit comments