[PATCH v2 4/9] nds32: Fix drivers/gpu/drm/udl/udl_fb.c building error by defining PAGE_SHARED

2018-04-20 Thread Greentime Hu
It broke the 'allmodconfig' build.
drivers/gpu/drm/udl/udl_fb.c: In function 'udl_fb_mmap':
drivers/gpu/drm/udl/udl_fb.c:183:52: error: 'PAGE_SHARED' undeclared (first use 
in this function)
   if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
^~~
drivers/gpu/drm/udl/udl_fb.c:183:52: note: each undeclared identifier is 
reported only once for each function it appears in
make[4]: *** [drivers/gpu/drm/udl/udl_fb.o] Error 1

Signed-off-by: Greentime Hu 
Acked-by: Arnd Bergmann 
---
 arch/nds32/include/asm/pgtable.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/nds32/include/asm/pgtable.h b/arch/nds32/include/asm/pgtable.h
index 6783937edbeb..d3e19a55cf53 100644
--- a/arch/nds32/include/asm/pgtable.h
+++ b/arch/nds32/include/asm/pgtable.h
@@ -152,6 +152,7 @@
 #define PAGE_CACHE_L1  __pgprot(_HAVE_PAGE_L | _PAGE_V | _PAGE_M_KRW | _PAGE_D 
| _PAGE_E | _PAGE_G | _PAGE_CACHE)
 #define PAGE_MEMORY__pgprot(_HAVE_PAGE_L | _PAGE_V | _PAGE_M_KRW | _PAGE_D 
| _PAGE_E | _PAGE_G | _PAGE_CACHE_SHRD)
 #define PAGE_KERNEL__pgprot(_PAGE_V | _PAGE_M_KRW | _PAGE_D | _PAGE_E | 
_PAGE_G | _PAGE_CACHE_SHRD)
+#define PAGE_SHARED__pgprot(_PAGE_V | _PAGE_M_URW_KRW | _PAGE_D | 
_PAGE_CACHE_SHRD)
 #define PAGE_DEVICE__pgprot(_PAGE_V | _PAGE_M_KRW | _PAGE_D | _PAGE_G | 
_PAGE_C_DEV)
 #endif /* __ASSEMBLY__ */
 
-- 
1.9.5



[PATCH v2 4/9] nds32: Fix drivers/gpu/drm/udl/udl_fb.c building error by defining PAGE_SHARED

2018-04-20 Thread Greentime Hu
It broke the 'allmodconfig' build.
drivers/gpu/drm/udl/udl_fb.c: In function 'udl_fb_mmap':
drivers/gpu/drm/udl/udl_fb.c:183:52: error: 'PAGE_SHARED' undeclared (first use 
in this function)
   if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
^~~
drivers/gpu/drm/udl/udl_fb.c:183:52: note: each undeclared identifier is 
reported only once for each function it appears in
make[4]: *** [drivers/gpu/drm/udl/udl_fb.o] Error 1

Signed-off-by: Greentime Hu 
Acked-by: Arnd Bergmann 
---
 arch/nds32/include/asm/pgtable.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/nds32/include/asm/pgtable.h b/arch/nds32/include/asm/pgtable.h
index 6783937edbeb..d3e19a55cf53 100644
--- a/arch/nds32/include/asm/pgtable.h
+++ b/arch/nds32/include/asm/pgtable.h
@@ -152,6 +152,7 @@
 #define PAGE_CACHE_L1  __pgprot(_HAVE_PAGE_L | _PAGE_V | _PAGE_M_KRW | _PAGE_D 
| _PAGE_E | _PAGE_G | _PAGE_CACHE)
 #define PAGE_MEMORY__pgprot(_HAVE_PAGE_L | _PAGE_V | _PAGE_M_KRW | _PAGE_D 
| _PAGE_E | _PAGE_G | _PAGE_CACHE_SHRD)
 #define PAGE_KERNEL__pgprot(_PAGE_V | _PAGE_M_KRW | _PAGE_D | _PAGE_E | 
_PAGE_G | _PAGE_CACHE_SHRD)
+#define PAGE_SHARED__pgprot(_PAGE_V | _PAGE_M_URW_KRW | _PAGE_D | 
_PAGE_CACHE_SHRD)
 #define PAGE_DEVICE__pgprot(_PAGE_V | _PAGE_M_KRW | _PAGE_D | _PAGE_G | 
_PAGE_C_DEV)
 #endif /* __ASSEMBLY__ */
 
-- 
1.9.5