Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2534527rwb; Mon, 19 Sep 2022 06:33:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5ekCrKyRogb1XHZD4VoDMxzpsdVjKo1DH5/Adnv4Zf4EZuE1J4FX1N6rQuoK63+ILkVZ8R X-Received: by 2002:a17:903:1104:b0:178:8756:6e4d with SMTP id n4-20020a170903110400b0017887566e4dmr13317251plh.114.1663594391669; Mon, 19 Sep 2022 06:33:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663594391; cv=none; d=google.com; s=arc-20160816; b=uXYEj3iOMTJkW180n9OdbyJs4AHbbQg+sqMF1/9SjU9X4iW24+9zDKdO7hsee0ENQm Z6NloDDzxNgS/hw1vpOnMFlOrlBnCiZwh8vrmFkZOUVEOFIA8FpqPKVIFiZ4DzvrWyDn T6BJet804c0Q+pA1QElzxNOJZV0tba5l4SWRTz8GTZjsaIjpWE0AJiWBsVGq1WZQbjuE BYpEPe7n8y+4ono9H17UHxzNzVF/TqeSW9v02uolW4TwQu5tH0WlCiaiGe6DtdCL5qRh v16aimGoKx5gauWsqzse/gtkucLu9rtMAMJxxBQFXeq2QoSVg8q0ypz1bDtGk46vCQJT hsJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=8aWuQLPgUjO2hHTxhxUtJFCPMusYzMKoXSzZIe6HxdA=; b=1Ls6o2IWCJXKLUvRn7jKJg6dJeHouSVbtIYIPImZxIcVES/uWHk0+bHESDVlCF4Pb2 2Yr8zsS3ZDVz/8lYY1yPa6bwKY+6twOgVXy0KQR1BRnFBkDr5GStwk1wp0qZwBwqzXLe 2ZKTsKe3hWCR0MYqMpb1Wh0nQ5EwrAh2nW7wHnjByOcIyr01MbXD1OjvtrhRGAlCVIFO TFIT6cVoVZuGEYVt/Srx9mw9BqAFqxopszx6GAqLfV/Z7PP5yc2HawfDjcNCFI1U0moL eFrS7AUYDJ0W4KHiA7KBf5QOrQFy2Yyso23fK4jB5QztaWJmkF2GxSMbHplqf2eN8/D3 TQFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Ruc0JgvN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z7-20020a056a00240700b00543bb97c41esi26156403pfh.30.2022.09.19.06.32.59; Mon, 19 Sep 2022 06:33:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Ruc0JgvN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229557AbiISMSd (ORCPT + 99 others); Mon, 19 Sep 2022 08:18:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229606AbiISMSa (ORCPT ); Mon, 19 Sep 2022 08:18:30 -0400 Received: from conssluserg-05.nifty.com (conssluserg-05.nifty.com [210.131.2.90]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE511DF16; Mon, 19 Sep 2022 05:18:25 -0700 (PDT) Received: from mail-oi1-f169.google.com (mail-oi1-f169.google.com [209.85.167.169]) (authenticated) by conssluserg-05.nifty.com with ESMTP id 28JCHxhu019959; Mon, 19 Sep 2022 21:17:59 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 28JCHxhu019959 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1663589879; bh=8aWuQLPgUjO2hHTxhxUtJFCPMusYzMKoXSzZIe6HxdA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Ruc0JgvNiI9SIk8G1CCrirmc/BevOwTVD5nwrpVJek1jkSh9INKB9qpO3wo2l7cVg +/HVuWbF4Jll7/WmujvHpc839rhzH0CAZ3ygAu6EIE7tTWAu3xcRVO3mIDZ94Pj6SA W6ZpGMelTdbRKoM7YnUMw454UbPWeirRHJsCEEJ04m5cCqbVHDeBC9wSIt9UB+g/Rg 211LNQ9Lv64NKMXnxt8esFQtg5BThox4qLz077yKC+4+UbAGztH5gfL255ZtI38agi CgYlFqqSwXwiAg9vXfggOkawPPllKTGRnw7zOzjkkbagcYIBohhrgxUA3GuB8gra+K 3YNdQsnoiYuGw== X-Nifty-SrcIP: [209.85.167.169] Received: by mail-oi1-f169.google.com with SMTP id o64so481537oib.12; Mon, 19 Sep 2022 05:17:59 -0700 (PDT) X-Gm-Message-State: ACgBeo0eFjwET1EXIN+OIii/ZEfiA6zh7qNX250ti+Sm1mIDOgrBw3BG P2hFb1Eb/P4juNCbjkcn4GDIiJkHEuFk1HBCCb4= X-Received: by 2002:a05:6808:1b85:b0:34d:8ce1:d5b0 with SMTP id cj5-20020a0568081b8500b0034d8ce1d5b0mr11850446oib.194.1663589878451; Mon, 19 Sep 2022 05:17:58 -0700 (PDT) MIME-Version: 1.0 References: <20220906061313.1445810-1-masahiroy@kernel.org> <20220906061313.1445810-8-masahiroy@kernel.org> In-Reply-To: From: Masahiro Yamada Date: Mon, 19 Sep 2022 21:17:22 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 7/8] kbuild: use obj-y instead extra-y for objects placed at the head To: Geert Uytterhoeven Cc: Linux Kbuild mailing list , Linux Kernel Mailing List , linux-arch Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 19, 2022 at 5:10 PM Geert Uytterhoeven wrote: > > Hi Yamada-san, > > On Tue, Sep 6, 2022 at 8:15 AM Masahiro Yamada wrote: > > The objects placed at the head of vmlinux need special treatments: > > > > - arch/$(SRCARCH)/Makefile adds them to head-y in order to place > > them before other archives in the linker command line. > > > > - arch/$(SRCARCH)/kernel/Makefile adds them to extra-y instead of > > obj-y to avoid them going into built-in.a. > > > > This commit gets rid of the latter. > > > > Create vmlinux.a to collect all the objects that are unconditionally > > linked to vmlinux. The objects listed in head-y are moved to the head > > of vmlinux.a by using 'ar m'. > > > > With this, arch/$(SRCARCH)/kernel/Makefile can consistently use obj-y > > for builtin objects. > > > > There is no *.o that is directly linked to vmlinux. Drop unneeded code > > in scripts/clang-tools/gen_compile_commands.py. > > > > Signed-off-by: Masahiro Yamada Thanks for the report. I will squash the following: diff --git a/arch/m68k/kernel/Makefile b/arch/m68k/kernel/Makefile index 1755e6cd309f..af015447dfb4 100644 --- a/arch/m68k/kernel/Makefile +++ b/arch/m68k/kernel/Makefile @@ -16,7 +16,7 @@ obj-$(CONFIG_SUN3X) := head.o obj-$(CONFIG_VIRT) := head.o obj-$(CONFIG_SUN3) := sun3-head.o -obj-y := entry.o irq.o module.o process.o ptrace.o +obj-y += entry.o irq.o module.o process.o ptrace.o obj-y += setup.o signal.o sys_m68k.o syscalltable.o time.o traps.o obj-$(CONFIG_MMU_MOTOROLA) += ints.o vectors.o -- Best Regards Masahiro Yamada