Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5248954rwl; Tue, 11 Apr 2023 02:39:50 -0700 (PDT) X-Google-Smtp-Source: AKy350Yxx3bBphnFHHOtN6bIAHuE4PkIPc+JAb+LlA3BPk3HUUGJNzzkMfvf3KaweRXHdIcZIVum X-Received: by 2002:a05:6402:32f:b0:500:50f6:dd34 with SMTP id q15-20020a056402032f00b0050050f6dd34mr11996159edw.1.1681205990072; Tue, 11 Apr 2023 02:39:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681205990; cv=none; d=google.com; s=arc-20160816; b=J8Zm0/L7H7oO134h/GByvbpJcuXKqeZKumtNDgehReq07CsJ7WNP2m0XZZwdFjHxGE q9Vw4Degxhd1weZ065eeKDfV+6vU/PEPUEG+XMcp6Mw9Xm0m1s/ZbAbkAEVaOBq6q9rC mxzIZnjD+/II7y/yACqQPvRKOwn7thBif2xDpZWloRWXy+R3mhOtqKmAf/NqMaZ6ZgV6 7tr43CR1A4fSsQAujiMhmsnZPDUdxMFU4wp5ReEcx2vOTHanQV70Hydg1ZYqPHyqfjX0 5JQF/OGRJ9DqmhJw3EG50TAB+0VCqOVoBdk3DurOCBBNzg4LV6xtnKTlqM1/x0b12tgt fqFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pdoMhstdrCOnEa5Scge7wpgzZAxiUxs8FJu0HbFfzHo=; b=HbGK990bc+RATsHfKmXaBGctKj8tqsvF+wtos01xXwHSdboSMPoIRc0VHMS/E1hPZb OFB5Hoabu3stVi36eqKhwh7XHyxtQxpIKcn+n7Ek4r/yDyDxw1n/Rcs9pNyus2RZtyXB E7OH/L/3ZVcMvp+43vQcwXH+/gyVCTmOMXiqlqOEq/hYLWCFzekJknzlLLtgAGqwnc6a xm5WbN6iC2qGkkkz0a9AQYMgwfjWifcr+hcp/O6l7qNeW94oqBtwFFXWEMuMca/3Pnb1 q/Pi9nt00CHKsKHqcpv70syhQuh98aBqcp6Gg0oQ5xA4BuG3isAiu2QDFBQSzrkd+c8p hmIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=L1++jc6w; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b22-20020aa7c916000000b005049b5f1a7csi5365136edt.122.2023.04.11.02.39.24; Tue, 11 Apr 2023 02:39:50 -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=@microchip.com header.s=mchp header.b=L1++jc6w; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229546AbjDKJjC (ORCPT + 99 others); Tue, 11 Apr 2023 05:39:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229798AbjDKJii (ORCPT ); Tue, 11 Apr 2023 05:38:38 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDE1744A9 for ; Tue, 11 Apr 2023 02:37:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1681205873; x=1712741873; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=MyltFylIFYtbOCTHYFJyDF5AXeTRkYCwlYLXFW0zW5Q=; b=L1++jc6w2Fi+tc4Ors7f2YBNoJUNcmxQ2awwVTRZCQcVgP5dfl+IgJwJ RMof3z07yVWJytuKo+V9kKJfihS0LASfz8p9xDk32KcoS+sFU/5mQco/D gApoT7hd8sG00ndL+a3j4WZNc20wLXGlU1NX8JD/wPf+VafGksPNJZ4oS fpBHIoq73SOcwY2735sS4lI8yDleLABptID56KnLNjNBtFAFlru7nGpwM 5PBxy3ThkfUHeHY3tX9cT8InfUcE+H+HfC7745c5+d/HPYutQITRVFRjC nzrdQJE9oMC7HEZferPMWss8P41XColDrFW1AKhG2wTzeMF/cHhb9LGpA w==; X-IronPort-AV: E=Sophos;i="5.98,336,1673938800"; d="asc'?scan'208";a="220333193" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 11 Apr 2023 02:37:53 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 11 Apr 2023 02:37:53 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Tue, 11 Apr 2023 02:37:51 -0700 Date: Tue, 11 Apr 2023 10:37:36 +0100 From: Conor Dooley To: Jisheng Zhang CC: Paul Walmsley , Palmer Dabbelt , Albert Ou , , Subject: Re: [PATCH] riscv: enable BUILDTIME_TABLE_SORT for !MMU Message-ID: <20230411-flier-establish-d3ffd434be28@wendy> References: <20230409164306.3801-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="EG2YHGo4BKAgt7Xt" Content-Disposition: inline In-Reply-To: <20230409164306.3801-1-jszhang@kernel.org> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 --EG2YHGo4BKAgt7Xt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey Jisheng, On Mon, Apr 10, 2023 at 12:43:06AM +0800, Jisheng Zhang wrote: > BUILDTIME_TABLE_SORT works for !MMU as well, so enable it. >=20 > Tested on QEMU and FPGA. >=20 > Signed-off-by: Jisheng Zhang Fails to build for nommu_k210_defconfig: make ARCH=3Driscv CROSS_COMPILE=3Driscv64-unknown-linux-gnu- O=3Dbuild -sk = -j30 no __ex_table in file: vmlinux Failed to sort kernel tables make[2]: *** [../scripts/Makefile.vmlinux:35: vmlinux] Error 1 make[2]: *** Deleting file 'vmlinux' make[2]: Target '__default' not remade because of errors. make[1]: *** [/home/conor/stuff/linux/Makefile:1250: vmlinux] Error 2 make[1]: Target '__all' not remade because of errors. make: *** [Makefile:226: __sub-make] Error 2 make: Target '__all' not remade because of errors. :( > --- > arch/riscv/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > index c5e42cc37604..212ea28e346b 100644 > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -50,7 +50,7 @@ config RISCV > select ARCH_WANT_LD_ORPHAN_WARN if !XIP_KERNEL > select ARCH_WANTS_THP_SWAP if HAVE_ARCH_TRANSPARENT_HUGEPAGE > select BINFMT_FLAT_NO_DATA_START_OFFSET if !MMU > - select BUILDTIME_TABLE_SORT if MMU > + select BUILDTIME_TABLE_SORT > select CLINT_TIMER if !MMU > select CLONE_BACKWARDS > select COMMON_CLK > --=20 > 2.40.0 >=20 --EG2YHGo4BKAgt7Xt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZDUqYAAKCRB4tDGHoIJi 0s+NAP95rLxAoXj+yAMZk9GEMzPkMjw9Nj+tBJ5nl1M3voR1/wD9E62rAX0Y0ogV wr7SweOexWbvfYXlHHZdCWlyyoAXwQ0= =VObW -----END PGP SIGNATURE----- --EG2YHGo4BKAgt7Xt--