Re: [PATCH v6 2/6] tools/lib/mm: add shared file helpers
Sarthak Sharma <[email protected]> Tue, 4 Aug 2026 12:13:06 +0530
| Newsgroups | gmane.linux.documentation,gmane.linux.kernel.mm,gmane.linux.kernel |
|---|---|
| Message-ID | <[email protected]> |
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?