]> git.hungrycats.org Git - linux/commitdiff
s390/mm: correct return value of pmd_pfn
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 13 May 2015 12:33:22 +0000 (14:33 +0200)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 10 Jun 2015 17:42:30 +0000 (13:42 -0400)
[ Upstream commit 7cded342c09f633666e71ee1ce048f218a9c5836 ]

Git commit 152125b7a882df36a55a8eadbea6d0edf1461ee7
"s390/mm: implement dirty bits for large segment table entries"
broke the pmd_pfn function, it changed the return value from
'unsigned long' to 'int'. This breaks all machine configurations
with memory above the 8TB line.

Cc: stable@vger.kernel.org # 3.17+
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
arch/s390/include/asm/pgtable.h

index 57c882761deaa2e543342e5bb68cdb5524851eef..b0373b44b320f26bd158d6a9da521afed62f99e1 100644 (file)
@@ -582,7 +582,7 @@ static inline int pmd_large(pmd_t pmd)
        return (pmd_val(pmd) & _SEGMENT_ENTRY_LARGE) != 0;
 }
 
-static inline int pmd_pfn(pmd_t pmd)
+static inline unsigned long pmd_pfn(pmd_t pmd)
 {
        unsigned long origin_mask;