From patchwork Tue Jan 21 09:57:38 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13946043 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 B33DBC02185 for ; Tue, 21 Jan 2025 09:59:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 42BCD28000A; Tue, 21 Jan 2025 04:59:32 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3DB72280005; Tue, 21 Jan 2025 04:59:32 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 254F628000A; Tue, 21 Jan 2025 04:59:32 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 095A2280005 for ; Tue, 21 Jan 2025 04:59:32 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id AD9DF1A0911 for ; Tue, 21 Jan 2025 09:59:31 +0000 (UTC) X-FDA: 83031011742.05.6EE6DA6 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf28.hostedemail.com (Postfix) with ESMTP id F1395C000F for ; Tue, 21 Jan 2025 09:59:29 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=lO3rwmtK; spf=pass (imf28.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=1737453570; 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=mVhqgsU2xvF7EXptjIpaUTgDXd0zYOHitWWau0YEx3Y=; b=cKPaafR3EDCNsMEWNua0x2oY8twUjOCb/O6sJbW23bkBuodF6mJ855If5XfDfrwvcVg8BT 9NBhFtVqHchf9xYv9nBeIIE+BbAL9JU0Flryq15xa/G54CeYAF/mz+sPYk3m4XhdlbM1u9 bKRUrKJF/9dHLIsFH0cih+OsVF6cMbY= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1737453570; a=rsa-sha256; cv=none; b=Q6Fo/fnhEVHYuG+FhQDL4127gt8qdwNrxxq7W1BC4aKykIpP69Kn2JM+zE3fJgglO9LQob 2/+n2vaG2AQQ4Cf0JocSh1Yrf/sr/4KcxdQBFaB0KraJjnH6YDZsu8GZijTrL5NzIGzXLF zNGVLupTP+P6jyT+UQPoZe/a6VzDjgs= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=lO3rwmtK; spf=pass (imf28.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 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id AEF3D5C48A3; Tue, 21 Jan 2025 09:58:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 653E5C4CEE3; Tue, 21 Jan 2025 09:59:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1737453568; bh=4TvuKJvEyJTpjYu41+xgE0YbwjdhXodJecvgvQg8Q9g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lO3rwmtKdjvSyOTkukuBYX/Kdfyf9ugRWHUvmt5sFPUPJJKND4k1Tfj4UvoLYIsdV oMnnlIybnBcPJwyP7hLurwTy1FLO7xU5YCGVEO4Z9YNxa+A+ivvZR7sHrg0llrLDLo zHUHAR4TwpX+KvSBv9cOcBh0SRHwfc9WH1EqHO/ASARkmR+neVEbRiV3a+OWzFyv+l DQOMpeYbBHK4xkv86LMQM8yPr/9hrKuU0W9li6HW/W91RunXsLhWHt9O/DhA7s1odH VV4Eh8wESQ4/3qjlQGGAmyrDuIfg102fTw3gngm4/Pzu406yb9upTxzi6m79TptDtR IiWq4ZvvCndmA== 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 09/10] module: drop unused module_writable_address() Date: Tue, 21 Jan 2025 11:57:38 +0200 Message-ID: <20250121095739.986006-10-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-Rspamd-Queue-Id: F1395C000F X-Stat-Signature: zicoo8h5xzkp1tos6m58cci69hw43h37 X-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PbAwz1A0UWRwODPrsVH0BKzXtri9LmyjyRAOcQcroEHAjz5bfBXRUWs1EC0b5F41NJjv2KXs/7Ap33aH8NcomtNY+UNM26UldjOCQ2uJjqGwNBVUTQTjGezueORs6NNAgvGp5xZOD/rQY7SbzdonZMBaMEDYcxwnptCufvcqGeI7lLxL4Kb/RV5o3J34HUSeQLGCvX8FxRKWfK2GhP1s+Bsk3eFiDHV1Ptp8AgyLAlFCH/RpiGKlPOv0Hggqm2hwtYsjk 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)" module_writable_address() is unused and can be removed. Signed-off-by: Mike Rapoport (Microsoft) --- include/linux/module.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/include/linux/module.h b/include/linux/module.h index e9fc9d1fa476..222099bb07cf 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -774,11 +774,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) @@ -886,11 +881,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