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: 187232 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp1302873dyi; Thu, 11 Jan 2024 00:24:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IHhwJbPHebKD4DZdbqacCeXUX1okMbvyE/+mLbXCy/Ng25WXEFafbu+BVqEGQn5wuxUWy7J X-Received: by 2002:aa7:8457:0:b0:6da:5505:1329 with SMTP id r23-20020aa78457000000b006da55051329mr741815pfn.34.1704961474741; Thu, 11 Jan 2024 00:24:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704961474; cv=none; d=google.com; s=arc-20160816; b=CCkil3oWliyUAbi9HvckzDeOHjkavBA1htFMFMOsaVdd45SQiW0K+dGUdkqTigxdPk uI46HhTaYAWLSpAScq+m6eIt3ioMcuMl75zmev9hccCDAH5h0T5To9JkU29qaRq98pge Z6FBvQ+xt9d+5VnAnABL5D9ziJcbghhOPwfds7gCyL+Z50gARiUGeu41O34uUeEowndf Axs+FNQcYu+achua/xtY5+9aZDIY1xo7MM0TGmfQi3kvzxqiYHCGY1aM5G/jMlfokG12 5+0fKrJCQL/nxvVibkPT59ZViEunwa6d4lcqWO+qVo+zVEGILwVrnkT4XqdRA9sObqtE U7/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=CjZQ5jxdXgwy5T/cbXbPUxaOwXohrQ1Dqx3moj5dPKU=; fh=k5L2LUyhJCu8KGwTGKt38tLjctZn3Wq7HuLySfvQIJA=; b=wWSsKT8lXHDzUaeaQgzq2hpYmzRxfccrrahCaEXTatoxUL7FuULJ8qGWmYF0J2iXBM +dENynnELkQBYDrKAwAMmDUjO0vmyVFrHQtZXjXnMzvZoRdifqCXnm2cxFO7Q/U6tqYp /kNq6cm09A0f0cQhOzf85AWawv1Klj0bJMKtK0Jj77jiSChCRdW2bAJ1odxao0/upLA4 xDlwNN7Xc+Kk37faMfrVZZ4dc1mVFYWNQYQ3QRTkXIoVJjrMqpKdSjZOb1ylTkjadGF6 gkZLrEZ1kfDkm0rkDVjEmFXLbkGoGa+WduQdI1f3fQYZ5YsBREmDevnVC/U42YWoPrnm FybQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=4QZg8gxL; spf=pass (google.com: domain of linux-kernel+bounces-23212-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23212-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y22-20020a056a00181600b006d8ec0156ebsi585841pfa.3.2024.01.11.00.24.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 00:24:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23212-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=4QZg8gxL; spf=pass (google.com: domain of linux-kernel+bounces-23212-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23212-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2D825283F8B for ; Thu, 11 Jan 2024 08:23:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3202314F83; Thu, 11 Jan 2024 08:20:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="4QZg8gxL" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CFC2714F65; Thu, 11 Jan 2024 08:20:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787781683624565655 X-GMAIL-MSGID: 1787781683624565655 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);