@@ -1,5 +1,6 @@
hostprogs := jevents
+CHOSTFLAGS = -I$(srctree)/tools/include
jevents-y += json.o jsmn.o jevents.o
pmu-events-y += pmu-events.o
JDIR = pmu-events/arch/$(SRCARCH)
@@ -47,6 +47,7 @@
#include "jsmn.h"
#include "json.h"
#include "jevents.h"
+#include <linux/list.h>
int verbose;
char *prog;
@@ -884,6 +885,7 @@ int main(int argc, char *argv[])
const char *output_file;
const char *start_dirname;
struct stat stbuf;
+ struct list_head krava __maybe_unused;
prog = basename(argv[0]);
if (argc < 4) {