* [PATCH] sparc: fix header problem in sparc32 build
@ 2018-07-22 2:57 Randy Dunlap
0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2018-07-22 2:57 UTC (permalink / raw)
To: LKML, sparclinux, David Miller
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-07-22 2:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-22 2:57 [PATCH] sparc: fix header problem in sparc32 build Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).