Re: [PATCH 2/9] mm: make hw_pte_t visible to generic PTE interfaces
Muhammad Usama Anjum <[email protected]>
| Newsgroups | org.kernel.vger.linux-arch,dev.linux.lists.damon,org.freedesktop.lists.dri-devel,org.freedesktop.lists.intel-gfx,org.kernel.vger.bpf,org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-parisc,org.kernel.vger.linux-perf-users,org.kernel.vger.linux-trace-kernel,org.kvack.linux-mm,org.xenproject.lists.xen-devel |
|---|---|
| Message-ID | <[email protected]> |
On 11/08/2026 12:25 pm, Muhammad Usama Anjum wrote: > On 11/08/2026 11:15 am, Anshuman Khandual wrote: >> On Thu, Aug 06, 2026 at 09:38:40AM +0100, Muhammad Usama Anjum wrote: >>> Later conversions use hw_pte_t in page-table checking, generic page-table >>> helpers, and vmalloc interfaces. Include linux/pgtable_types.h from the >>> headers that declare those interfaces before changing their types. >>> >>> For vmalloc.h, replace the direct asm/page.h include with >>> linux/pgtable_types.h. The latter includes asm/page.h, so pgprot_t remains >>> available. It also provides either the default alias or the opted-in >>> hw_pte_t wrapper. >> >> Stand-alone header file updates are not ideal. Why cannot these changes be >> folded in, where hw_pte_t gets used first time ever in the above mentioned >> places. > That's correct. This patch should be merged with the 3/9 patch. But that patch > is already too much big as it was generated with the help of Coccinelle. So I > kept it separate. > > Do you still think we should merge it as its a special case? Sorry, I wanted to mention merging this patch and 4/9 patch (instead of 3/9 patch) in my previous email. Thanks, Usama