On Tue, Sep 22, 2026 at 06:12:31PM +0100, Muhammad Usama Anjum wrote: > Generic page-table interfaces use pte_t * for both pointers to PTE table > storage and pointers to software PTE values. Convert the generic > declarations and their MM, fs, and kernel users together so parameters, > return types, callbacks, and local pointers that designate table storage > use hw_pte_t *. > > Include linux/pgtable_types.h from headers that expose the converted > interfaces. It continues to provide pgprot_t to vmalloc.h through > asm/page.h. > > Keep software PTE values as pte_t and retain pte_t * for value interfaces. > > No architecture selects ARCH_HAS_HW_PTE_T at this point, so hw_pte_t > remains an alias of pte_t and this changes the interface vocabulary without > changing representation or behavior. > > Most of this mechanical conversion was generated with the Coccinelle script > included in the cover letter. The script deliberately ignores pte_t *
Just wondering - should this Coccinelle script that converted all these instances be saved inside ./scripts/coccinelle/ for future referene.
