162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef _ASM_FB_H_ 362306a36Sopenharmony_ci#define _ASM_FB_H_ 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#include <linux/fs.h> 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci#include <asm/page.h> 862306a36Sopenharmony_ci 962306a36Sopenharmony_cistatic inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, 1062306a36Sopenharmony_ci unsigned long off) 1162306a36Sopenharmony_ci{ 1262306a36Sopenharmony_ci vma->vm_page_prot = phys_mem_access_prot(file, off >> PAGE_SHIFT, 1362306a36Sopenharmony_ci vma->vm_end - vma->vm_start, 1462306a36Sopenharmony_ci vma->vm_page_prot); 1562306a36Sopenharmony_ci} 1662306a36Sopenharmony_ci#define fb_pgprotect fb_pgprotect 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ci#include <asm-generic/fb.h> 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ci#endif /* _ASM_FB_H_ */ 21