Message ID | 20250126074733.1384926-9-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 E3E62C0218D for <linux-mm@archiver.kernel.org>; Sun, 26 Jan 2025 07:49:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7CE4D2800F2; Sun, 26 Jan 2025 02:49:17 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7A52C2800E8; Sun, 26 Jan 2025 02:49:17 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6940A2800F2; Sun, 26 Jan 2025 02:49:17 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 4C86B2800E8 for <linux-mm@kvack.org>; Sun, 26 Jan 2025 02:49:17 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 09BB2813C5 for <linux-mm@kvack.org>; Sun, 26 Jan 2025 07:49:17 +0000 (UTC) X-FDA: 83048827554.09.F9DD2C6 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf19.hostedemail.com (Postfix) with ESMTP id 687CF1A0005 for <linux-mm@kvack.org>; Sun, 26 Jan 2025 07:49:15 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=WptzH7Yd; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf19.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=1737877755; a=rsa-sha256; cv=none; b=oW3IFvE7OiWa1UTFcK2DE8j+3OLPa+FTESJf2TJozxlmgqq+krseziEGfXa8jp+BeIyMlU hQEHZZUB6n/4Ndhtz+zx9vvs5YjLYqM9rjqSJqns6JmOBLmoGbdi/xrgHTw6dhWI8d0w/U 4e7MMYIqcTW/c+bgMxil18h5nugabrY= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=WptzH7Yd; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf19.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=1737877755; 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=SXKx4LPXiF70wUws9XsZRFp3yakIdcF2/aoPSR49yGo=; b=Fmvj/M9lQApnCXTy/F+ydDkzDTRb+c3kOTi0Af2nQ9ebPrBlK4uFSlWo02k98nYUC4JeVQ x8iw50Qtk+Z4urlVs4l6L0OhdVcdqzgLRg/J4Ehwa5osZlHPi0I4Eq0y9AcRQqUyhaXitA JEKWheQ67S4kkoeJcgToxPZlrJKQzTc= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 7C71A5C56D4; Sun, 26 Jan 2025 07:48:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6817C4CEE4; Sun, 26 Jan 2025 07:49:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1737877754; bh=ojukvsVbrsOautblNhkpoP7wuqi3ozWbxIf3p0+h6f0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WptzH7YdSogdAkUSZLvcqplIdwp+MBY+laOzNuHQ78GWRSBBOknbXpAk7uYSnJrMz wp2yZtsEj4Ft7cNz7tQlCeN1KsCLqDz9mqnl+TnipPcoTYtEO+sXiQJQboHjiChfNL vA3aEX4vPp8wpDbDReIBYoQLGzjtwfHwBMvGsAAMDNHt03hVTP8VPftd6hLurGej+P AsbRuca4pr2+C6v3mt4e73OWtBqd80b+EHsrPFjsLsq4grSJSpFTAnEyDf77cnhJcr sx71WcZSLvCbmLvRIC86nvUK0DVK2x50qb/+CGX6umGCycAkK1HmtBx/EyszcSrn67 bHDc6aXclkXIg== 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 8/9] module: drop unused module_writable_address() Date: Sun, 26 Jan 2025 09:47:32 +0200 Message-ID: <20250126074733.1384926-9-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: rspam04 X-Rspamd-Queue-Id: 687CF1A0005 X-Stat-Signature: a3zi35e3n8tesw7ewf8qny3mwam7wdj4 X-Rspam-User: X-HE-Tag: 1737877755-265394 X-HE-Meta: U2FsdGVkX18mysaYwll8LZJXIrUVSz3I5sNXGX0OPS5ia3uyP00FeSJ+AfAFWI3KxpZX0GAu0toyFdSVVFjBwCcxk0Uigi8a4EQUSs0+TVfRNj8X2S9XwHZXWSe9mb6GNAPGldTULMQCEcrT0/vgjjf3g3zss/JkPwdY7CFegQ4lbAGnNxfF2BtMwuWOcVT1omN/6BO2ImYREu4y1w+RwT3RXYDDW6HTMFYnNcw/aor/xxD+MMcW7j8i+BB+Dhc43oeDRb16X+tGgb/fXqn+0zEnHwUWZzMKZFadH4FBL6wZrMbog+GnNYFLr6Oql9NccA+vDc/j27zrtYiEN9tgyb6QnRqfRmFFhBU0L+9TjBqi7II7LX1PnyW3Xd9KKPP54ZAeY4nsMsH+5OSPtdjynnlNBv3DHAWwb8Zxok+ErHVo/fmp6NVvwnE/kp9lulouJ3KU1+d20NsV4LrnO1ZLp4TDHvt3uQMkKg9PS1xc4VtasRqoF3Y1Kyn7Pbqxyg4vnrB4NyP6dBirKkSO1nRczOB9MyFZD1rWdCZtMJ7vmkRT4ltBdqV1P9chT95RUg75HloI7RudR51+c6xYTc4TQcYa3p77CfXT0SsnMdplFPB3TKmM2RTIdNENQayzQfLEg3ikokhBJSuO3p6/S4bUyAcmyfnUgcJWLsvTb84VKFUu76TKe7LhGU9ps2fPYvGDeeecZSGuAxRwDPaRcnGouAAn8LaS33od8nbA4+PEEXiwV0FfTVuuVRmAX6LXeY4YVGd/L0RwUK2AiBRQ889I+XKwY8dUn/GvRANsTvCHXPbkRcfjHY3qwjeXoO+Kvzl2lGvSIyge2F8Gg6bAjX9qiOiHjxskLeYJu+bessglBLia07YpVacLLsMHuhF+UlAn0FB/BAVJs+nnkMnLmSe5imifuzc3Sv5CTLc7caKko4hXwdXLTcBuLD5Xo5Vq90dy3WxKKIjQF1lBaH3R7cd c3nBKAmD 5mvuKqjfZiO2KV2DrHfgYL0WbrKBO4IZzLuJQNa6Flj+QRpviClPvsJmzAqW3mu/acg07yMkJgfbJxPJN6cBMd2kVS71cbXF5VZNcUPwrPmjKhQ4DwUuykw1UYlQ4P8LpB4CcAK9wHI9P/zYphKS9I/h7GzfmKYM6Hj2XRqGsirTji0weyao+ZuR5KcvvPiIpUEkuzyOuJuBc3LOBE/hu/xDnEr/fFk2y9/wZs6ZH/vdl0//XCYrRqOMZg3g83cwRsP8HQkD1rxbfs81Su8DbxxcYfh9/A4mn2g1O 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/include/linux/module.h b/include/linux/module.h index 6a24e9395cb2..d2cf30be10cc 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -768,11 +768,6 @@ static inline bool is_livepatch_module(struct module *mod) void set_module_sig_enforced(void); -static inline void *module_writable_address(struct module *mod, void *loc) -{ - return loc; -} - #else /* !CONFIG_MODULES... */ static inline struct module *__module_address(unsigned long addr) @@ -880,11 +875,6 @@ static inline bool module_is_coming(struct module *mod) { return false; } - -static inline void *module_writable_address(struct module *mod, void *loc) -{ - return loc; -} #endif /* CONFIG_MODULES */ #ifdef CONFIG_SYSFS