Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323802
b: refs/heads/master
c: 86d5a70
h: refs/heads/master
v: v3
  • Loading branch information
Irina Tirdea authored and Arnaldo Carvalho de Melo committed Sep 11, 2012
1 parent 9c5838f commit 9cfdec2
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fe392c535644b8ee370a219ca63557611e0b0365
refs/heads/master: 86d5a70c1eeb3d35bcadc94753fd9651df8835a8
4 changes: 4 additions & 0 deletions trunk/tools/perf/util/include/linux/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@
#define __used __attribute__((__unused__))
#define __packed __attribute__((__packed__))

#ifndef __force
#define __force
#endif

#endif
9 changes: 9 additions & 0 deletions trunk/tools/perf/util/include/linux/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@
_min1 < _min2 ? _min1 : _min2; })
#endif

#ifndef roundup
#define roundup(x, y) ( \
{ \
const typeof(y) __y = y; \
(((x) + (__y - 1)) / __y) * __y; \
} \
)
#endif

#ifndef BUG_ON
#ifdef NDEBUG
#define BUG_ON(cond) do { if (cond) {} } while (0)
Expand Down
8 changes: 8 additions & 0 deletions trunk/tools/perf/util/include/linux/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@

#include <asm/types.h>

#ifndef __bitwise
#define __bitwise
#endif

#ifndef __le32
typedef __u32 __bitwise __le32;
#endif

#define DECLARE_BITMAP(name,bits) \
unsigned long name[BITS_TO_LONGS(bits)]

Expand Down

0 comments on commit 9cfdec2

Please sign in to comment.