From patchwork Fri Dec 27 07:28:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13921590 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 50068E77191 for ; Fri, 27 Dec 2024 07:30:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E1A346B009D; Fri, 27 Dec 2024 02:30:10 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DCA8F6B009E; Fri, 27 Dec 2024 02:30:10 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C6C7C6B009F; Fri, 27 Dec 2024 02:30:10 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id A5BB86B009D for ; Fri, 27 Dec 2024 02:30:10 -0500 (EST) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 67DD3A135F for ; Fri, 27 Dec 2024 07:30:10 +0000 (UTC) X-FDA: 82939914330.15.C778908 Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by imf25.hostedemail.com (Postfix) with ESMTP id 3A403A0011 for ; Fri, 27 Dec 2024 07:29:38 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=ojHOLd1j; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf25.hostedemail.com: domain of rppt@kernel.org designates 147.75.193.91 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=1735284589; 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=P7WTT01PJUCpVF9mzF6Hjvmf0Vz9fvovoiG4itIgCZgwzBwVgTjILYj9zcB3NOTDjpBnv7 BEPq6ebC1wLcglANXZQvd06QHwCYVTinVROwRzj0F/HyDvZdRpp0o5bRLn9eEbEs9iFkDL bapqF7T8KKVAeOhA4Dtmd6QeZGcoY9w= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1735284589; a=rsa-sha256; cv=none; b=xNO2NyrdN/gFuveQZ8i3AlKaU5m0XQ4OHyY+vMTuM6168+a3j9t2iLt3/P8T64v7gIiqUi CmBRfwbtCIlkd9P/PN0/69RJfznB3UBvJBJB+EIVjB0wH3t2XNVj+d/bpCTKEMon2M/aRg JawdsubFscmi0uTMXAYONMq0dxX1me0= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=ojHOLd1j; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf25.hostedemail.com: domain of rppt@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=rppt@kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 5DF8DA4120F; Fri, 27 Dec 2024 07:28:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14BE3C4CED7; Fri, 27 Dec 2024 07:29:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1735284607; bh=4TvuKJvEyJTpjYu41+xgE0YbwjdhXodJecvgvQg8Q9g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ojHOLd1jY+IbJlMWHlQqmy11U2unw6udkZruAXzLiwt6p3tf38LSDBsdZlSGAr5Ti oWt8KIUmukiINpZQ30rlaQW/esY9vKKs3doeOUrzcy8pW5ZYTPFGO0ZI3gJxReLmOn YaQcqvRdKh4p95/gxdtlnhOY0W/KmRAcMm6L8WPojyDC4zVUscK6EE9nVOGL4nLjWR r1cjGnKgKxQGMvk4aIJGohIjP0qxuM3ubVIpYcu1eURVo5rELi+KYU6DKD9THakf4i 3tyThFwaKvxwFltVsRKo7mTf+dPkTgS+g+XxaWhLAOBU/pmfaSEwU9bFMm6R9seeLv 0fvxg0DCRWzQw== From: Mike Rapoport To: Andrew Morton Cc: 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" , 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, x86@kernel.org Subject: [PATCH 8/8] module: drop unused module_writable_address() Date: Fri, 27 Dec 2024 09:28:25 +0200 Message-ID: <20241227072825.1288491-9-rppt@kernel.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241227072825.1288491-1-rppt@kernel.org> References: <20241227072825.1288491-1-rppt@kernel.org> MIME-Version: 1.0 X-Stat-Signature: 1bt3kdykhqdfsixytcmqk5ic9ssahapy X-Rspamd-Queue-Id: 3A403A0011 X-Rspam-User: X-Rsp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CIBaReYOXz0pqng4AIl8KVdMwQhv2TpfaOUAFQ9mduWgI7C8KibAJw1/WGnLpowdfkkKAYWZi4OUmYAvtHxGxQin3cG4jX4MZnPLd2dDz/09qdcMw70ryZtFnzBXGsAfft9cdoPbwQGmXYHobxvixeQmduPx8Aq+NeKyKNFt2rwA8rwqht+aPQ0YnPZdmxKMfZ7TerUhqvkSL0oyedF1dRrGZV7wr58E32yi0qoX5jkPABGqkdc8nF9 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