Message ID | 20250126074733.1384926-3-rppt@kernel.org (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 1AD38C0218E for <linux-mm@archiver.kernel.org>; Sun, 26 Jan 2025 07:48:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A64FA2800EC; Sun, 26 Jan 2025 02:48:16 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A15602800E8; Sun, 26 Jan 2025 02:48:16 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8DCE42800EC; Sun, 26 Jan 2025 02:48:16 -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 6F75F2800E8 for <linux-mm@kvack.org>; Sun, 26 Jan 2025 02:48:16 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id E5AF71203EE for <linux-mm@kvack.org>; Sun, 26 Jan 2025 07:48:15 +0000 (UTC) X-FDA: 83048824950.05.6BFD91B Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf29.hostedemail.com (Postfix) with ESMTP id 5B526120009 for <linux-mm@kvack.org>; Sun, 26 Jan 2025 07:48:14 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Ip3YgJ3Y; spf=pass (imf29.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1737877694; 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=o8y2keeQB8RXjY3NnFcA50WtxK7BtdqDwwiKfTV9gWdFsx5aKHGvCLpI+1KiYcPerlSlnS m8hl5Gz08r3RccdwvTm0a9n0/Yhnex9Exd3Pi9vcIuvE8A4aNGVA6mypiwRpHsYKgRypcu yjLrXIwyaqzok8xoLuo/KhYxbFZ9qls= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Ip3YgJ3Y; spf=pass (imf29.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1737877694; a=rsa-sha256; cv=none; b=zu1K5pHxdYF9CcAf4Q/3LP2juUw5859jrHMl+dCtji2+zFNyHRuChYulYDDfIq8a2Z8riN kxCE59tibGrYwFLMyDsFnIdCIPS/wgO8qSGBaKxMuwQ0lHaj9AMyrDx15MHrFAmRzmYlwh 1tByifJ15GI3ZJHIeThKwoC+G0N31ms= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 30E485C5C75; Sun, 26 Jan 2025 07:47:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62EF0C4CED3; Sun, 26 Jan 2025 07:48:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1737877693; bh=UnbrmexawgONPYMAXBvIF3DzXjQu5/b5KeCmUo86HRs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ip3YgJ3YSP9SXdUh/kxhiQVdDs3WVvuBouH5X89T+VIIo6TzzE7FCt0gM5JJ90qdB qFokyCnFrMLuusz7d73gejhGjtpaGSOXriTKI4BIE1yBpNhZEiDufYAcmk+Bny0+pi mka5HQUFLD61qPJQ38dTyd3ZKji3uDer4OdT9bFadlUYLCQs+5YalQ3gY2xBjNUrYT hZa97zbHTVoKXZmQKChwE4mHoQs3pRngNrmPu2jrkNiOIXVi1uwbrn+txO4g/aUq6L gISj+VrDa5T7aQN4aew1n4foLfwHD83fvLl/TKDYXV703XcKmVLgmgNS/HPpngfLaF tGV4//yCmaeKQ== From: Mike Rapoport <rppt@kernel.org> To: x86@kernel.org Cc: Andrew Morton <akpm@linux-foundation.org>, Andy Lutomirski <luto@kernel.org>, Anton Ivanov <anton.ivanov@cambridgegreys.com>, Borislav Petkov <bp@alien8.de>, Brendan Higgins <brendan.higgins@linux.dev>, Daniel Gomez <da.gomez@samsung.com>, Daniel Thompson <danielt@kernel.org>, Dave Hansen <dave.hansen@linux.intel.com>, David Gow <davidgow@google.com>, Douglas Anderson <dianders@chromium.org>, Ingo Molnar <mingo@redhat.com>, Jason Wessel <jason.wessel@windriver.com>, Jiri Kosina <jikos@kernel.org>, Joe Lawrence <joe.lawrence@redhat.com>, Johannes Berg <johannes@sipsolutions.net>, Josh Poimboeuf <jpoimboe@kernel.org>, "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>, Lorenzo Stoakes <lorenzo.stoakes@oracle.com>, Luis Chamberlain <mcgrof@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Masami Hiramatsu <mhiramat@kernel.org>, Mike Rapoport <rppt@kernel.org>, Miroslav Benes <mbenes@suse.cz>, "H. Peter Anvin" <hpa@zytor.com>, Peter Zijlstra <peterz@infradead.org>, Petr Mladek <pmladek@suse.com>, Petr Pavlu <petr.pavlu@suse.com>, Rae Moar <rmoar@google.com>, Richard Weinberger <richard@nod.at>, Sami Tolvanen <samitolvanen@google.com>, Shuah Khan <shuah@kernel.org>, Song Liu <song@kernel.org>, Steven Rostedt <rostedt@goodmis.org>, Thomas Gleixner <tglx@linutronix.de>, 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 v3 2/9] x86/mm/pat: drop duplicate variable in cpa_flush() Date: Sun, 26 Jan 2025 09:47:26 +0200 Message-ID: <20250126074733.1384926-3-rppt@kernel.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250126074733.1384926-1-rppt@kernel.org> References: <20250126074733.1384926-1-rppt@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 5B526120009 X-Stat-Signature: hsa597t4me9dux89ux6aexz4yano4rkw X-Rspam-User: X-HE-Tag: 1737877694-667290 X-HE-Meta: U2FsdGVkX18Be6E4ssF5rWi5df8JtM2SC7KPWhC0tapKS/CAk+BM/pPzFLyhZCN41ayoygTLImWZ5xyDbbeQjTVDR413P6FhBfHsF11ilm2iiKgN11eAieuGN1Akzg8g4dLEcAh70Ag+cUX3NO8c9vrUSTKWk3ppb0WcwvQmUSwuYZy2hEyrKYhgCOYko+fyDnMcD0j789ZKjk4Sjq0V6r6godJQCWpFg+QIzQhIXVoEvsBVhdua8cyrMFY0/ecsh7tGp5E4bQx1QAnfrUcgC0LN0ww7DLLgSkMGPhrr4Oc8mJROKOffjp+05SLJGJPtStOhDlevMrTfN4KX+9ZWImr/5g0XNxipUUhWG9c+QjIcaoq7ZQtBt8BmoOIfwZFi18NHQSIM3oyVT5D4m2oWC+6MUtoayLKQeu03EaR1f0G9WZfRNQVDq0+4cauPYMneM4ZK9yOOOLa+XO8ELCNsInDpAWmq6UCJJcjqrsuRr3CMv6PHxw/b7jIYg41Hio4CyKwxTIvmofw+zaMNqt5cPPnoQQ5gA+Fee4bCkDrLsCipBFsIOISeYCGVHrsUWa7R6+CE6hyh8gU6cQ9dsqn0kEPeP9srbNZc0lrSeSGh4Vp2pP2RvN4QSGrVtzBpcy3ojU2+2BFpthzYdkx1KVT0kWBIsLKdPa9VHZGWZYSpZCreGbdJuMlStBruBJNiupXfpGhfO9nx/OotQqETZigalPsG7ch/URgyZaTzkHGzoVwGKVnTMJ4LWY5bX3rKe25wRdkhr1RVC2Rw9WH1QR3ughkDVvUqq9Yqp0Vo53wDg3buML3TgQ2b8bEKi/xiiDc3oLssIgD0ZfoosaVT0/gSRfKw5Ig7SuTPleM4bs/xJmJxsUhGbJG9BGHfq9tvDnzYVsVSuLJMpdKWlj4Y6wWa+9ORLy8w16+18GTgKQehjgotzYOHTeH7n6dxwd5uj+/9Z9fYWCQCfARAzuXf+XK UilWRpw2 2YSI/4wtFSXK4TTKptE3p2Jzla7GeWn9dTSN4Yy001BhNTbO0V7BYYvA8AaN5b4sG9rNUVW3pAWu3dnugk0BKB1DIAqWGp/iJ3sd1bw6nKFR9vm/MKNULLdHqJc4rNEbSrIKNxfSkPG5D6dvjgaQJ6yOjWolQ7dC2ve7W6CvBg9pR7rkTdR+rOv6WAJHn3FXrfoUIyQq3PC9tGWbdjHk42AsohVTcmBzapszSANyjUt2KeBdKmd38VB4gnqZ1ltivuNE7ZIa7XCaa1sYs/qqBX8PlSF4UW9HN8AY+ 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
x86/module: rework ROX cache to avoid writable copy
|
expand
|
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);