tools/mm: fix compile error[ Upstream commit a39326767c55c00c7c313333404cbcb502cce8fe ]Add a missing semicolon.Link: https://lkml.kernel.org/r/20241112171655.1662670-1-motiejus@jakstys.ltFixes
tools/mm: fix compile error[ Upstream commit a39326767c55c00c7c313333404cbcb502cce8fe ]Add a missing semicolon.Link: https://lkml.kernel.org/r/20241112171655.1662670-1-motiejus@jakstys.ltFixes: ece5897e5a10 ("tools/mm: -Werror fixes in page-types/slabinfo")Signed-off-by: Motiejus JakÅ`tys <motiejus@jakstys.lt>Closes: https://github.com/NixOS/nixpkgs/issues/355369Reviewed-by: SeongJae Park <sj@kernel.org>Reviewed-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>Acked-by: Oleksandr Natalenko <oleksandr@natalenko.name>Cc: Wladislav Wiebe <wladislav.kw@gmail.com>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>Signed-off-by: Sasha Levin <sashal@kernel.org>
show more ...
tools/mm: -Werror fixes in page-types/slabinfocommit ece5897e5a10fcd56a317e32f2dc7219f366a5a8 upstream.Commit e6d2c436ff693 ("tools/mm: allow users to provide additionalcflags/ldflags") passes n
tools/mm: -Werror fixes in page-types/slabinfocommit ece5897e5a10fcd56a317e32f2dc7219f366a5a8 upstream.Commit e6d2c436ff693 ("tools/mm: allow users to provide additionalcflags/ldflags") passes now CFLAGS to Makefile. With this, build systemswith default -Werror enabled found:slabinfo.c:1300:25: error: ignoring return value of 'chdir'declared with attribute 'warn_unused_result' [-Werror=unused-result] chdir(".."); ^~~~~~~~~~~page-types.c:397:35: error: format '%lu' expects argument of type'long unsigned int', but argument 2 has type 'uint64_t'{aka 'long long unsigned int'} [-Werror=format=] printf("%lu\t", mapcnt0); ~~^ ~~~~~~~..Fix page-types by using PRIu64 for uint64_t prints and check in slabinfofor return code on chdir("..").Link: https://lkml.kernel.org/r/c1ceb507-94bc-461c-934d-c19b77edd825@gmail.comFixes: e6d2c436ff69 ("tools/mm: allow users to provide additional cflags/ldflags")Signed-off-by: Wladislav Wiebe <wladislav.kw@gmail.com>Cc: Vlastimil Babka <vbabka@suse.cz>Cc: Herton R. Krzesinski <herton@redhat.com>Cc: <stable@vger.kernel.org>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/mm: fix undefined reference to pthread_onceCommit 97d5f2e9ee12 ("tools api fs: More thread safety for globalfilesystem variables") introduces pthread_once, so the libpthreadshould be added
tools/mm: fix undefined reference to pthread_onceCommit 97d5f2e9ee12 ("tools api fs: More thread safety for globalfilesystem variables") introduces pthread_once, so the libpthreadshould be added at link time, or we'll meet the following compileerror when 'make -C tools/mm': gcc -Wall -Wextra -I../lib/ -o page-types page-types.c ../lib/api/libapi.a ~/linux/tools/lib/api/fs/fs.c:146: undefined reference to `pthread_once' ~/linux/tools/lib/api/fs/fs.c:147: undefined reference to `pthread_once' ~/linux/tools/lib/api/fs/fs.c:148: undefined reference to `pthread_once' ~/linux/tools/lib/api/fs/fs.c:149: undefined reference to `pthread_once' ~/linux/tools/lib/api/fs/fs.c:150: undefined reference to `pthread_once' /usr/bin/ld: ../lib/api/libapi.a(libapi-in.o):~/linux/tools/lib/api/fs/fs.c:151: more undefined references to `pthread_once' follow collect2: error: ld returned 1 exit status make: *** [Makefile:22: page-types] Error 1Link: https://lkml.kernel.org/r/20230831034205.2376653-1-xiexiuqi@huaweicloud.comFixes: 97d5f2e9ee12 ("tools api fs: More thread safety for global filesystem variables")Signed-off-by: Xie XiuQi <xiexiuqi@huawei.com>Acked-by: Ian Rogers <irogers@google.com>Cc: Matthew Wilcox <willy@infradead.org>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Merge tag 'slab-for-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slabPull slab updates from Vlastimil Babka: "The main change is naturally the SLOB removal. Since its deprecation
Merge tag 'slab-for-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slabPull slab updates from Vlastimil Babka: "The main change is naturally the SLOB removal. Since its deprecation in 6.2 I've seen no complaints so hopefully SLUB_(TINY) works well for everyone and we can proceed. Besides the code cleanup, the main immediate benefit will be allowing kfree() family of function to work on kmem_cache_alloc() objects, which was incompatible with SLOB. This includes kfree_rcu() which had no kmem_cache_free_rcu() counterpart yet and now it shouldn't be necessary anymore. Besides that, there are several small code and comment improvements from Thomas, Thorsten and Vernon"* tag 'slab-for-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab: mm/slab: document kfree() as allowed for kmem_cache_alloc() objects mm/slob: remove slob.c mm/slab: remove CONFIG_SLOB code from slab common code mm, pagemap: remove SLOB and SLQB from comments and documentation mm, page_flags: remove PG_slob_free mm/slob: remove CONFIG_SLOB mm/slub: fix help comment of SLUB_DEBUG mm: slub: make kobj_type structure constant slab: Adjust comment after refactoring of gfp.h
tools/mm/page_owner_sort.c: fix TGID output when cull=tg is usedWhen using cull option with 'tg' flag, the fprintf is using pid insteadof tgid. It should use tgid instead.Link: https://lkml.kern
tools/mm/page_owner_sort.c: fix TGID output when cull=tg is usedWhen using cull option with 'tg' flag, the fprintf is using pid insteadof tgid. It should use tgid instead.Link: https://lkml.kernel.org/r/20230411034929.2071501-1-steve_chou@pesi.com.twFixes: 9c8a0a8e599f4a ("tools/vm/page_owner_sort.c: support for user-defined culling rules")Signed-off-by: Steve Chou <steve_chou@pesi.com.tw>Cc: Jiajian Ye <yejiajian2018@email.szu.edu.cn>Cc: <stable@vger.kernel.org>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm, page_flags: remove PG_slob_freeWith SLOB removed we no longer need the PG_slob_free alias forPG_private. Also update tools/mm/page-types.Signed-off-by: Vlastimil Babka <vbabka@suse.cz>Acked
mm, page_flags: remove PG_slob_freeWith SLOB removed we no longer need the PG_slob_free alias forPG_private. Also update tools/mm/page-types.Signed-off-by: Vlastimil Babka <vbabka@suse.cz>Acked-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>Acked-by: Lorenzo Stoakes <lstoakes@gmail.com>Acked-by: Mike Rapoport (IBM) <rppt@kernel.org>
tools/mm: allow users to provide additional cflags/ldflagsRight now there is no way to provide additional cflags/ldflags whenbuilding tools/vm binaries. And using eg. make CFLAGS=<options> will
tools/mm: allow users to provide additional cflags/ldflagsRight now there is no way to provide additional cflags/ldflags whenbuilding tools/vm binaries. And using eg. make CFLAGS=<options> willoverride the CFLAGS being set in the Makefile, making the build fail sinceit requires the include of the ../lib dir (for libapi).This change then allows you to specify:CFLAGS=<options> LDFLAGS=<options> make V=1 -C tools/vmAnd the options will be correctly appended as can be seen from themake output.Link: https://lkml.kernel.org/r/20230116224921.4106324-1-herton@redhat.comSigned-off-by: Herton R. Krzesinski <herton@redhat.com>Cc: Don Zickus <dzickus@redhat.com>Cc: Justin Forbes <jforbes@redhat.com>Cc: Vlastimil Babka <vbabka@suse.cz>Cc: Scott Weaver <scweaver@redhat.com>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/vm: rename tools/vm to tools/mmRename tools/vm to tools/mm for being more consistent with the code anddocumentation directories, and won't be confused with virtual machines.Link: https://l
tools/vm: rename tools/vm to tools/mmRename tools/vm to tools/mm for being more consistent with the code anddocumentation directories, and won't be confused with virtual machines.Link: https://lkml.kernel.org/r/20230103180754.129637-4-sj@kernel.orgSigned-off-by: SeongJae Park <sj@kernel.org>Cc: Jonathan Corbet <corbet@lwn.net>Cc: Shuah Khan <shuah@kernel.org>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>