projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3512a79
)
FRV: __pte_to_swp_entry doesn't expand correctly
author
Roel Kluin
<
[email protected]
>
Mon, 16 Feb 2009 12:49:16 +0000
(12:49 +0000)
committer
Linus Torvalds
<
[email protected]
>
Tue, 17 Feb 2009 22:05:30 +0000
(14:05 -0800)
The macro doesn't expand correctly when its parameter isn't 'pte'.
Signed-off-by: Roel Kluin <
[email protected]
>
Signed-off-by: David Howells <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
include/asm-frv/pgtable.h
patch
|
blob
|
history
diff --git
a/include/asm-frv/pgtable.h
b/include/asm-frv/pgtable.h
index 83c51aba534b727a363d22559eaa153dd90c9dda..e16fdb1f4f4fe11caada4239cbc621f084936552 100644
(file)
--- a/
include/asm-frv/pgtable.h
+++ b/
include/asm-frv/pgtable.h
@@
-478,7
+478,7
@@
static inline pte_t pte_modify(pte_t pte, pgprot_t newprot)
#define __swp_type(x) (((x).val >> 2) & 0x1f)
#define __swp_offset(x) ((x).val >> 8)
#define __swp_entry(type, offset) ((swp_entry_t) { ((type) << 2) | ((offset) << 8) })
-#define __pte_to_swp_entry(
pte) ((swp_entry_t) { (
pte).pte })
+#define __pte_to_swp_entry(
_pte) ((swp_entry_t) { (_
pte).pte })
#define __swp_entry_to_pte(x) ((pte_t) { (x).val })
static inline int pte_file(pte_t pte)