triage: added runcppcheck.cmd and linux-3.11.h in linux-3.11 folder to make results easier to reproduce

This commit is contained in:
Daniel Marjamäki 2015-01-02 08:53:04 +01:00
parent ef8e4111aa
commit 567595fb27
2 changed files with 12 additions and 0 deletions

View File

@ -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));

View File

@ -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