Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2496192rwb; Mon, 19 Sep 2022 06:05:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5SfKPgJzJr5ZN+1Q8FkYXoNejiv2arohMz55y6vC9MiHN2Izq+wvjbcdY+T1mRA0mOmLUx X-Received: by 2002:a17:907:7b94:b0:731:1b11:c241 with SMTP id ne20-20020a1709077b9400b007311b11c241mr13129504ejc.676.1663592708062; Mon, 19 Sep 2022 06:05:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663592708; cv=none; d=google.com; s=arc-20160816; b=ebxFUK+QGRbT+effsaCJ/QwDkUCk5sXvwWcTYxCPiVvLvXqaZx2lK6XGVUJkWmzS/G TsL1yh7lxZn93tUMhVp8LuPEH0NRbR6povBtExACj9oF2DOt9hyDIlXT8uLruTw3JpQ/ myRpuLF0xt3I6Bm1HQB4ljxU+XEBtyl6gMtDrr+oT5XiU2QUWjo0OIEl5KBBN7BkWGCL 0fD+WI2irX9vP+8y4Jm0Zw52DvUhZaEGqz9K2i2rTvaj2dUEYnr339LV72y7KpoxmzUe mp9z+4cNMUkTVaiDxXaE6+2vm49lH6qJ/6yomnH8kFdSRYAoNbDN6WpkYJZ5ORgJi2y3 wL1A== 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; bh=FbhO57AaIFpfTc6EAzSsAME+3Gcdi6/bOYBJsrWkC7o=; b=TrQGbWKUHGKwH7E4UCAJRs2PYmfSd1JFwmP5Oxx/9lg8E+nSMmwp3OhIHechxYdVHF aKC9xo53Nau+MhRtpu6NOevpb3oX1q5EENwa6p8/Jd5ty9xwK6Sii9mXfUG7t4wICzsn wq3eyXxSq8iVq9yHESbueOJuFjw9uHkTLI4G1kzCpms4Cbm3mLzZPkiaDJ2u2TRXJ9Ez 8qLeqZsrzuwI61YrhmUnhKUOX1qvTgHpBZyn/Tpwfh5rafQc86GysJildFrHICDExAAT OvSjDrFuOz56jr0s74WcxJUa7ZaOXhnSvUWcR9Q6lXx0xMziQnQUOQvg6pvZjdWNBwxo eQ+Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d24-20020aa7ce18000000b0044f00017470si7962326edv.634.2022.09.19.06.04.37; Mon, 19 Sep 2022 06:05:08 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229792AbiISM3F (ORCPT + 99 others); Mon, 19 Sep 2022 08:29:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229695AbiISM3D (ORCPT ); Mon, 19 Sep 2022 08:29:03 -0400 Received: from mail-qt1-f169.google.com (mail-qt1-f169.google.com [209.85.160.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1969115FF4; Mon, 19 Sep 2022 05:29:03 -0700 (PDT) Received: by mail-qt1-f169.google.com with SMTP id j10so17608118qtv.4; Mon, 19 Sep 2022 05:29:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=FbhO57AaIFpfTc6EAzSsAME+3Gcdi6/bOYBJsrWkC7o=; b=maRjSF8q2ZhoES3aHJR2lQH0gg8LKiVkYylXG0csTkMbKolSP82hJRkfl68wGMPzTt FmTPB3+9nJCAkDOGIyzbc3Jynx0lMFuH2z0JUjFpk5Wv8iaB4ru98F6lnF27XJMKjRSj eM5ZdJztAZ91p58nYmx0IlVm2OyPJeQXnyxG6FDZEyXyTSaBuLgQVywQZMTNfElZDuE2 aSjAb93VLbS3zJoDToFrh7zr+P78K/YxZA3L9GcZKNOMPPCQsBEdosmp7zBbM8Kjij1y mRqkTThwDOPAWf7SWI/lJ6DkDyRxxfQMpH+ubcq45aEEkXAX+puOgeIxtfHRf5AOJKv6 QT/Q== X-Gm-Message-State: ACrzQf0xQKqHrAGEUBk2AaGs04AMSUsMAnngu612a5BMPTUe+bHraApK 9PU3Yp4qugRgq2EpvjAYhb0n/dULiEg+iA== X-Received: by 2002:a05:622a:183:b0:35c:c65a:61e7 with SMTP id s3-20020a05622a018300b0035cc65a61e7mr14406550qtw.371.1663590542038; Mon, 19 Sep 2022 05:29:02 -0700 (PDT) Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com. [209.85.219.182]) by smtp.gmail.com with ESMTPSA id bb18-20020a05622a1b1200b0035bb84a4150sm10363491qtb.71.2022.09.19.05.29.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Sep 2022 05:29:01 -0700 (PDT) Received: by mail-yb1-f182.google.com with SMTP id 125so20974644ybt.12; Mon, 19 Sep 2022 05:29:01 -0700 (PDT) X-Received: by 2002:a25:8e84:0:b0:696:466c:baa with SMTP id q4-20020a258e84000000b00696466c0baamr13228969ybl.604.1663590541439; Mon, 19 Sep 2022 05:29:01 -0700 (PDT) MIME-Version: 1.0 References: <20220906061313.1445810-1-masahiroy@kernel.org> <20220906061313.1445810-8-masahiroy@kernel.org> In-Reply-To: From: Geert Uytterhoeven Date: Mon, 19 Sep 2022 14:28:49 +0200 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: Masahiro Yamada Cc: Linux Kbuild mailing list , Linux Kernel Mailing List , linux-arch Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS 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 Hi Yamada-san, On Mon, Sep 19, 2022 at 2:18 PM Masahiro Yamada wrote: > On Mon, Sep 19, 2022 at 5:10 PM Geert Uytterhoeven wrote: > > 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 Thank you, that fixed the build. Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds