Skip to content

Commit

Permalink
include: sof: common.h Fix compilation error
Browse files Browse the repository at this point in the history
Commit 16d126a ("audio: Header files cleanup") removed
rtos/panic.h include but this is still needed.

Otherwise, we get the following compilation error:

/work/repos/sof/src/lib/lib.c: In function ‘memset’:
/work/repos/sof/src/lib/lib.c:31: warning: implicit declaration of function ‘sof_panic’

Fixes: 16d126a ("audio: Header files cleanup")
Signed-off-by: Daniel Baluta <[email protected]>
(cherry picked from commit a4a3b3a)
  • Loading branch information
dbaluta authored and Zhang Peng committed Dec 26, 2023
1 parent 3e41c43 commit 3c9d58d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/include/sof/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#if !defined(__ASSEMBLER__) && defined(__XTENSA__)

#include <ipc/trace.h>
#include <rtos/panic.h>
#define VERIFY_ALIGN

#endif
Expand Down

0 comments on commit 3c9d58d

Please sign in to comment.