Re: [PATCH] mm: use pgprot_val to get value of pgprot

From: Kefeng Wang
Date: Tue Apr 26 2022 - 01:39:24 EST

On 2022/4/25 21:48, liusongtang wrote:
OK, Shall I add "Suggested-by: Kefeng Wang <>" to these patches?

It is unnecessary ;)

On 2022/4/25 18:40, Kefeng Wang wrote:

On 2022/4/25 18:29, Anshuman Khandual wrote:
Should have added 'memory_hotplug' in the subject line. Otherwise
this does not specify where the change is (neither does the commit
message below).

mm/memory_hotplug: use pgprot_val to get value of pgprot

$ git grep "pgprot\.pgprot"
arch/ia64/mm/init.c:    if (WARN_ON_ONCE(params->pgprot.pgprot != PAGE_KERNEL.pgprot))
arch/s390/mm/init.c:    if (WARN_ON_ONCE(params->pgprot.pgprot != PAGE_KERNEL.pgprot))
arch/sh/mm/init.c:      if (WARN_ON_ONCE(params->pgprot.pgprot != PAGE_KERNEL.pgprot))
mm/memory_hotplug.c:    if (WARN_ON_ONCE(!params->pgprot.pgprot))

You can change other's codes too.