On Fri, 15 May 2026 17:09:02 +0200 Thorsten Blum <[email protected]> wrote:
> On Fri, May 15, 2026 at 09:45:08AM +0300, Andy Shevchenko wrote: . > How about adding > > #define offset_in_page(p) ((unsigned long)(p) & ~PAGE_MASK) > #define bytes_to_page_end(p) (PAGE_SIZE - offset_in_page(p)) > > to a new header, e.g. include/linux/page_helpers.h? There are about 50+ > direct replacements and possibly more. > Why not put them in vdso/page.h just after PAGE_MASK. -- David

