Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp203761rwd; Wed, 31 May 2023 22:00:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ATUwUP4K8EE3FHDR0yW1EITpxw/dVhMqyId7Vutwj+Tp85NLhpm/pklnhGnEFNVBW9ebj X-Received: by 2002:a17:90a:199:b0:24e:d06:6912 with SMTP id 25-20020a17090a019900b0024e0d066912mr731283pjc.18.1685595609317; Wed, 31 May 2023 22:00:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685595609; cv=none; d=google.com; s=arc-20160816; b=kiUUOSgppfNWrxKtLxzx4rgqmBtQ0lC474nYOQt8agmAMlVhcCg2KuAzBtcaAmlexm avY1qSo9kkZCMtMvWgx15mEeN57Qb6LhjQCw7Bufbu3d719XQYnQjxrSHoDQ15TAqUx/ IJ9CT4Di34dmEJ+9ba5MGymol1BUIFxJRp66fJVMP0PD2vK8lN3U+FeITcpm3zOW8Buj B52JX99MMQd6NqybfE8+2w+QuRKYHc/Y1JyXvNV6VzGzZQ6hs+dwx6U9sIMGbXZX05E5 Qj7HWOeLCy5ErxK2twO6NeH0bTJHyn90Wq7kMqCn1ybfygrV8/B/F7cCwBBJsiePfsp1 6k3Q== 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=uBRHpWuSIafSEC7VWLFazqnVRyQ4hAtCkpGpl/jutFw=; b=p6NBdLHaTMjQCNmKa7hyThbLMuuFmY29B9O2gR9xe8xtFfxFpvTpwDOORl5/yVLJ+l GBqMpuNXNz3ScJ5deUccbflTrNK8hMM9VkGNJ/SjP5OcXnST55LLAtK6jsbe/r/iJejS UHXTvUVi1td/nAP1NwniGU2tX1ds+H5xjx3p2SChAQy25btEoZz6uc+GGURFa0X+2op5 oVYyvQ/yh1BUHx0kztOS6oYnU6jqo4hTOaeoFXEFbWl0nGeRbnxYHGEDVO/4Jgbevj4n BxR/ACuRz8qzTY/laXH6JBH259yfyCbH1DtkFB2IaRy0CC6/7+hurfv4fyQS+DC0Uyyo c2Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eJppZiLf; 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 cq5-20020a17090af98500b0025088014281si510988pjb.84.2023.05.31.21.59.53; Wed, 31 May 2023 22:00:09 -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=eJppZiLf; 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 S231203AbjFAEnT (ORCPT + 99 others); Thu, 1 Jun 2023 00:43:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbjFAEnQ (ORCPT ); Thu, 1 Jun 2023 00:43:16 -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 1348BD1; Wed, 31 May 2023 21:43:14 -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 7BAE664096; Thu, 1 Jun 2023 04:43:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEB09C433A4; Thu, 1 Jun 2023 04:43:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685594593; bh=glxEErfBF3rHdX2Urzd+1Qp5ZZmjQW4jC0j3rig2bd4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=eJppZiLfpsup79yOmIoJDe2feYX0jjKFJgJ9XoDNWkX2xBnQmQWwOId5NiG1+K93q lyFC1cwabbl0+RfyypvfRuKmrZSAaHfH4IwQXQglE2N4MQ0hnUYd8mfbyOwQjuyPze ky0RlW+lKBET4OIwuGJPa3cC/l6uri0Yec/mKviXt3gL2TcMB26kiYu9il4yoOEbzv TmxJwzPVcUAxTSFxMKKDmY0zIq8hLR+aeX1CSZ5vjG/g8yfWonEHLUtrkAraaw/AYk bsNju0GBVzFj/UZ2SraPiSeNCMlcrhkF8HRPnlJlM2PXAgsA7KnuVxO3rCdxd3Ml3p DuU7JLbQrT1aQ== Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-5147dce372eso799013a12.0; Wed, 31 May 2023 21:43:13 -0700 (PDT) X-Gm-Message-State: AC+VfDycyF8FE2N83BVIgUdGqcNwLChYNXHnTHMk/AtSpDaU18XJNOgk W83bgP9lHV1XLy/vmZOj7ft0ZW1GjvImLoWWOpQ= X-Received: by 2002:a05:6402:14c9:b0:514:9423:65a5 with SMTP id f9-20020a05640214c900b00514942365a5mr5538713edx.19.1685594592071; Wed, 31 May 2023 21:43:12 -0700 (PDT) MIME-Version: 1.0 References: <20230523165502.2592-1-jszhang@kernel.org> <20230523165502.2592-3-jszhang@kernel.org> In-Reply-To: <20230523165502.2592-3-jszhang@kernel.org> From: Guo Ren Date: Thu, 1 Jun 2023 12:43:00 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/4] riscv: vmlinux-xip.lds.S: remove .alternative section 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, Conor Dooley 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 Reviewed-by: Guo Ren On Wed, May 24, 2023 at 1:10=E2=80=AFAM Jisheng Zhang = wrote: > > ALTERNATIVE mechanism can't work on XIP, and this is also reflected by > below Kconfig dependency: > > RISCV_ALTERNATIVE > ... > depends on !XIP_KERNEL > ... > > So there's no .alternative section at all for XIP case, remove it. > > Signed-off-by: Jisheng Zhang > Reviewed-by: Conor Dooley > --- > arch/riscv/kernel/vmlinux-xip.lds.S | 6 ------ > 1 files changed, 6 deletions(-) > > diff --git a/arch/riscv/kernel/vmlinux-xip.lds.S b/arch/riscv/kernel/vmli= nux-xip.lds.S > index eab9edc3b631..50767647fbc6 100644 > --- a/arch/riscv/kernel/vmlinux-xip.lds.S > +++ b/arch/riscv/kernel/vmlinux-xip.lds.S > @@ -98,12 +98,6 @@ SECTIONS > __soc_builtin_dtb_table_end =3D .; > } > > - . =3D ALIGN(8); > - .alternative : { > - __alt_start =3D .; > - *(.alternative) > - __alt_end =3D .; > - } > __init_end =3D .; > > . =3D ALIGN(16); > -- > 2.40.1 > --=20 Best Regards Guo Ren