Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2218151lqt; Mon, 22 Apr 2024 05:11:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX0CIILiMwjp1TnwSelMmQ+T9260rE3h3ldChFaYsAZpC1T4OSz3RB7qpPvbRW3lTO8Zv4XIfymsUEh/SAMMRh0c6HHuKyVxWXJY4x11g== X-Google-Smtp-Source: AGHT+IH6dIwM5Dda/YiYQ7a0tHf2VbyoX9yQUA4jz4PGpYOeR8L7TJ4GAL7NBwTRYCOAJX3L767v X-Received: by 2002:a17:902:6ac3:b0:1e5:5bd7:87b4 with SMTP id i3-20020a1709026ac300b001e55bd787b4mr8940373plt.18.1713787915800; Mon, 22 Apr 2024 05:11:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713787915; cv=pass; d=google.com; s=arc-20160816; b=lQ3RKVktRRhPFBSIDq/tzwOOKNC767oCKUpgoqaox4JQkpqOu8DxRqATAP4xz4z8jF hi+feiobn+IZq4dOYgHDhnqOQvQlNq0Mx58c4Mm5Tzgmpy3vsRJyCK8R10oYRuCt1Qhh Atks8zmarIB1t6B/9AkG1FyiAmY2IItXnjMqFC5NBgjhAuqwrIhAQz4egk+/fB0e7Cbi R1x+FDcXW8XMAx2ex8p+UP8gYmCJKXpzSUHLoHlAoxnvMVkxvI6ukfXtWFwLK5Q9ymkZ uvcw/M2Qtr77VG5Do99SFdMqiCLoPAcejrdrS+utUMz5XVNGSLf1J29kVpf/yPbV75w2 bDsQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=bCRnuZK0O/QOXHu1Ldkstjl1doP0jCVLWLbPZKH0WnQ=; fh=uUfOpkVlxdHrnhYJy0q570v8MiUKnj83zEZjDCrXhAE=; b=ONi3zVCVotXZ5H0T6yr6K6RkedT7PCbSlFABfRAnQfiYjHzhf6TtR6LNMjzmsSyaRT Vw0KwG0KMcVJtHvjBL708MZdQiRqGs/Pyr7D/hVD2hncNCBORpOJkMOFy8L5fJLbV98D E2Hcqy9sQwScGkHPbyrXeoHvJRey/SmvY/wyr7e/Vl7gPHZvchZ1OwF6RPjdsuSv0jSu rNr8qJ36TCajeqxiwtJTQVp2jI50OFpZxQs8HmxkLJEbOT3ABSit+5X39UkAORckwrvX vbIcnXirKnGlx79gvTUp+43eG9HhaJDAp1SdzlsxVsVbpthvqu7GYD9ob1BHCsBs+xij 4+Pw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CFHTz0AC; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-153323-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153323-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id kd15-20020a17090313cf00b001e5886e2a55si8166614plb.54.2024.04.22.05.11.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 05:11:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153323-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CFHTz0AC; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-153323-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153323-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 67505285A44 for ; Mon, 22 Apr 2024 12:11:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6B581474AD; Mon, 22 Apr 2024 12:11:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="CFHTz0AC" Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C9CFD146D68 for ; Mon, 22 Apr 2024 12:11:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713787901; cv=none; b=PVJTBzGVv00B9rOXT0A6ahmV2cek/dkKKulRVUD+BAaj4dSXExhJy0cntC1k5U0uMei9ReXK/qBog8uqAtvACAr/2pPeBNozsIRM3yV6Hn+Lhho3rP3jxz63xdsILnJ8za9mIhkBUhCxZxrrI1NeOaS7ORgyQjDjMLuiZrrDGGg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713787901; c=relaxed/simple; bh=P+ngD7651DKaxK2xXQRIyCnuFIb7V6Y5I4v0Y+4liW4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=cBFBqxnT4Gx0IOJ9xrvP+CyUiok5H3ieDtkpr+jmSnTzMAtEBFBP5sOOq/yGAscRbq/50irrppfpyAwSEedGYS2jVRd/GhcTFWGQje66x8Xo4dLCAaGhFe6ZTv8MLecR05OR5nVHiKNS4lAOAW4ySqhDsTcytAp9Szos2+VQSC4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=CFHTz0AC; arc=none smtp.client-ip=209.85.128.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-41a1d88723bso8350425e9.0 for ; Mon, 22 Apr 2024 05:11:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713787897; x=1714392697; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=bCRnuZK0O/QOXHu1Ldkstjl1doP0jCVLWLbPZKH0WnQ=; b=CFHTz0ACeA5cePDuWJvlh0c8tKCX+vdZE51F+lymx2ic2Y7hs2eXx05OW4IBWO5NY7 enwTee91Ffu3VfDwyIkmea7VIvN1ABlqbVpYWHDO8qGLChX0hoAO+wasQMUtc896zpHB QxjKoTPskxJNDiDIqOlKG4CIT6U73cuCt0Vs9fgQM0ezVMx0psIJB9CigTkRj5XWIUKW xaeJd3fUGhkumQtrwTPbnfBgS5vg69UeFthGeF6sKzOfXwJNG5K2/VFS9jCmhxkfP77J 31QAA9xu9VEv3dBKe3932dOMZdSw5hMYLReIRTM78EV4NCYcxeN6zzWPjQTuz5Shh7PR Wv3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713787897; x=1714392697; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bCRnuZK0O/QOXHu1Ldkstjl1doP0jCVLWLbPZKH0WnQ=; b=RBBl+ZoIw/6E8ot8K4EOv2JiLpsEl16peShem+lwRWWEmXSFpgwW5IV+ZHrhk80Mmu mOf1OF4GzAGxjDwBwtsuvF3HdA4nEkuCQK0dwtNYp6ETMUlAYgr/B+mWLwUunjsLACoj BEll2WPXLqpcmU6GQ7MvOw71b0uqvN2aQmyvdjxN0HYlvNqh7+ZKCL/ba6YAE1pefq7N zU4V3NogKdxoosuYBCqZqIWurkWTxWQCFnsOAo5y76WkYhytSmCb5VdT2dbpgxz+ZXAf 2+knw+sx4yYotfwh/4nZdz1PVnwwFOUC7WqLjYIKVr1VprjTrJYsB3Uap5g3A3quVZz1 fAgg== X-Forwarded-Encrypted: i=1; AJvYcCUo+zm4lD21fTVcj6Y+vhe1Eipd8o1z8iGDrkD4pyfbFvqPjskK4Tmjg1FeijX0RRTCDz+ASRsBUwnNiSSMjbNA9l/gK/KnHXGMWzDe X-Gm-Message-State: AOJu0Yzy2ADjNQMcr8k0debrBFFC7qkIYCHikVQUouoo2Sw5L/gsuE1z nW7yXNx9yPGFBZUE5Ymvr5ho5pIxGA6pvYN6yywTSfCg55130POk4y3OOpp4e6I= X-Received: by 2002:a05:600c:3552:b0:419:7fd:2fbe with SMTP id i18-20020a05600c355200b0041907fd2fbemr5536580wmq.11.1713787897251; Mon, 22 Apr 2024 05:11:37 -0700 (PDT) Received: from [192.168.1.28] (lfbn-bay-1-170-196.w83-193.abo.wanadoo.fr. [83.193.250.196]) by smtp.gmail.com with ESMTPSA id r14-20020a05600c458e00b00417e5b71188sm16503881wmo.34.2024.04.22.05.11.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Apr 2024 05:11:36 -0700 (PDT) Message-ID: Date: Mon, 22 Apr 2024 14:11:34 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 11/15] arch: make execmem setup available regardless of CONFIG_MODULES To: Mike Rapoport , linux-kernel@vger.kernel.org Cc: Alexandre Ghiti , Andrew Morton , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Donald Dutile , Eric Chanudet , Heiko Carstens , Helge Deller , Huacai Chen , Kent Overstreet , Luis Chamberlain , Mark Rutland , Masami Hiramatsu , Michael Ellerman , Nadav Amit , Palmer Dabbelt , Peter Zijlstra , Rick Edgecombe , Russell King , Sam Ravnborg , Song Liu , Steven Rostedt , Thomas Bogendoerfer , Thomas Gleixner , Will Deacon , bpf@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, linux-parisc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, loongarch@lists.linux.dev, netdev@vger.kernel.org, sparclinux@vger.kernel.org, x86@kernel.org References: <20240422094436.3625171-1-rppt@kernel.org> <20240422094436.3625171-12-rppt@kernel.org> Content-Language: en-US From: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= In-Reply-To: <20240422094436.3625171-12-rppt@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 22/4/24 11:44, Mike Rapoport wrote: > From: "Mike Rapoport (IBM)" > > execmem does not depend on modules, on the contrary modules use > execmem. > > To make execmem available when CONFIG_MODULES=n, for instance for > kprobes, split execmem_params initialization out from > arch/*/kernel/module.c and compile it when CONFIG_EXECMEM=y > > Signed-off-by: Mike Rapoport (IBM) > --- > arch/arm/kernel/module.c | 43 ---------- > arch/arm/mm/init.c | 45 +++++++++++ > arch/arm64/kernel/module.c | 140 --------------------------------- > arch/arm64/mm/init.c | 140 +++++++++++++++++++++++++++++++++ > arch/loongarch/kernel/module.c | 19 ----- > arch/loongarch/mm/init.c | 21 +++++ > arch/mips/kernel/module.c | 22 ------ > arch/mips/mm/init.c | 23 ++++++ > arch/nios2/kernel/module.c | 20 ----- > arch/nios2/mm/init.c | 21 +++++ > arch/parisc/kernel/module.c | 20 ----- > arch/parisc/mm/init.c | 23 +++++- > arch/powerpc/kernel/module.c | 63 --------------- > arch/powerpc/mm/mem.c | 64 +++++++++++++++ > arch/riscv/kernel/module.c | 44 ----------- > arch/riscv/mm/init.c | 45 +++++++++++ > arch/s390/kernel/module.c | 27 ------- > arch/s390/mm/init.c | 30 +++++++ > arch/sparc/kernel/module.c | 19 ----- > arch/sparc/mm/Makefile | 2 + > arch/sparc/mm/execmem.c | 21 +++++ > arch/x86/kernel/module.c | 27 ------- > arch/x86/mm/init.c | 29 +++++++ > 23 files changed, 463 insertions(+), 445 deletions(-) > create mode 100644 arch/sparc/mm/execmem.c Reviewed-by: Philippe Mathieu-Daudé