Re: [RFC V3 1/8] mm: Make ptrval_to_str() generally available
Anshuman Khandual <[email protected]>
| Newsgroups | org.kernel.vger.linux-alpha,dev.linux.lists.loongarch,org.infradead.lists.linux-arm-kernel,org.infradead.lists.linux-riscv,org.infradead.lists.linux-snps-arc,org.infradead.lists.linux-um,org.kernel.vger.linux-arch,org.kernel.vger.linux-csky,org.kernel.vger.linux-hexagon,org.kernel.vger.linux-kernel,org.kernel.vger.linux-m68k,org.kernel.vger.linux-mips,org.kernel.vger.linux-openrisc,org.kernel.vger.linux-parisc,org.kernel.vger.linux-s390,org.kernel.vger.linux-sh,org.kernel.vger.sparclinux,org.kvack.linux-mm,org.ozlabs.lists.linuxppc-dev |
|---|---|
| Message-ID | <mc5cbirsrv24mwu4bg35ksxjyzfoydlgewq4tt7uu3ij7f642o@m4w7dm37nmdh> |
On Tue, Aug 18, 2026 at 07:25:07PM +0200, David Hildenbrand (Arm) wrote: > On 8/18/26 06:00, Anshuman Khandual wrote: > > Move ptrval_to_str() inside a header thus making the helper more generally > > available for new users which are being added later. While here, also move > > another related string size macro PTVAL_STR_MAX inside the header as well. > > > > Cc: Andrew Morton <[email protected]> > > Cc: David Hildenbrand <[email protected]> > > Cc: Lorenzo Stoakes <[email protected]> > > Cc: [email protected] > > Cc: [email protected] > > Signed-off-by: Anshuman Khandual <[email protected]> > > --- > > I would have placed that into include/linux/pgtable.h. Any particular reason for > mm_types? Yes - that works as well. These declaration and macros need to be moved inside #ifndef __ASSEMBLY__ block in include/linux/pgtable.h file. Will do the change as suggested while dropping the RFC tag once v7.3-rc1 is released. > > Acked-by: David Hildenbrand (Arm) <[email protected]> > > -- > Cheers, > > David