diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-12-17 11:42:23 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-12-17 11:42:23 -0500 |
commit | 104064b54955addac0fcf9ceb6c68569f2bed6ab (patch) | |
tree | faa6e45a7226daac11934dd2430b3f4dd1e4682d /include | |
parent | cbd84ec0d5cf4ff760caa4b6de2925a21e21437d (diff) | |
parent | 0d01792300c4d7425eabac9095c603cdb411d2a5 (diff) |
Merge branch 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6
* 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6:
[S390] pud_present/pmd_present bug.
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-s390/pgtable.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/asm-s390/pgtable.h b/include/asm-s390/pgtable.h index f2cc25b74adf..1f530f8a6280 100644 --- a/include/asm-s390/pgtable.h +++ b/include/asm-s390/pgtable.h | |||
@@ -453,12 +453,12 @@ static inline int pgd_bad(pgd_t pgd) { return 0; } | |||
453 | 453 | ||
454 | static inline int pud_present(pud_t pud) | 454 | static inline int pud_present(pud_t pud) |
455 | { | 455 | { |
456 | return pud_val(pud) & _REGION_ENTRY_ORIGIN; | 456 | return (pud_val(pud) & _REGION_ENTRY_ORIGIN) != 0UL; |
457 | } | 457 | } |
458 | 458 | ||
459 | static inline int pud_none(pud_t pud) | 459 | static inline int pud_none(pud_t pud) |
460 | { | 460 | { |
461 | return pud_val(pud) & _REGION_ENTRY_INV; | 461 | return (pud_val(pud) & _REGION_ENTRY_INV) != 0UL; |
462 | } | 462 | } |
463 | 463 | ||
464 | static inline int pud_bad(pud_t pud) | 464 | static inline int pud_bad(pud_t pud) |
@@ -471,12 +471,12 @@ static inline int pud_bad(pud_t pud) | |||
471 | 471 | ||
472 | static inline int pmd_present(pmd_t pmd) | 472 | static inline int pmd_present(pmd_t pmd) |
473 | { | 473 | { |
474 | return pmd_val(pmd) & _SEGMENT_ENTRY_ORIGIN; | 474 | return (pmd_val(pmd) & _SEGMENT_ENTRY_ORIGIN) != 0UL; |
475 | } | 475 | } |
476 | 476 | ||
477 | static inline int pmd_none(pmd_t pmd) | 477 | static inline int pmd_none(pmd_t pmd) |
478 | { | 478 | { |
479 | return pmd_val(pmd) & _SEGMENT_ENTRY_INV; | 479 | return (pmd_val(pmd) & _SEGMENT_ENTRY_INV) != 0UL; |
480 | } | 480 | } |
481 | 481 | ||
482 | static inline int pmd_bad(pmd_t pmd) | 482 | static inline int pmd_bad(pmd_t pmd) |