Skip to content

Commit 567595f

Browse files
committed
triage: added runcppcheck.cmd and linux-3.11.h in linux-3.11 folder to make results easier to reproduce
1 parent ef8e411 commit 567595f

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

triage/linux-3.11/linux-3.11.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
#define BUG_ON(C) if (C) exit(1)
3+
#define ARRAY_SIZE(A) (sizeof(A) / sizeof(A[0]))
4+
5+
#define container_of(ptr, type, member) ({ \
6+
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
7+
(type *)( (char *)__mptr - offsetof(type,member) );})
8+
9+
void panic(const char *fmt, ...) __attribute__((noreturn));
10+

triage/linux-3.11/runcppcheck.cmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# command used to generate error report for linux-3.11
2+
cppcheck --include=linux-3.11.h --platform=unix64 linux-3.11

0 commit comments

Comments
 (0)