Message ID | 20250109173842.1142376-10-usama.anjum@collabora.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 DD811E77197 for <linux-mm@archiver.kernel.org>; Thu, 9 Jan 2025 17:39:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6CCE96B00A1; Thu, 9 Jan 2025 12:39:51 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 67B126B00A2; Thu, 9 Jan 2025 12:39:51 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4F5FD6B00A3; Thu, 9 Jan 2025 12:39:51 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 2F7136B00A1 for <linux-mm@kvack.org>; Thu, 9 Jan 2025 12:39:51 -0500 (EST) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id C92A1802A3 for <linux-mm@kvack.org>; Thu, 9 Jan 2025 17:39:50 +0000 (UTC) X-FDA: 82988626140.10.FD44B0C Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) by imf24.hostedemail.com (Postfix) with ESMTP id E03AF18000C for <linux-mm@kvack.org>; Thu, 9 Jan 2025 17:39:48 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=collabora.com header.s=zohomail header.b=SGRjUb+y; spf=pass (imf24.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=1736444389; 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:in-reply-to:references:references:dkim-signature; bh=sNEn0+DKZ9Qi4hSYGXnwr6Bzx8uRu60xvq6lQUh7sU0=; b=T7Rhp9xe7bPl7HeUZNASW4KT/kFm9c4C31NM/1qVoEWZUQhhtiU0bWVO5zN6x8xbm96qiq t6LhK7Fh5mo3wRkIlCBp+TlHQOE606FLDTyvzajPeh02r4JZ4wJ4rRNJJUK3BK0HtWxwLc FJ7x327IUC+qd9Ce+HQpvbFs99Ke9Cc= ARC-Authentication-Results: i=2; imf24.hostedemail.com; dkim=pass header.d=collabora.com header.s=zohomail header.b=SGRjUb+y; spf=pass (imf24.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=1736444389; a=rsa-sha256; cv=pass; b=6qM6pURA0VG1DiS68c9r28EPqahcxbG83oiXVrIpkaQNZv2LVDfyevc3pj2MTcE6mh+UoP prLEbelhE91CAdQM9ycmmuU67lY1SBVCxrBIEtm5+N0t7ALz9Xrg5jSsi4S4QilUIx6EXj oivLXzu12TlvX44MnQ2kYuHV+F187qo= ARC-Seal: i=1; a=rsa-sha256; t=1736444375; cv=none; d=zohomail.com; s=zohoarc; b=gCeZlQSBxYxbEofSHyuBmGhzyA3rtzfkyJCo4CBUSewzwXIKBHHWuNlBNtKEo4hcWWDL3aPPdBgjfswYXrGh+Vpg0ilyRmaFA14cICnowljxLE8VS3Xvh8oxvy/QDov97Y6x90/xvXt35VAzugCa7rxPMC3k0NuaZUByza+nfY0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1736444375; h=Content-Type: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=sNEn0+DKZ9Qi4hSYGXnwr6Bzx8uRu60xvq6lQUh7sU0=; b=kCBh6gBGSAHSrbZ2Ruf6BNKiskGvBVcUyLkauabrNsRRKFwwLnnKbzV7zQQvmEWPxsKaATTLOjG41kyoy7g/ZhoC3lW2U/UCyuj4tS15jDCajgVcJ0Vfnx5Ci/Cn0LpxpooFTkcDKQBOcWcUEOiT2jPPSIrbMA6uCfOrHmxQpJs= 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=<usama.anjum@collabora.com> DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1736444375; 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-Type:Content-Transfer-Encoding:Reply-To; bh=sNEn0+DKZ9Qi4hSYGXnwr6Bzx8uRu60xvq6lQUh7sU0=; b=SGRjUb+yhYnaImCJ1G16kHv9uZN4IhywMM8RR0XaD6Q4mcm8Vga2Wm0qA+M86o+d R7+jHZaD7zK1kj/bMiOnNONnDcV6c5RSpT4N+gJmpuM5CKMzuRytfUKiya/2Waxssm9 etc1MM2baE5Qp3O3p5mJHDj2MIxMN/fFQtCTVAtg= Received: by mx.zohomail.com with SMTPS id 1736444373227676.4020326211726; Thu, 9 Jan 2025 09:39:33 -0800 (PST) From: Muhammad Usama Anjum <usama.anjum@collabora.com> To: Kees Cook <kees@kernel.org>, Andy Lutomirski <luto@amacapital.net>, Will Drewry <wad@chromium.org>, Shuah Khan <shuah@kernel.org>, Andrew Morton <akpm@linux-foundation.org>, =?utf-8?b?SsOpcsO0bWUgR2xpc3Nl?= <jglisse@redhat.com>, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Muhammad Usama Anjum <usama.anjum@collabora.com>, kernel@collabora.com Subject: [PATCH 09/16] selftests/mm: hugetlb-madvise: fix type mismatch issues Date: Thu, 9 Jan 2025 22:38:35 +0500 Message-Id: <20250109173842.1142376-10-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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ZohoMailClient: External X-Rspamd-Queue-Id: E03AF18000C X-Stat-Signature: ed4in9e97ci7qs4iscqbmxyp4zpneqgo X-Rspam-User: X-Rspamd-Server: rspam11 X-HE-Tag: 1736444388-514527 X-HE-Meta: U2FsdGVkX1/4VNvrwBFm+7NJlZ36Ue9w0LfxGmV2NijNjoU8EPZcfmP1Ve+Zj7e1SxpWmfWiuqI77bL2U8btHtaQsMRzu0M7lAVqe/i9J7y+KzqGn28oCn7b4EC3TgWGjKGQY6jg72VXVFfmBhwvJ/c3kxi/be+BDE623PaqBn6+okgQ7Mzp1mjiadoRRMUWCnbah8pDu2uXdQqPacLBpSz+eSuoMCWEs+Ty8wHaCHnB7r/LjLi1RZM7UN+75wbeJJaQNzvBYKpsvSrjqAGNZuh6/Wzjq1y90otewtaUfISvlUpiPXxAkUPS/oBa0JaChB2fRt/7yEd02X57Ezz1HmMhCgb7xvXYqEV1Hh0/KeJH9bngaMwz+b+en3giFIYf6JNuYeej8Dd2uy/LMTWnFAz0Sw34GDnfbQeO0UgTDx3fmH4Iu/dLw4c2NCs5PnqGROuHjsWfuB9kIZ2brWqdet4Hdz4hdAtY8g8irwO6jUV0L73Ja5dV9DoA6WgKdeXRHWHzWpfeslVbnRFzCk1Pp4pfsQ+kvZCKFQwD8GX3O4xzswhACwqgloUzB7cxM0ANDGqaOtdK/+DotA/1rTwCmjWpCFFvTrI9a6VtAzGR/Mzgob1TPuCHFDXAvJWohorZkXvQkEST4yNi2rnXEDA+Rl0hz3yKWMkW1X92bcHEs0rgldt8kQvaCNvTp9RKfEc4npNFaG+03vxVwzudeGjvY4GzSt0Iez3RUlsAD2ERBTwOHuFlVvmmHHMw8CPPteOO8dAjjtZT+A/MdW+qa0mqZ12pjNUG1j3TMOIyozDj33xTTn3i2JeGMwpnhuOBGIU0meBlBgHn7FdObfbEQ3IWN9Mu+t39uEZS1HfHXrsSGw7PbhbsvOwGT03m2zDFCSralgSQ9FF+6Zdg7Xf/F1m9dukqho0wFrGzHnodUIWCX+5I4yg+7crLKu4EHe3JEliP8PcWSKK8NVhZtOB8cTr 7NTVK/Ai J3NQ3crl5BB1o5dl4XeenmHy+BUz5BDVIL/o7xwViN/Tkq/SxCF4UaMSY2Q0F2XcOUGFavyD/wA0g9TyxWGlQzy7Tqp2ueWlz4FMrNaiM76I0/VaBK/4KtrgDtoSgwdSsmGUJ3PwTdManaZ6yC+C/KGuWDBMUTycowZarRC4FfM31IiR4vwsvkMNAyFy12iIkDooDpzFMlUCQuxBt5wEMXdLgJwuVGvy3XhoTS03PdXtpbj0uzCQE6PlVODDguTCwz+Jj+R7xZUiQ+9OTnzQfwUm5keGbel/mdqPjyttmtINzxtCyAVxGhkh5lxgIxTuOT7hrYfinJXWhI1penRlOePqXTCvFwYZOTsPmRPAxtM25amM= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000632, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
selftest/mm: Remove warnings found by adding compiler flags
|
expand
|
diff --git a/tools/testing/selftests/mm/hugetlb-madvise.c b/tools/testing/selftests/mm/hugetlb-madvise.c index 43f16c12c8e9a..8f527084858d0 100644 --- a/tools/testing/selftests/mm/hugetlb-madvise.c +++ b/tools/testing/selftests/mm/hugetlb-madvise.c @@ -26,7 +26,7 @@ #define validate_free_pages(exp_free) \ do { \ - int fhp = get_free_hugepages(); \ + unsigned int fhp = get_free_hugepages(); \ if (fhp != (exp_free)) { \ printf("Unexpected number of free huge " \ "pages line %d\n", __LINE__); \
Fix type mismatch warnings: hugetlb-madvise.c:30:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 30 | if (fhp != (exp_free)) { \ | ^~ hugetlb-madvise.c:114:9: note: in expansion of macro ‘validate_free_pages’ 114 | validate_free_pages(free_hugepages - NR_HUGE_PAGES); | ^~~~~~~~~~~~~~~~~~~ Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com> --- tools/testing/selftests/mm/hugetlb-madvise.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)