]> git.dujemihanovic.xyz Git - linux.git/commit
selftests: mm: fix some build warnings
authorMuhammad Usama Anjum <usama.anjum@collabora.com>
Fri, 3 Nov 2023 18:23:42 +0000 (23:23 +0500)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 15 Nov 2023 23:30:08 +0000 (15:30 -0800)
commit9297e5360c3bd777f95d5146dbeda7fb9ba4273a
treeb7d28f5bb554653ab638ed8f3e4087d3d26b5877
parent019b277b680f5b95135c042c78dd79318d8f9e3c
selftests: mm: fix some build warnings

Fix build warnings:
pagemap_ioctl.c:1154:38: warning: format `%s' expects a matching `char *' argument [-Wformat=]
pagemap_ioctl.c:1162:51: warning: format `%ld' expects argument of type `long int', but argument 2 has type `int' [-Wformat=]
pagemap_ioctl.c:1192:51: warning: format `%ld' expects argument of type `long int', but argument 2 has type `int' [-Wformat=]
pagemap_ioctl.c:1600:51: warning: format `%ld' expects argument of type `long int', but argument 2 has type `int' [-Wformat=]
pagemap_ioctl.c:1628:51: warning: format `%ld' expects argument of type `long int', but argument 2 has type `int' [-Wformat=]

Link: https://lkml.kernel.org/r/20231103182343.2874015-2-usama.anjum@collabora.com
Fixes: 46fd75d4a3c9 ("selftests: mm: add pagemap ioctl tests")
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/pagemap_ioctl.c