On 09/07/2018 08:01 AM, Thomas Gleixner wrote:
> +static inline pgprot_t static_protections(pgprot_t prot, unsigned long
> address,
> + unsigned long pfn)
> +{
> + pgprotval_t forbidden;
> +
> + /* Operate on the virtual address */
> + forbidden =
static_protections() is pretty unreadable. Split it up into separate checks
for each protection area.
Signed-off-by: Thomas Gleixner
---
arch/x86/mm/pageattr.c | 159 +
1 file changed, 95 insertions(+), 64 deletions(-)
--- a/arch/x86/mm/pageattr.
2 matches
Mail list logo