@@ -154,7 +154,7 @@ static inline int devmem_is_allowed(unsigned long pfn)
#define HAVE_ARCH_ALLOC_PAGE
#if IS_ENABLED(CONFIG_PGSTE)
-int arch_make_page_accessible(struct page *page);
+int arch_make_page_accessible(struct page *page, int where);
#define HAVE_ARCH_MAKE_PAGE_ACCESSIBLE
#endif
@@ -287,7 +287,7 @@ EXPORT_SYMBOL_GPL(gmap_convert_to_secure);
/**
* To be called with the page locked or with an extra reference!
*/
-int arch_make_page_accessible(struct page *page)
+int arch_make_page_accessible(struct page *page, int where)
{
int rc = 0;
@@ -842,7 +842,7 @@ void do_secure_storage_access(struct pt_regs *regs)
up_read(&mm->mmap_sem);
break;
}
- if (arch_make_page_accessible(page))
+ if (arch_make_page_accessible(page, MAKE_ACCESSIBLE_GENERIC))
send_sig(SIGSEGV, current, 0);
put_page(page);
up_read(&mm->mmap_sem);
@@ -851,7 +851,7 @@ void do_secure_storage_access(struct pt_regs *regs)
page = phys_to_page(addr);
if (unlikely(!try_get_page(page)))
break;
- rc = arch_make_page_accessible(page);
+ rc = arch_make_page_accessible(page, MAKE_ACCESSIBLE_GENERIC);
put_page(page);
if (rc)
BUG();