From patchwork Thu Jan 11 08:20:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Muhammad Usama Anjum X-Patchwork-Id: 13516867 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D15CC4707B for ; Thu, 11 Jan 2024 08:20:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8226E8D0005; Thu, 11 Jan 2024 03:20:40 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7D38C8D0001; Thu, 11 Jan 2024 03:20:40 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 699BB8D0005; Thu, 11 Jan 2024 03:20:40 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 564D88D0001 for ; Thu, 11 Jan 2024 03:20:40 -0500 (EST) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 20FAAC03AE for ; Thu, 11 Jan 2024 08:20:40 +0000 (UTC) X-FDA: 81666333840.19.D49A614 Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) by imf06.hostedemail.com (Postfix) with ESMTP id 6BBD518001B for ; Thu, 11 Jan 2024 08:20:38 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=collabora.com header.s=mail header.b=4QZg8gxL; dmarc=pass (policy=quarantine) header.from=collabora.com; spf=pass (imf06.hostedemail.com: domain of usama.anjum@collabora.com designates 46.235.227.194 as permitted sender) smtp.mailfrom=usama.anjum@collabora.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1704961238; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=CjZQ5jxdXgwy5T/cbXbPUxaOwXohrQ1Dqx3moj5dPKU=; b=EG+h5b+3UNMIAFbv+g7r6MJtZV7MA+PcEi5imcUqJQQO36Nr8mzMfTZ17io7/3jly1jQ32 CRZ/uC3Fs4wb0gt1fAPLWzXF9TGk22PM8KLF7RQiEjrfzNPSfOlm4TntiLUERJSubXpKQN aikQRVl8lBvuEkWGXuP13R8esKkyzZ0= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=collabora.com header.s=mail header.b=4QZg8gxL; dmarc=pass (policy=quarantine) header.from=collabora.com; spf=pass (imf06.hostedemail.com: domain of usama.anjum@collabora.com designates 46.235.227.194 as permitted sender) smtp.mailfrom=usama.anjum@collabora.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1704961238; a=rsa-sha256; cv=none; b=0GUz2TDvLiivzua+IsnhN+guiDCEnZ74/j031U9GZZg9incAdcWjKpIg9tHo89gJ/MXPZV rkYMVlg7APw9vKfQR4nD7wxMTh8RIOqQ7cFVU2nhe65Mt50Vx6afGZxlbD33jT+tJVK6fe lOOJHEhTb5d6lCssv9awoX2e42npcpM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1704961236; bh=+QT1qADhN3aElSdApBfVVCCL+syggMVKAodbmRy0hY4=; h=From:To:Cc:Subject:Date:From; b=4QZg8gxL+JFstU+vyMO5eplxQfKU549dclXgTi1cHfIgtDefRmcl+7qw5uF41OviO wpkC9o/TF0PWgQLoZqz1BR7kSzR8ZzPCCgRTRajhJeEfH3MY14oytlJBYPNIijQ4N3 23gfkESjaQTj1DG1LQrBxEbtZwqtWpxZpGGif1NqOHqPF3HCQOcVx1LiT44VS8eLGQ 2hoJlT5hSFc7UBpNquoRJshxnO135R3HdpqGocGh0K7tuHJi0/3lnN29fgtxEIa3wg /hkHvQtVAlMpao5tXZQGaBXIP+edzE1LpZO6VLbOHKOP64gFa3FzJ4OkRJ0T9cPPiy L9DB6WwuXL0xA== Received: from localhost.localdomain (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 0D5363781492; Thu, 11 Jan 2024 08:20:33 +0000 (UTC) From: Muhammad Usama Anjum To: Andrew Morton , Shuah Khan , "Joel Fernandes (Google)" , Lorenzo Stoakes Cc: Muhammad Usama Anjum , kernel@collabora.com, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] selftests/mm: mremap_test: fix build warning Date: Thu, 11 Jan 2024 13:20:38 +0500 Message-ID: <20240111082039.3398848-1-usama.anjum@collabora.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Rspamd-Queue-Id: 6BBD518001B X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: skairpt4nb8x7z55dbysja1m7i4zgiai X-HE-Tag: 1704961238-732863 X-HE-Meta: U2FsdGVkX18GGztxjO93QK61XNHciBK6PPGxDQmYUdQYpGOzcidXzvkv4+IAEYDiCs2Yefjj9pMs7l9h++2OPy6Zsp/0vurRJIVKul+udFSwG1oNyGDh3jCt8WiuA3NdO4/w6bYAwRQla3bh1OIsxdAXXIC8gYkpXj0lxoUG3a+2nHb1SZgdMnlzy6FGbpEDsQGxG86PKpQzhAkwWLDbhePP1AcqQqnzn4bz2M73bgtPRPrCphvG8sofR/i9TsYma3I5nq8eb925H/tJPuZ54FInPxQQmu7/c6ERl4FXDOAHUuJu2YlXfjnQ1CAyCyi+HJrD3hg6P5BjYZq4cs2mnlPTWUpPCjYg0cC2zUusP/Q4rzxKbH3LEo7ZE1Aw6mKUdbGK0VQ39qUmY2vxwLViXzlI+B2RFRFoUbWb1o2LpcLym0DXueNcN4Ry6EiVzdGE5VyxbK+K4roZ9QmNxDkYN9FIbj/O8FxeR9pp5JKovL0yPpCZnrk9OIhJ8216+lY1au8jHlwM0XywISNksbh7LSDLZFuNKDknh1GxzwDYTe0EBrxDSTEBsTWEfT3+CmftptVQtnp8OlDp4YZh6H98Bo9KeqV/3w8UVgCXlGdACp8+5zRp3bU2M1nu11d58Ztr/SlC9smF9mGmbk7lICvjp/i+rWPZjQj+SYaLrPlZ9xVKHWv0eJQu5IHggJQEi3TZYCfduyVkeoEIQnqVQ1UAPCqsvLZuUcOoj3QfZYwiYGauEtYcztwBdOGGWegu4g/0WN+JDRjkI5sJhyOO1CVZWHutRXqC0sA8dD69Am54xUkhRwXUGmjdClnMY4o9CU3y9IgrWZDgBJOBWSAtvA6rRsRqb8udBpkB79NbnkbxBM7Fhp4tW+5fDHNZD5nEBH3fpOC7lTmd01cHJbIsme2e0aB5KbGeYQdMnVLaLjv45UtZGqiVSKnYRoGbFuKUQG0FJk3UlCd8UVHQpLnBtHJ bHYMr2yQ irjIWTjZ4CNTAQXUgpGGTJuF0GZL+D3TakDGkTA5EkX6g0wrz42HasLMt+KFXYN+4R8Y+jpDeKQz/+9Tt1OZdQBnz+c3ie48OOQ9xbrApn2DN7fTbVjmHhZKM8hciroVYQ6kGGSnFQ/2EMf105ecbgYoyORKRxJ+7oJieSpWXFh2UpUqahZTC8KHHuOmnQzCjvU8B6ZlaDBlJ67W1WYvMgDnK3DIOs3up+64MOFUa3F97+WpiL61crK1HOKIkrkAcq4aogY5xdubf+bJe4haIDND4sRE65lgPcjt/J96hfcHz0N4lKOthZ2yQwA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Fix following build warning: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ Fixes: a4cb3b243343 ("selftests: mm: add a test for remapping to area immediately after existing mapping") Signed-off-by: Muhammad Usama Anjum --- tools/testing/selftests/mm/mremap_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/mm/mremap_test.c b/tools/testing/selftests/mm/mremap_test.c index 1d4c1589c305..dd1cbb068982 100644 --- a/tools/testing/selftests/mm/mremap_test.c +++ b/tools/testing/selftests/mm/mremap_test.c @@ -457,7 +457,7 @@ static long long remap_region(struct config c, unsigned int threshold_mb, char c = (char) rand(); if (((char *) dest_preamble_addr)[i] != c) { - ksft_print_msg("Preamble data after remap doesn't match at offset %d\n", + ksft_print_msg("Preamble data after remap doesn't match at offset %llu\n", i); ksft_print_msg("Expected: %#x\t Got: %#x\n", c & 0xff, ((char *) dest_preamble_addr)[i] & 0xff);