Re: [PATCH V3 1/2] mm/mmap: Restrict generic protection_map[] array visibility
From: Christoph Hellwig
Date: Mon Jun 20 2022 - 01:55:54 EST
On Mon, Jun 20, 2022 at 10:15:31AM +0530, Anshuman Khandual wrote:
> +extern pgprot_t protection_map[16];
externs in .c files are never a good idea. I'd rather add a helper
function toadd pgprot_encrypted to protection_map to pgprot.c.