Re: [PATCH v6 2/6] tools/lib/mm: add shared file helpers
Mike Rapoport <[email protected]> Tue, 4 Aug 2026 12:23:24 +0300
| Newsgroups | gmane.linux.kernel,gmane.linux.kernel.mm,gmane.linux.documentation |
|---|---|
| Message-ID | <[email protected]> |
Hi Sarthak, On Tue, Aug 04, 2026 at 12:13:06PM +0530, Sarthak Sharma wrote: > Hi Mike! > > On 8/3/26 2:30 PM, Mike Rapoport wrote: > >> Move read_file(), write_file(), read_num(), and write_num() out of > >> tools/testing/selftests/mm/vm_util.c into a new shared helper under > >> tools/lib/mm/. > >> > >> @@ -187,8 +188,8 @@ TEST_FILES += write_hugetlb_memory.sh > >> > >> include ../lib.mk > >> > >> -$(TEST_GEN_PROGS): vm_util.c hugepage_settings.c > >> -$(TEST_GEN_FILES): vm_util.c hugepage_settings.c > >> +$(TEST_GEN_PROGS): vm_util.c hugepage_settings.c $(top_srcdir)/tools/lib/mm/file_utils.c > >> +$(TEST_GEN_FILES): vm_util.c hugepage_settings.c $(top_srcdir)/tools/lib/mm/file_utils.c > > > > I was too lazy to change the Makefile, but we should do something to > > compile those once and link to every TEST_PROG that uses them. > > Yes, we can do that. But since this is preexisting, let's keep it > separate from this series. I can send a patch for this separately. Would > that be okay? Works for me :) -- Sincerely yours, Mike.