Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311252
b: refs/heads/master
c: 593f473
h: refs/heads/master
v: v3
  • Loading branch information
Marek Szyprowski committed Jun 25, 2012
1 parent 74c600d commit 434d18c
Show file tree
Hide file tree
Showing 3 changed files with 12 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: 09682c1dd3820445a27d32dcbeee6a6eafff3dc9
refs/heads/master: 593f47355467b9ef44293698817e2bdb347e2d11
2 changes: 1 addition & 1 deletion trunk/arch/arm/mm/dma-mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ static struct page **__iommu_alloc_buffer(struct device *dev, size_t size, gfp_t
return NULL;

while (count) {
int j, order = __ffs(count);
int j, order = __fls(count);

pages[i] = alloc_pages(gfp | __GFP_NOWARN, order);
while (!pages[i] && order)
Expand Down
19 changes: 10 additions & 9 deletions trunk/include/asm-generic/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,10 @@

#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 @@ -31,8 +23,17 @@ 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 434d18c

Please sign in to comment.