sof/ipc/common.h: add missing #include <ipc/stream.h>

Also move system headers stdbool.h and stdint.h last to avoid them being
accidentally included.

Fixes commit b91e253f65 ("include: sof: debug: Split panic.h into
Zephyr and XTOS-specific headers") that broke `scripts/fuzz.sh` because
it stopped `sof/ipc/common.h` from accidentally getting `ipc/stream.h`
through `panic.h`.

Fixes:

```
src/include/sof/ipc/common.h:126:15: warning: declaration of
 'struct sof_ipc_host_buffer' will not be visible outside of
 this function [-Wvisibility]
                            struct sof_ipc_host_buffer *ring,
                                   ^
```

```
sof/src/ipc/ipc3/host-page-table.c:151:5: error: conflicting types
for 'ipc_process_host_buffer'
int ipc_process_host_buffer(struct ipc *ipc,
    ^

sof/zephyr/../src/include/sof/ipc/common.h:125:5: note: previous
declaration is here:
int ipc_process_host_buffer(struct ipc *ipc,
```

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2023-03-22 00:09:58 +00:00 committed by Liam Girdwood
parent 8caa0e27a4
commit df440ba0ba
1 changed files with 3 additions and 1 deletions

View File

@ -16,9 +16,11 @@
#include <rtos/spinlock.h>
#include <rtos/sof.h>
#include <user/trace.h>
#include <ipc/header.h>
#include <ipc/stream.h>
#include <stdbool.h>
#include <stdint.h>
#include <ipc/header.h>
struct dma_sg_elem_array;
struct ipc_msg;