Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311253
b: refs/heads/master
c: 5c0a981
h: refs/heads/master
i:
  311251: 74c600d
v: v3
  • Loading branch information
Linus Torvalds committed Jun 25, 2012
1 parent 434d18c commit 2e5cb32
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 593f47355467b9ef44293698817e2bdb347e2d11
refs/heads/master: 5c0a981fb1cacddc9a35dd87ea74045abd640942
19 changes: 9 additions & 10 deletions trunk/include/asm-generic/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@

#include <linux/compiler.h>

#ifdef CONFIG_GENERIC_BUG
#define BUGFLAG_WARNING (1 << 0)
#define BUGFLAG_TAINT(taint) (BUGFLAG_WARNING | ((taint) << 8))
#define BUG_GET_TAINT(bug) ((bug)->flags >> 8)
#endif

#ifndef __ASSEMBLY__
#include <linux/kernel.h>

#ifdef CONFIG_BUG

#ifdef CONFIG_GENERIC_BUG
#ifndef __ASSEMBLY__
struct bug_entry {
#ifndef CONFIG_GENERIC_BUG_RELATIVE_POINTERS
unsigned long bug_addr;
Expand All @@ -23,17 +31,8 @@ struct bug_entry {
#endif
unsigned short flags;
};
#endif /* __ASSEMBLY__ */

#define BUGFLAG_WARNING (1 << 0)
#define BUGFLAG_TAINT(taint) (BUGFLAG_WARNING | ((taint) << 8))
#define BUG_GET_TAINT(bug) ((bug)->flags >> 8)

#endif /* CONFIG_GENERIC_BUG */

#ifndef __ASSEMBLY__
#include <linux/kernel.h>

/*
* Don't use BUG() or BUG_ON() unless there's really no way out; one
* example might be detecting data structure corruption in the middle
Expand Down

0 comments on commit 2e5cb32

Please sign in to comment.