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: 13946004 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 27EE51E32D4; Tue, 21 Jan 2025 09:58:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737453499; cv=none; b=keogIRXzGDax7JJVyJqvJ/OpTPWpIpi+hNDN3joMi9Dv5/EqSxvSU2I2Yy7vOU+wPmfsZTJhMTqeDPWj577m5rz6ffm1VfStC6YkwJy5kroLimOnbhJwXHkrVfk937VnwOKSHv2Pv8zJshnv4jCMQSYGNtVvGF058rOcrY4tyc4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737453499; c=relaxed/simple; bh=UnbrmexawgONPYMAXBvIF3DzXjQu5/b5KeCmUo86HRs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nA7bJx/XdGhfmztGvBnc10nqT9pmf4U46jihsFU6I12l1OiCK36g25rJkuhjyzkWeH0vDsFyd507JKq0QkTQ7tY4njNr7Wxxz005D9Fx1RVnqZKmmNgQU3RQaA60nmLyLXLjjTxzuMruB3TEiWxWn60ZOgQ376yQYrhKu0B+BW8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ocKHZO3s; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ocKHZO3s" 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> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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);