From patchwork Mon Dec 9 18:56:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muhammad Usama Anjum X-Patchwork-Id: 13900228 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 DAB37E7717D for ; Mon, 9 Dec 2024 18:56:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 415518D009F; Mon, 9 Dec 2024 13:56:39 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 379848D0058; Mon, 9 Dec 2024 13:56:39 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1F4608D009F; Mon, 9 Dec 2024 13:56:39 -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 F25CA8D0058 for ; Mon, 9 Dec 2024 13:56:38 -0500 (EST) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id B8CDB1C67FB for ; Mon, 9 Dec 2024 18:56:38 +0000 (UTC) X-FDA: 82876325994.27.EB8BD6F Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) by imf24.hostedemail.com (Postfix) with ESMTP id 5F6F7180015 for ; Mon, 9 Dec 2024 18:56:34 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=collabora.com header.s=zohomail header.b=DG61zZ0m; dmarc=pass (policy=none) header.from=collabora.com; 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") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1733770587; 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:references:dkim-signature; bh=pIQAAr0s4V5rZOCAZkw1ZbSm94i/7OwYX+Tmg9oB6yg=; b=vU0asEh/GsIoEp4s8Ec7JQM5KSdoKLaPfCMjKKLusxi8ee9PrxWFrSpLdPN2So0jEAs3w5 B+/6z1iDR4zAZ5eWUQEUfFJuLdZUzWxx79TbJ0E6BfsYJdlVAKslM2Fe4oirxTgyoJOBPY I/a279bTr+7sDz/thj2FadmxvbQ24dk= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1733770587; a=rsa-sha256; cv=pass; b=ZasaShq97beAhdHNEzmHDDpmKmUUvHNiDjLDe7MuC43msy1wBfyYlXmyZPvw3b7Q/gd7Dr 9KNiEkRN0XqS5Ymjp2DPCzcotgkSMFsMcH/t25SBOpuyyhDuUjKdv1N9dTLsqgOKeCeTgD PuHmqVERGJAWpLWZAIqua2fPu1xQo5U= ARC-Authentication-Results: i=2; imf24.hostedemail.com; dkim=pass header.d=collabora.com header.s=zohomail header.b=DG61zZ0m; dmarc=pass (policy=none) header.from=collabora.com; 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") ARC-Seal: i=1; a=rsa-sha256; t=1733770584; cv=none; d=zohomail.com; s=zohoarc; b=lGR4lGg787LeCSb+a+4PddHWEHv2zFMMHFlbksCcUjXWRnuPerxXr7iOs/vSEFW61U7odDtOyx5J+8Job3TLUcYE+997VQS2PjZhleDcNATm5bMB6+2zneU6gp22G/THGiASVl7Dc6mJJTNr1D6qfs2O+I7U6pvS9qsEtEHIg4I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1733770584; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=pIQAAr0s4V5rZOCAZkw1ZbSm94i/7OwYX+Tmg9oB6yg=; b=hH+cl/oZ5G3zw2o5NjjCJDWk5z+nW51r6VdD6QMOp1/H/fWL296Sfz4gnTRh8kS0jXwSa9dDxdGi673dt6bIvZFpo1+9V2OgV2RLg1smMdXNOtQjrOhqzKO2ntsLXDay/lhFnf8YqBjkf1LMI7E8Ely0ZoPgCoKdu/wFQAcUxHM= 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=1733770584; 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:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=pIQAAr0s4V5rZOCAZkw1ZbSm94i/7OwYX+Tmg9oB6yg=; b=DG61zZ0masTRH6n5IEZILsuzC1K6VYo0JddyqbcrciKP+iGwsBLKLF1wA2UqnaBy f70p48eFeXnK3gjDxnGNL34itv+Sy/PcsQpjR7KshRk3ffJrIMDO8vtaQ92/g9TGGkb l256lAqniVacapeKD08Dcgg3v3NzUdhm52Dm3h7A= Received: by mx.zohomail.com with SMTPS id 1733770582328336.33983168763575; Mon, 9 Dec 2024 10:56:22 -0800 (PST) From: Muhammad Usama Anjum To: Andrew Morton , Shuah Khan , Ryan Roberts , David Hildenbrand , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Muhammad Usama Anjum , kernel@collabora.com Subject: [PATCH 0/4] selftest/mm: Remove warnings found by adding compiler flags Date: Mon, 9 Dec 2024 23:56:20 +0500 Message-Id: <20241209185624.2245158-1-usama.anjum@collabora.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-ZohoMailClient: External X-Stat-Signature: f83dgpo5caft6i3urhfhdedfqsdj6bja X-Rspamd-Queue-Id: 5F6F7180015 X-Rspam-User: X-Rspamd-Server: rspam01 X-HE-Tag: 1733770594-810302 X-HE-Meta: U2FsdGVkX1/JWbgf6CHcFwwUdoUysUm8TSEjV7UgIEayXpTIbyn8DZvPFOqw8rtqJUb89zt6XthEUo2lDAfJHQcYM96BJXGz4UEa4nDfij2mxd0PZhAVW3sUVdEsoomv6RYEJDTdGaM+7bkxg/r5DCABX0+LTNoHW4lLldUCY14npq3J6M5ch+9CPQPEX7Y55gmMn6RRZPMCOEnvKN8oiFehgHdP/gbp4SiaywkVZ66AzM30T4tDRGmWN5QLiRYwjsxYr2L49NDDZAxiZ6NEP76g51HITmXFxdmNx+dLZVYv6bflMtEewzEUytfHU1olQWvpAE0VPYdVZYk8AxTonGL3gQBUnWi9tn3LTvr0AoAFUmTlKLRsVUJMUJEPBlvEMOeQaTg+hWPfn0Hu98Ff1zByVmvVrGdHFH4qJe0rf/HDNDqZ8xE4JiSiM2Bbw4AVnbpcqBoy/Ig8r0w0u65TtWIlWTIbiAXe3QicNByYZtUbbEjChJ31C+TkmPrg26gaK2IF5mJMbzfycyypyXp94FQrl7xsJxQVcT+SXW5CYmk8sPAt7t2Z2CvEkMI8cjXuRNVG4Pxq3MdLDlc5pW6o1MbypP8H/JfEqHPY81rNXyK9Qb1LtSijYlOZvMOPDoWrH21e6icAzwvN0J/z6WkxVjrS6Au3NtCoIsZXHfuVIFAmx/T2dDi/Ndv4JsNN0X+uNarYzhdCMKFhUHsjB4wZf1IHlcpTXWjP/5qGI+uIirsXXJyZAbAZHg4/JgsN5iTqgiD2vpDptxAbPTPx8t6/psarbIBchr1eWPGpv7LfJvA9QSlNWdqKxrD4JSs5lZGg8Bn7Uw6XKc447Zb9qY40KpG3subFvsmmkabnDGsj+03plEyfu7zs1Eoeawr1THBgYQ44bwUF/kJC0rvgFvS9wr1BXNmPHDpCPvmxCt0ebzRjqDDdxRhZLJKr48O4SkkEVc18mUVi9I+zF2DjL7L SpgXXWn9 FKD5gIQYHTcxZbL52jPcFAK0DQ0ZjsnLH7y1hQoXtc486gz8IO4k8E0RoHgRiNLnQv3g5Dq4fvfIZqtr2cD6TBlWM45q2D1Qw70Q8W7Jk/TymEzdEQqQU20mEE9pKOfuPVcyD0bQqtVkYFlxAfkML5A5X08ed+T7Jl+6pio8qczfa4KOMd+/UlRNl74MEOBNkVJA1U/ha88+nP8G7g/VYF7JuYTibrGuI9sJvXNg/zm6aJ5P6EjgAbV235Ds/4s5SXD/A X-Bogosity: Ham, tests=bogofilter, spamicity=0.002283, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Recently, I reviewed a patch on the mm/kselftest mailing list about a test which had obvious type mismatch fix in it. It was strange why that wasn't caught during development and when patch was accepted. This led me to discover that those extra compiler options to catch these warnings aren't being used. When I added them, I found tens of warnings in just mm suite. In this series, I'm fixing those warnings in a few files. More fixes would be sent later. Muhammad Usama Anjum (4): selftests/mm: thp_settings: remove const from return type selftests/mm: pagemap_ioctl: Fix types mismatches shown by compiler options selftests/mm: mseal_test: remove unused variables selftests/mm: mremap_test: Remove unused variable and type mismatches tools/testing/selftests/mm/mremap_test.c | 15 +-- tools/testing/selftests/mm/mseal_test.c | 8 +- tools/testing/selftests/mm/pagemap_ioctl.c | 108 +++++++++++---------- tools/testing/selftests/mm/thp_settings.c | 4 +- tools/testing/selftests/mm/thp_settings.h | 4 +- tools/testing/selftests/mm/vm_util.c | 2 +- 6 files changed, 75 insertions(+), 66 deletions(-)