Message ID | 20250109173842.1142376-11-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 35A88E77199 for <linux-mm@archiver.kernel.org>; Thu, 9 Jan 2025 17:39:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BD4E96B00A3; Thu, 9 Jan 2025 12:39:57 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B86116B00A4; Thu, 9 Jan 2025 12:39:57 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A27776B00A5; Thu, 9 Jan 2025 12:39:57 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 74FC56B00A3 for <linux-mm@kvack.org>; Thu, 9 Jan 2025 12:39:57 -0500 (EST) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 13B5FC0333 for <linux-mm@kvack.org>; Thu, 9 Jan 2025 17:39:57 +0000 (UTC) X-FDA: 82988626434.10.8009BE8 Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) by imf08.hostedemail.com (Postfix) with ESMTP id 43ECC160021 for <linux-mm@kvack.org>; Thu, 9 Jan 2025 17:39:55 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=collabora.com header.s=zohomail header.b=ECXrcFQi; spf=pass (imf08.hostedemail.com: domain of usama.anjum@collabora.com designates 136.143.188.112 as permitted sender) smtp.mailfrom=usama.anjum@collabora.com; dmarc=pass (policy=none) header.from=collabora.com; arc=pass ("zohomail.com:s=zohoarc:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1736444395; 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=oZBjZaOGgfPGxEQUCi97MIL7c/M2e+noWOX5E6dbvzM=; b=n8s58qlQSYq26h/mDCS4Xe6MkpLQ5SZiQWb1gS73rTIEqjF0bStUtYx9wj55XwCw/0LIxt 5eOkPw6I2vomhpRKVWPk0ffOoMOiLMXRNYJJudTzzqj4AijGl4rWMBn6Z9ePpq3QnD2QdL J5ENcf5kBHA9B0x7ReA2yi9IryYmODI= ARC-Authentication-Results: i=2; imf08.hostedemail.com; dkim=pass header.d=collabora.com header.s=zohomail header.b=ECXrcFQi; spf=pass (imf08.hostedemail.com: domain of usama.anjum@collabora.com designates 136.143.188.112 as permitted sender) smtp.mailfrom=usama.anjum@collabora.com; dmarc=pass (policy=none) header.from=collabora.com; arc=pass ("zohomail.com:s=zohoarc:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1736444395; a=rsa-sha256; cv=pass; b=zN+tmW3iyvG6Vk5Nv4/HQtIHf0rMnztBlX9Mm20avkPaL7ds6UGOj+2dWlZAU0Jcwn0avQ A8Fgcx+EC/7MV02XOziEDUtV0VSeiTDGFozm8u4QFYC+kQvxz+D9Iksf7Ep9WOmrQP8Jhp 0G4anAhB0T5kGuXjEaZwlCDKAxWZHwg= ARC-Seal: i=1; a=rsa-sha256; t=1736444379; cv=none; d=zohomail.com; s=zohoarc; b=OCqbFvX5wfA/TmAgcrBar5XSYD1cadtxE6wTnaXMAPBMpIMVYwwCuO+1+EkABkKnNKHezDywRDydrFPPTkFZVNdIJsbbLg2QUFlAFMNn4enNeX239Mpm/ojDCRMxPjcDO+K7X4AIK8rbyIWGAywlTxGzDH6PuzYvZ6P8bQXpTtw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1736444379; 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=oZBjZaOGgfPGxEQUCi97MIL7c/M2e+noWOX5E6dbvzM=; b=NuH+xeXHYQRy4+zh9AHKOa1kfFon6fejdJuRdRrE9GaEM8hPbENhdhKWMGvZZus+24elDN58igzLqfSdAm5EVMLyG/K/Z5+FVzYBmBJTjvVZ78C2IKHY1rSl2f9G+WtwSmivo6ssVhLFdXY1tRh/TOFn8czNXNvQiZyYoq8anb0= 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=1736444379; 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=oZBjZaOGgfPGxEQUCi97MIL7c/M2e+noWOX5E6dbvzM=; b=ECXrcFQiBiP0/jq8OCFeJldeTj49vd3vcwTY4r3jqUoK0xOPzLuedKBJrXAjENYi 3xcgifqeiKewbARFJtM35wijNH6ioGakR26VK9Zk2b3rvaBlK6wNXRgmhKIEpqsVWYj /ZZ7MlDeq31L3jOeet+bzP7iZ8Eb6+RewjgOU5U8= Received: by mx.zohomail.com with SMTPS id 1736444378245741.8870123024191; Thu, 9 Jan 2025 09:39:38 -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 10/16] selftests/mm: hugepage-vmemmap: fix type mismatch warnings Date: Thu, 9 Jan 2025 22:38:36 +0500 Message-Id: <20250109173842.1142376-11-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-Transfer-Encoding: 8bit X-ZohoMailClient: External X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 43ECC160021 X-Rspam-User: X-Stat-Signature: ce1sm74bn5nfrzk1bft5asrmdqp6cuyg X-HE-Tag: 1736444395-939661 X-HE-Meta: U2FsdGVkX19EjpScDP1j1cBMGTvMIoQZodAPEKBcroTPoi8yK8hbBeE9QlDCOWjexu34264Z2A9IdZ6AZTf+GCCEPCqyhDA7CbNozc/Nyn0rihxfuSZwXZLkFrRZCPspZNKPEAsspq7oeoUTQ/qUcxFfxZD6dcLFmCmhG7QVitZwapvamdZDutA3xmOZkKqpvNrMgItCPuEOwb61RRs6RoMTiYza4wj2/Rjw7TmtbnLzRSj6OaZFyVpQS7yzQHzOTfab45SSJ7td0xO4a8wgazxhTXWSdD3CBqQ6H/IUUZ3FjrZ+pddf8XosQIBxm2gIiIirESPTS5sCuOcKkH0M/3POXa5fRsYG6dM2tiYLM1u1g1wY0ywgleL8G5CSQADdWceQaKiJ0Bi3xZ7lut7/nBExaPVWKedAcnhcrgmEcLBm+PpPN5yj/Sqdrd1cRyvzgQnq6HORHWJZW1TyVg+cdG2CJEaBhQnowIG6Gw/074/tEPk4MJdZSPkUnGw/TPnDwfyZqPNtOCHU1qHpQawRIbtRfp2ubzYYCICk7dFuQrtzaTdZ+kNlHw/3V962axcJ921K56dm6Cow1NMCXihHKnxH+/NqbXH3QKoFUnl4mEec/syZXFpC5b0a+ANhTzsHwxxXteiUJBebyFQAMXmjAiG2+9+qIvpZTKvz6AFZuX8UDsVoc95AuP4DGT5UxWGRQlWO8hOqJHiVJfcKQnV/93B3aOvw4DNyqFBKOACdSFMzN/XdrDsc/XwZ/MFXnnAG1vaoK3SdK9A+z4WWQ6UtWpBJTCdmDB+fJlkzOkwM8SXyqa2XIbC43gNaI92Z+nL4BmeD6yzvGY2+vmHf/Id4CpZ0JT6ZIxcErbnT84VcnYDcpi5J96404psGFP5hwcZ3v9E3gJGeVymNA7iPdlMnMjUlr3Q96W2806vSCp02OcWK3HTEyk14r9gorEmTuhMmwuGfSEqcsf325/WRuYP k2c5jVly nIoGQcJwFsGjSV+OxgQWPL9bhJzCOwfJAELOBt2R4phsOBhbMaqqP4Ljc9utc3ztNH+na6VXlj2JLL4Pzen6Vct0L47kKQNTrNfOBHw0IPvsYLgESzCgCG3HuAL6fAkTCFU2uVg6cdE4kmLVAQhMkekaQWMK2feDlS1EoJeSoU6e29mMsaf9iW9vDKg/vn0HNy/QJ4pBb9oYFxulhCHI6LLeT87/YU4QQJcFA3HV6XS09Y/w2CkkEKoC33/hokhLWf6dKDy/dD0q5K1i62nqMi0+kFt6sW09AQ9+jkhEBTREEqRSv/T8nVh9WFrJDNKNYtYiI X-Bogosity: Ham, tests=bogofilter, spamicity=0.000116, 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/hugepage-vmemmap.c b/tools/testing/selftests/mm/hugepage-vmemmap.c index 23e97e552057d..8d30ebfc9b86c 100644 --- a/tools/testing/selftests/mm/hugepage-vmemmap.c +++ b/tools/testing/selftests/mm/hugepage-vmemmap.c @@ -51,7 +51,8 @@ static unsigned long virt_to_pfn(void *addr) static int check_page_flags(unsigned long pfn) { - int fd, i; + int fd; + unsigned int i; unsigned long pageflags; fd = open("/proc/kpageflags", O_RDONLY);
Fix type mismatch warnings. Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com> --- tools/testing/selftests/mm/hugepage-vmemmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)