From patchwork Thu Jan 9 17:38:34 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muhammad Usama Anjum X-Patchwork-Id: 13933056 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 977F7E77197 for ; Thu, 9 Jan 2025 17:39:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2634B6B00A0; Thu, 9 Jan 2025 12:39:46 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 1C1916B009F; Thu, 9 Jan 2025 12:39:46 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 03BA76B00A0; Thu, 9 Jan 2025 12:39:45 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id C06536B009E for ; Thu, 9 Jan 2025 12:39:45 -0500 (EST) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 7DD75AE174 for ; Thu, 9 Jan 2025 17:39:45 +0000 (UTC) X-FDA: 82988625930.25.831561A Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) by imf10.hostedemail.com (Postfix) with ESMTP id 9E8A5C0003 for ; Thu, 9 Jan 2025 17:39:43 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=collabora.com header.s=zohomail header.b=GEjQc+1q; spf=pass (imf10.hostedemail.com: domain of usama.anjum@collabora.com designates 136.143.188.112 as permitted sender) smtp.mailfrom=usama.anjum@collabora.com; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=pass (policy=none) header.from=collabora.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1736444383; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=whETehW2IwIxAg6V15GnWifjsiCvW0cZ8n4HvvwTvLg=; b=vrFCH+CZbkm/mTnbhvYkFoNfpM1K30BuLiqCK6+GqNqtB9mbtzGkYvU5IAiLuDaGXBQLkl PNyNztQNqHku9fNPVCklAQYcmVaHMCuNFnPg02Ym0Qdu6QNucvNKBLOEeT8wT1M0vPf/0h knAFfaVWMFxUGgYWZnTD99WNnWLA+Ok= ARC-Authentication-Results: i=2; imf10.hostedemail.com; dkim=pass header.d=collabora.com header.s=zohomail header.b=GEjQc+1q; spf=pass (imf10.hostedemail.com: domain of usama.anjum@collabora.com designates 136.143.188.112 as permitted sender) smtp.mailfrom=usama.anjum@collabora.com; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=pass (policy=none) header.from=collabora.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1736444383; a=rsa-sha256; cv=pass; b=WtNsVKgunh37SfnFQw2HIQgTpD8iIEGsVOt3ZCj9K+9vIBiKwTiAyRSkFhwzW7coMhyJlP 23uLuWPHpmdtBH3y9bPt1/t0MXC0gnpkcZLc+vpN/rjs/g6vI6pxX9Z8O1a4fn5d4fadGU rWCbC649jYHEuLWULdn9TlxLW9fwQKU= ARC-Seal: i=1; a=rsa-sha256; t=1736444369; cv=none; d=zohomail.com; s=zohoarc; b=dQCywtZBGitfnS1qwwMPwcZKKj1fcOvWgFyAjsdIOUuQ9DOn70A4XExTpbEyKFV0pZAi1azdlHzgshbb8nqRu0//uMK6R9lUuwGaBC2v1r0SyFsJ6o3ViD8PRcQWHmnQ3cZIxGf2ItfsRUAIuUBMHiYFj/NGE83JaFszncqB/oo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1736444369; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=whETehW2IwIxAg6V15GnWifjsiCvW0cZ8n4HvvwTvLg=; b=MNomiooTbKPn+WmlCmE0PC/5LcShiCufrWplrB0B2zmThdwfttGHYQyEDzth6gUdpFRYT0mku71g6hpYHBh/J/zBsMsZVcd8U/m1roQ852uGKe5xKJR/rTk5NdmbEX88q4i1Dk8ZievNtgAYv1B9xk7iGtGajUpLQUmYb+0DJU8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=usama.anjum@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1736444369; s=zohomail; d=collabora.com; i=usama.anjum@collabora.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=whETehW2IwIxAg6V15GnWifjsiCvW0cZ8n4HvvwTvLg=; b=GEjQc+1qCZ9XenjwXGHFiWjazc7kB1auWHezfrPEIYwjDhXp5wW3Ivn+jWZ6QIk0 P30gaB6q2IBWCRR7EmiaIVhjCjeES7UA23DfDNSl3ya6lDaNIFRh3eeiYa/X5oLc+FB G3ccisZGB5g9LCi7Mo3gBxLPWq2XFAG9sEMFHsAI= Received: by mx.zohomail.com with SMTPS id 1736444367800740.2406611122897; Thu, 9 Jan 2025 09:39:27 -0800 (PST) From: Muhammad Usama Anjum To: Kees Cook , Andy Lutomirski , Will Drewry , Shuah Khan , Andrew Morton , =?utf-8?b?SsOpcsO0bWUgR2xpc3Nl?= , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Muhammad Usama Anjum , kernel@collabora.com Subject: [PATCH 08/16] selftests/mm: guard-pages: Fix type mismatch warnings Date: Thu, 9 Jan 2025 22:38:34 +0500 Message-Id: <20250109173842.1142376-9-usama.anjum@collabora.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250109173842.1142376-1-usama.anjum@collabora.com> References: <20250109173842.1142376-1-usama.anjum@collabora.com> MIME-Version: 1.0 X-ZohoMailClient: External X-Rspamd-Queue-Id: 9E8A5C0003 X-Rspamd-Server: rspam12 X-Stat-Signature: 9xnneho7aqkkshrs8inamoeeqbif46rm X-Rspam-User: X-HE-Tag: 1736444383-710953 X-HE-Meta: U2FsdGVkX1/glrW/jS73+mukzPcxTHbUG1/EKZ++rF4/6+7/24uT1Vq3fZofB/M29vst5U8KlmB+lfwypv+nHjJnieogN4jJx2h+D6IT4JKMq9KIDlHllSFoNs7lTLl9DdNP55aIR/gPP2Q2K3HOa0dMjWDuW0JDBlgWK3wdWW946MgH5XzmNgHU0/Z1rfUUlrDZQRmrHkWvq2EwaGIz+JliI7jb8GMllrcDAYTHnHz11FM9JhvzCx6b9Zk341Rhj24m16GJLubfCtj99WGbu8VU4asZj53a2HsRijLZqa+jDveTokuDEmfTshVXIboOIoaq5C4OBjCp1dpjXXmTjLzT3ONHQZPQ5nqJth3RId8MZzG/i31/i5yPgl7rz+s/qKKJzeVw9dcyDS9U7J6dUQ7qxMeS4PA1AzaUHn2uNKKRBBl7gCJD1CWVuE4iXHkAVM1Qqh396IkeQ5G1nsbDx0lp+RyiXA0UPi3Ul9yDbxb/qbUyy2A4AY3hfOzr1D/hxFFKTegRri35eqXgoOrwlwc5EeMYTGnef79Rz8eVRGQ8Hf00Ubik1EWqwPzDoeK01aSv1pXd6K+cQ9x6vEC4CB9/IEMzHwx/svbmbYYgujxRfju+LkjRoInlaAsKc5c/Dq7JRb03wdpap8tfgH7jfrOg76aWyirJMAY8+skConjyUkrUdPyveLdb3MPRFb+ZpWO6G7cz2IXFD//kLKvp9V2yBFOu1rqHGJSsMVRzq8Mq9sFyufPCwtE3/388esDJLysfoYOqssPHnc0eOjYpmVAJ1xL7LB7ITK+ce4Ubr5Xqz9nstY9xjXnIOet1nhwHDF8WGQoXjgoy/W+vDY/3FakWFDuY3jKMUMjjpEesbykOClcABRvBrwgvlMz423YEtyxLAP6vxdFhnPhUn5s1MRS1zFYWiRccc+Go88zBCxj0OOgojerEg4fHqdw1HMMLHlUrlHr36dMW9EpzGej 0FabNNqd EDnxVkWtJBoaqp5yb+PBrKH2+EgIlz0t9/QMAuuArZC2NzisszP5h6l9R8B9rfoo5/85dmGXheucZ6ORHr6LR9vbf8ahP7Gp+KVAD4qsM97QQu+zPIeEzYHZv1tzLiNcVvghAnSdQsJTMA9OwpBmvmgm2LMFqCyR6Yi+/OuxLqODgNAFJsSAlWq8bwq6ppFUubWjwKm6tyWzynm3IoMegt8YN/rgVvRjovg4V6JlzQwloMzlx5Sa690ilOnJZ5NN7QOBwp8VbcXC2JozGU8gb5gK3LtpbI8fCJWj23poaGV8EYiXPRMRp2fvCgDVG87jhJo+n X-Bogosity: Ham, tests=bogofilter, spamicity=0.000057, 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 type mismatch warnings. Signed-off-by: Muhammad Usama Anjum --- tools/testing/selftests/mm/guard-pages.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/mm/guard-pages.c b/tools/testing/selftests/mm/guard-pages.c index ece37212a8a2e..fc1165ef2015f 100644 --- a/tools/testing/selftests/mm/guard-pages.c +++ b/tools/testing/selftests/mm/guard-pages.c @@ -142,7 +142,7 @@ TEST_F(guard_pages, basic) const unsigned long NUM_PAGES = 10; const unsigned long page_size = self->page_size; char *ptr; - int i; + unsigned int i; ptr = mmap(NULL, NUM_PAGES * page_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); @@ -1044,7 +1044,7 @@ TEST_F(guard_pages, fork_cow) const unsigned long page_size = self->page_size; char *ptr; pid_t pid; - int i; + unsigned int i; /* Map 10 pages. */ ptr = mmap(NULL, 10 * page_size, PROT_READ | PROT_WRITE,