24 lines
708 B
Plaintext
24 lines
708 B
Plaintext
From: Jeff Mahoney <jeffm@suse.com>
|
|
Subject: powerpc: use min_t in copy_oldmem_page
|
|
Patch-mainline: not yet
|
|
|
|
The gcc used in Factory considers the comparison of csize and PAGE_SIZE
|
|
to be invalid and causes a build failure. This patch forces it to use size_t.
|
|
|
|
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
|
|
---
|
|
arch/powerpc/kernel/crash_dump.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/arch/powerpc/kernel/crash_dump.c
|
|
+++ b/arch/powerpc/kernel/crash_dump.c
|
|
@@ -128,7 +128,7 @@ ssize_t copy_oldmem_page(unsigned long p
|
|
if (!csize)
|
|
return 0;
|
|
|
|
- csize = min(csize, PAGE_SIZE);
|
|
+ csize = min_t(size_t, csize, PAGE_SIZE);
|
|
|
|
if (pfn < max_pfn) {
|
|
vaddr = __va(pfn << PAGE_SHIFT);
|