From patchwork Tue Jan 21 09:57:31 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13946011 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 E7D8EC02185 for ; Tue, 21 Jan 2025 09:58:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7D317280002; Tue, 21 Jan 2025 04:58:22 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7AA68280001; Tue, 21 Jan 2025 04:58:22 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 69840280002; Tue, 21 Jan 2025 04:58:22 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 4BD79280001 for ; Tue, 21 Jan 2025 04:58:22 -0500 (EST) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 030791608BE for ; Tue, 21 Jan 2025 09:58:21 +0000 (UTC) X-FDA: 83031008844.14.CE38693 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf05.hostedemail.com (Postfix) with ESMTP id 6BC82100003 for ; Tue, 21 Jan 2025 09:58:20 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=ocKHZO3s; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf05.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1737453500; a=rsa-sha256; cv=none; b=w1J46NF7vZ7Fi85BdnmCpvrAM5GdlBiNXk5yQum9zpnAqs2+gTuKoX/gWQP/rNaNb3Imxk SG3blcku2IH4oHTAss1QD37h6tYB2EL9jzdOuq+XWlMgBS2AEa0qK1XR9ukno9fUwKkhnG 06C9PnLcGfywZdce91H/cVjNRhngOiM= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=ocKHZO3s; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf05.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1737453500; 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=1vYutUlTp3JX+hNbxqRR2ioYt+s65i5HZVu0KwP9iP0=; b=K5PZOQlzxovelV3WD9GnxPYGHth4C9RnnbFkbsX+ZqSRxFnOKZoqme9RqpjaSTEp+00GAL AXBvYlJSeUj4f+aL/fb29atDidvpluuvQKSC1SsXtm+hOwM+N1/18pbUcEGNaGVO45+Vgj Fcs1E0aqTvB0aBN+o/8z8RqZmq35v8U= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id CC9965C4B84; Tue, 21 Jan 2025 09:57:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F832C4CEE8; Tue, 21 Jan 2025 09:58:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1737453499; bh=UnbrmexawgONPYMAXBvIF3DzXjQu5/b5KeCmUo86HRs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ocKHZO3s2nYKgIMYKCvY2VaNS7oHl41C7lwHUgZWmzrlKfcRqfeTPH/2oE+oKfDNH OrSjhn2wPOxotZh6XLFFH17DIMwJ77K637m8eOjgbObsKGTjWkqw/cqXJw4Vq+f9hj V4HuHpNq551E1vMq/WQW9h9FYHP/xB5Ajio1yFAaO05tC1TioOjYhY7G+6x7nKWPNM fxSG+eDu9zMUA4r3QGknOIc5jkTG+uvW/rxok6BPl3uzLgpGf8p3kIlfkj9yr37vwe +LYxJAiKLEMuZdBZrOSm0cVUW1OUlMURK1CzBV8RsDKsDUXSJG2hpy7Pg4p/hTvJ/3 kpozfaZkrYHxg== From: Mike Rapoport To: x86@kernel.org Cc: Andrew Morton , Andy Lutomirski , Anton Ivanov , Borislav Petkov , Brendan Higgins , Daniel Gomez , Daniel Thompson , Dave Hansen , David Gow , Douglas Anderson , Ingo Molnar , Jason Wessel , Jiri Kosina , Joe Lawrence , Johannes Berg , Josh Poimboeuf , "Kirill A. Shutemov" , Lorenzo Stoakes , Luis Chamberlain , Mark Rutland , Masami Hiramatsu , Mike Rapoport , Miroslav Benes , "H. Peter Anvin" , Peter Zijlstra , Petr Mladek , Petr Pavlu , Rae Moar , Richard Weinberger , Sami Tolvanen , Shuah Khan , Song Liu , Steven Rostedt , Thomas Gleixner , kgdb-bugreport@lists.sourceforge.net, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-um@lists.infradead.org, live-patching@vger.kernel.org Subject: [PATCH v2 02/10] x86/mm/pat: drop duplicate variable in cpa_flush() Date: Tue, 21 Jan 2025 11:57:31 +0200 Message-ID: <20250121095739.986006-3-rppt@kernel.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250121095739.986006-1-rppt@kernel.org> References: <20250121095739.986006-1-rppt@kernel.org> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 6BC82100003 X-Stat-Signature: 5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LXvP3cEBllULm9JIVlfMRqNItF+cikR/mDRUGtmyqlDjJHoErEHHZiN5djwphfuqGqLbxHQt+dnqJaOmB47L3NQqy2ZaMFnJGanTR0iVhtmyGG089ANblholJX9L2KSHnXtez6ewBmYIs02mF8zHdICAAelnobQP3qesibrGzysDBT1KljeZs0Tvq4ZijQQxSXob55ucieEmQMPOBWrCT0//hOSnrTa6T6pzNYYOPwV X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: "Mike Rapoport (Microsoft)" There is a 'struct cpa_data *data' parameter in cpa_flush() that is assigned to a local 'struct cpa_data *cpa' variable. Rename the parameter from 'data' to 'cpa' and drop declaration of the local 'cpa' variable. Signed-off-by: Mike Rapoport (Microsoft) --- arch/x86/mm/pat/set_memory.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/mm/pat/set_memory.c b/arch/x86/mm/pat/set_memory.c index 95bc50a8541c..d43b919b11ae 100644 --- a/arch/x86/mm/pat/set_memory.c +++ b/arch/x86/mm/pat/set_memory.c @@ -396,9 +396,8 @@ static void __cpa_flush_tlb(void *data) flush_tlb_one_kernel(fix_addr(__cpa_addr(cpa, i))); } -static void cpa_flush(struct cpa_data *data, int cache) +static void cpa_flush(struct cpa_data *cpa, int cache) { - struct cpa_data *cpa = data; unsigned int i; BUG_ON(irqs_disabled() && !early_boot_irqs_disabled);