Re: [PATCH 2/9] mm: make hw_pte_t visible to generic PTE interfaces
Muhammad Usama Anjum <[email protected]>
| Newsgroups | gmane.comp.freedesktop.xorg.drivers.intel,gmane.linux.kernel,gmane.comp.video.dri.devel,gmane.linux.ports.parisc,gmane.comp.emulators.xen.devel,gmane.linux.kernel.mm,gmane.linux.file-systems,gmane.linux.kernel.cross-arch,gmane.linux.kernel.bpf,gmane.linux.kernel.perf.user |
|---|---|
| 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