Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1832019lqo; Sun, 12 May 2024 22:20:44 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWvnBoN/fcIhkFrXBSHvAkc0yzblX4s3mKr3oDpOWk5+zPWtqB/57h9PrHcHpOhS8r2N5Rsi3axwmLMosn4VbzbZg+KFmd5I4grSEizvw== X-Google-Smtp-Source: AGHT+IGCbFCBvswv/PusVKeIMvVEo1Wm9W+A7fqfjEufwSd7ayhAzj8oZH2hvKSDd8Oa2BBn/Fv6 X-Received: by 2002:a17:90a:9404:b0:2b3:a79a:7e4b with SMTP id 98e67ed59e1d1-2b6cc76d24amr6603593a91.22.1715577643971; Sun, 12 May 2024 22:20:43 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b67158a109si8630596a91.142.2024.05.12.22.20.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 22:20:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177161-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=Wri4Q8LY; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-177161-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177161-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A9764B20C1B for ; Mon, 13 May 2024 05:20:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 11B5414601A; Mon, 13 May 2024 05:20:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Wri4Q8LY" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 215261EB2A; Mon, 13 May 2024 05:20:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715577633; cv=none; b=E6sGtSc+iLsUmIWD215MTqUcRnRqZ9FxXY0iCyYJUoFAF8JyiRSruTqLu4KowcZjJA4iGeXr3EvCvmV6JRUFepNBaRHc0rrGET9hMgglAsHMKnU0PyNqbWCaQFsQ5MwxhOrS4alu4tAcZY9nALLWsj5Mkec/OYwPzksQ2a8/23Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715577633; c=relaxed/simple; bh=Q5kyetLTe3bu2/jqdgn9X0/NDbixKX0uq3tQKmhPsQs=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=StSS8bC2DsRb5Ww5BQI+PxrEr+TIp4yHSATM8IUxuQ3T23DXpJJ96Nlo55eQaq5BfTXpBwHM7jaS1rNdEJhK8ikB/Ew4YSSs9dXxUwG8DNJmKEfBokwuH3spOnAKMI46+9PTTA+rmQ8J4RhifL2kAYQzNMBUi2/Szmkn7BKqM3g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Wri4Q8LY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3564C4AF07; Mon, 13 May 2024 05:20:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715577632; bh=Q5kyetLTe3bu2/jqdgn9X0/NDbixKX0uq3tQKmhPsQs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Wri4Q8LY4pnkZQgJ1F68c83i+pYkjW1u84SL0dCD0ElcivyjSuquix1eH2lGRcE58 C3uhwc2TlJWeJbohoexVEtuM8xCy8QAgPROWPSOKnJ1ccOjVJyMrEK+lU6II+GZQSg m+l34DNJGFxS43kFM45TZU/l61bTcae5daGW4k19iqjzS9N9y7HEP6LtNScP6scHfl Mb7U7nLQHAilqwiGc3W6uP7wl5E6P8j/2a8bz33TaGXSYCdOdvYt1Yk/VgQV8mPmCj 7qZ/p/GpRFxB5RPPqZSWRgb5vvRwEMSU3VA6DdNHnFD8t/vjfZpXMx5TROpEP4u8e9 6oirbUlTW4UlQ== Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-51f0b6b682fso4090492e87.1; Sun, 12 May 2024 22:20:32 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWdPRBwKAdf54erEmJJvZfrYLEZh4EzNsDz6FRQEPkbzHzg4enayXO+1hg2tM8X+kmWfr2Xp6msXK1kBd7mxn9rBqUP3XsR/IX/ffbcy+X1wLjmzHJD7l/KeI2EuzwYqyaj0Ju+bKkOpRLsDTILT187ns6u9vyzIl6rhGTDvdQXEUnDm+YKZIvHCV7diSVwRA== X-Gm-Message-State: AOJu0YxtNia1qSKg7qlsPuJqavbLjzATEDQqsZwZRgFZKsIKzav5HgY1 QIzhZICJJg96N7cDKqq9cinSQdYvj62IYihdVE733aBXczwqQmRkejlqIpzTKCtqX83ET1ZLpDm 2kKmZRATAPymW1TMNacrRidk8Luk= X-Received: by 2002:ac2:4a9a:0:b0:51c:d05b:6b8d with SMTP id 2adb3069b0e04-5220fc7bd7amr7172332e87.23.1715577631235; Sun, 12 May 2024 22:20:31 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240511224035.27775-1-kris.van.hees@oracle.com> <20240511224035.27775-6-kris.van.hees@oracle.com> In-Reply-To: <20240511224035.27775-6-kris.van.hees@oracle.com> From: Masahiro Yamada Date: Mon, 13 May 2024 14:19:54 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 5/6] kbuild: generate modules.builtin.ranges when linking the kernel To: Kris Van Hees Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-modules@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Nick Alcock , Steven Rostedt , Luis Chamberlain , Masami Hiramatsu , Nick Desaulniers , Jiri Olsa , Elena Zannoni Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, May 12, 2024 at 7:44=E2=80=AFAM Kris Van Hees wrote: > > Signed-off-by: Kris Van Hees > Reviewed-by: Nick Alcock > --- > Changes since v1: > - Renamed CONFIG_BUILTIN_RANGES to CONFIG_BUILTIN_MODULE_RANGES > --- > scripts/Makefile.vmlinux | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/scripts/Makefile.vmlinux b/scripts/Makefile.vmlinux > index c9f3e03124d7f..54095d72f7fd7 100644 > --- a/scripts/Makefile.vmlinux > +++ b/scripts/Makefile.vmlinux > @@ -36,6 +36,23 @@ targets +=3D vmlinux > vmlinux: scripts/link-vmlinux.sh vmlinux.o $(KBUILD_LDS) FORCE > +$(call if_changed_dep,link_vmlinux) > > +# module.builtin.ranges > +# ----------------------------------------------------------------------= ----- > +ifdef CONFIG_BUILTIN_MODULE_RANGES > +__default: modules.builtin.ranges > + > +quiet_cmd_modules_builtin_ranges =3D GEN $@ > + cmd_modules_builtin_ranges =3D \ > + $(srctree)/scripts/generate_builtin_ranges.awk \ > + $(filter-out FORCE,$+) > $@ $(filter-out FORCE,$+) -> $(real-prereqs) > + > +vmlinux.map: vmlinux > + > +targets +=3D modules.builtin.ranges > +modules.builtin.ranges: modules.builtin.objs vmlinux.map vmlinux.o.map F= ORCE > + $(call if_changed,modules_builtin_ranges) > +endif > + > # Add FORCE to the prequisites of a target to force it to be always rebu= ilt. > # ----------------------------------------------------------------------= ----- > > -- > 2.43.0 > > --=20 Best Regards Masahiro Yamada