Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp227127rwd; Wed, 31 May 2023 22:25:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ52TpaM6WfIXKpu4PCU50VfeKrysDU4D6FOOuryvW66xPYbp4qs4PKJ2D/JwcAT8n800mMA X-Received: by 2002:a92:d7c2:0:b0:33b:ed95:26df with SMTP id g2-20020a92d7c2000000b0033bed9526dfmr4182741ilq.32.1685597156688; Wed, 31 May 2023 22:25:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685597156; cv=none; d=google.com; s=arc-20160816; b=z63gFNLqUs9JrQckd0KYzNeRBP7E9kKlsdyyeo8nzKQZONQZCLym2i6sLnQqw8Cq7k kvc7gPTHuRzFTUCc05xZIB8lwFqTb1ADl/GtWzpbTrKXVr6bG6K0SVtCaYFUrcH/Wk8z xM1rJVH11WUyibuKVlfZR1tNwbYFIM/nnmcm/fNlqeSVKenZbewqvrI8PGKIsOOtzrT+ Gis0AUf08Ok2srRkKIuv/iL5HUxf3JKUUDfRPPw0cxxWiLSYgRveBKL7SwkuhwOMIDZz Nua0oZFim0/k9FztFq3+781Tl2fsKs0lAR6u055Krm87VoE6ArbfazXHK/y+IssqSY8B jZcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=qouTHQFVUf6hnbqaF0okB+UHnqqAQgomasWcPridySI=; b=lgIXTm/yuqd7Wnnj+Bl7kNXrc74qix/+lo8q66uVWXKxtRDZqkqyhBDdM/UqnbEjl/ xU0Hm1cjVaL1ICy/PuUCQtBtuOAAjLXpf9jRtKv79WP15yvWKAGqaNCky9EE2OfR7RCW dz5nLJp6oumgDUyA+pj4o02ynYj66P/risXmsD6kOYpZtxyR5Q33GfynqbJOV2XT8IDt lOhfAl3ewZ1miSwaJ49ZUoAE8rJnIUHdnw/wra9lKrQGzOZBg5ee4G1FUoMpcn/S/mWF f//zJ86BV8QQ2f7tBiFCWn7kD3MDKjOhlJ6XwILR7R9r14eJHSpHLrEHSAEwVLyweQkD Pqvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cGspRzDX; 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 3-20020a620503000000b0064ff1f04376si4849635pff.253.2023.05.31.22.25.41; Wed, 31 May 2023 22:25:56 -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=@kernel.org header.s=k20201202 header.b=cGspRzDX; 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 S230498AbjFAE7C (ORCPT + 99 others); Thu, 1 Jun 2023 00:59:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229603AbjFAE7A (ORCPT ); Thu, 1 Jun 2023 00:59:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2DB2125; Wed, 31 May 2023 21:58:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 628FA60A4B; Thu, 1 Jun 2023 04:58:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3A9BC433A4; Thu, 1 Jun 2023 04:58:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685595538; bh=oy+X/QJ3AfHmQ6ri3oCJZOqvE65HhGdDFqeIhvw+j2w=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=cGspRzDXsJ+v96uxCgHPr/fCogXpgNBasA0a0CnaPzD7cF0M69b/DdT8w205r8vVS G9t7oxTm8ZpTJESvfJN62tn8wv8i1WoH7OchVRxL+Ajf3/hyscSOX3vD4ZBsR5VTQd Y170qv9lfaLjV09gwZc8HzCYTsiXUI3jVsW2hTRwglOIf2OuXF+WBLT2YH1qmZlJT9 2VJ/nGfQrY/SkMlNuEeRZDxoaBqiyQM4lMGgT180TrxvB82HGTPdJLQEuBAklxfFpP hGnnRDa4Ip4P1QKHyuV6r5yoIIYjBxWzZucX4ZYCrcHVy/NBp95GDDo/peZRBYUD5O 33wtoTiIlMJWw== Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-5149b63151aso684509a12.3; Wed, 31 May 2023 21:58:58 -0700 (PDT) X-Gm-Message-State: AC+VfDyEv/nk2Asjmz07P0zf+A3XxaY3BS4X3VG0nzpr4GTtUxwcpSrR o7p8ux0hdwSUtrplmy50v2QUyJVWNOk8F8OMgvI= X-Received: by 2002:aa7:df0e:0:b0:514:9248:d1dd with SMTP id c14-20020aa7df0e000000b005149248d1ddmr5631785edy.24.1685595536880; Wed, 31 May 2023 21:58:56 -0700 (PDT) MIME-Version: 1.0 References: <20230511141211.2418-1-jszhang@kernel.org> <20230511141211.2418-4-jszhang@kernel.org> In-Reply-To: <20230511141211.2418-4-jszhang@kernel.org> From: Guo Ren Date: Thu, 1 Jun 2023 12:58:45 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/4] vmlinux.lds.h: use correct .init.data.* section name To: Jisheng Zhang Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Arnd Bergmann , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Thu, May 11, 2023 at 10:27=E2=80=AFPM Jisheng Zhang = wrote: > > If building with -fdata-sections on riscv, LD_ORPHAN_WARN will warn > similar as below: > > riscv64-linux-gnu-ld: warning: orphan section `.init.data.efi_loglevel' > from `./drivers/firmware/efi/libstub/printk.stub.o' being placed in > section `.init.data.efi_loglevel' > > I believe this is caused by a a typo: > init.data.* should be .init.data.* > > Signed-off-by: Jisheng Zhang Seems it's a fixup for all architectures, what's the Fix: tag? > --- > include/asm-generic/vmlinux.lds.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmli= nux.lds.h > index d1f57e4868ed..371026ca7221 100644 > --- a/include/asm-generic/vmlinux.lds.h > +++ b/include/asm-generic/vmlinux.lds.h > @@ -688,7 +688,7 @@ > /* init and exit section handling */ > #define INIT_DATA \ > KEEP(*(SORT(___kentry+*))) \ > - *(.init.data init.data.*) \ > + *(.init.data .init.data.*) \ > MEM_DISCARD(init.data*) \ > KERNEL_CTORS() \ > MCOUNT_REC() \ > -- > 2.40.1 > --=20 Best Regards Guo Ren