From 567595fb27f6ed969ee4d25b51d8b5ad24b94592 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 2 Jan 2015 08:53:04 +0100 Subject: [PATCH] triage: added runcppcheck.cmd and linux-3.11.h in linux-3.11 folder to make results easier to reproduce --- triage/linux-3.11/linux-3.11.h | 10 ++++++++++ triage/linux-3.11/runcppcheck.cmd | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 triage/linux-3.11/linux-3.11.h create mode 100755 triage/linux-3.11/runcppcheck.cmd diff --git a/triage/linux-3.11/linux-3.11.h b/triage/linux-3.11/linux-3.11.h new file mode 100644 index 000000000..89a48be82 --- /dev/null +++ b/triage/linux-3.11/linux-3.11.h @@ -0,0 +1,10 @@ + +#define BUG_ON(C) if (C) exit(1) +#define ARRAY_SIZE(A) (sizeof(A) / sizeof(A[0])) + +#define container_of(ptr, type, member) ({ \ + const typeof( ((type *)0)->member ) *__mptr = (ptr); \ + (type *)( (char *)__mptr - offsetof(type,member) );}) + +void panic(const char *fmt, ...) __attribute__((noreturn)); + diff --git a/triage/linux-3.11/runcppcheck.cmd b/triage/linux-3.11/runcppcheck.cmd new file mode 100755 index 000000000..8841d56ed --- /dev/null +++ b/triage/linux-3.11/runcppcheck.cmd @@ -0,0 +1,2 @@ +# command used to generate error report for linux-3.11 +cppcheck --include=linux-3.11.h --platform=unix64 linux-3.11