fuzzer: fix build as with header order and ARRAY_SIZE redefinition

ARRAY_SIZE was being redefined, simplest option is to remove, but I think
this code has to additionally be compiled with external Fuzzer. Fix build.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
Liam Girdwood 2021-04-10 17:11:10 +01:00 committed by Curtis Malainey
parent 517ad95d51
commit e79d5d1f8e
2 changed files with 4 additions and 1 deletions

View File

@ -30,7 +30,9 @@
#define IRQ_WAKE_THREAD 1
#define IRQ_HANDLED 2
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
#endif
struct fuzz;
struct fuzz_platform;

View File

@ -13,12 +13,13 @@
#include <errno.h>
#include <unistd.h>
#include <string.h>
#include "../fuzzer/fuzzer.h"
#include <ipc/topology.h>
#include <ipc/stream.h>
#include <sof/common.h>
#include <tplg_parser/topology.h>
#include "../fuzzer/fuzzer.h"
const struct sof_dai_types sof_dais[] = {
{"SSP", SOF_DAI_INTEL_SSP},
{"HDA", SOF_DAI_INTEL_HDA},