lkml.org 
[lkml]   [2018]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] sparc: fix header problem in sparc32 build
Date
From: Randy Dunlap <rdunlap@infradead.org>

Add a "struct page;" "stub" to fix a build error in sparc32.
Fixes this error:

../include/linux/highmem.h: In function 'clear_user_highpage':
../include/linux/highmem.h:137:31: error: passing argument 1 of 'sparc_flush_page_to_ram' from incompatible pointer type [-Werror=incompatible-pointer-types]
clear_user_page(addr, vaddr, page);
^~~~
../arch/sparc/include/asm/page_32.h:24:27: note: in definition of macro 'clear_user_page'
sparc_flush_page_to_ram(page); \
^~~~

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
arch/sparc/include/asm/cacheflush_32.h | 1 +
1 file changed, 1 insertion(+)

--- linux-next-20180717.orig/arch/sparc/include/asm/cacheflush_32.h
+++ linux-next-20180717/arch/sparc/include/asm/cacheflush_32.h
@@ -37,6 +37,7 @@
#define flush_page_for_dma(addr) \
sparc32_cachetlb_ops->page_for_dma(addr)

+struct page;
void sparc_flush_page_to_ram(struct page *page);

#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1

\
 
 \ /
  Last update: 2018-07-22 04:58    [W:0.427 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site