Re: [PATCH v2 04/32] mm/pgtable: allow pte_offset_map[_lock]() to fail

From: Matthew Wilcox
Date: Fri Jul 28 2023 - 10:06:30 EST


On Fri, Jul 28, 2023 at 09:53:29PM +0800, Yongqin Liu wrote:
> Hi, Hugh
>
> It seems this change makes pte_offset_map_lock not possible to be
> called in out of tree modules,
> otherwise it will report error like this:
> ERROR: modpost: "__pte_offset_map_lock"
> [../omap-modules/android-mainline/pvr/pvrsrvkm.ko] undefined!
>
> Not sure if you have any idea about it, and any suggestions on how to
> resolve it?

Please explain why this module needs to map page tables