Re: [PATCH v2 02/19] arch/arc: Implement with generic helpers

2023-04-17 Thread Thomas Zimmermann
Am 06.04.23 um 16:43 schrieb Arnd Bergmann: On Thu, Apr 6, 2023, at 16:30, Thomas Zimmermann wrote: + static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, unsigned long off) { vma->vm_page_prot = pgprot_noncached(vma->vm_pag

Re: [PATCH v2 02/19] arch/arc: Implement with generic helpers

2023-04-06 Thread Arnd Bergmann
On Thu, Apr 6, 2023, at 16:30, Thomas Zimmermann wrote: > + > static inline void fb_pgprotect(struct file *file, struct vm_area_struct > *vma, > unsigned long off) > { > vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot); > } > +#define fb_pgprotect fb_p

[PATCH v2 02/19] arch/arc: Implement with generic helpers

2023-04-06 Thread Thomas Zimmermann
Replace the architecture's fb_is_primary_device() with the generic one from . No functional changes. Signed-off-by: Thomas Zimmermann Cc: Vineet Gupta --- arch/arc/include/asm/fb.h | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/arch/arc/include/asm/fb.h b/arch/a