From patchwork Mon Jul 17 18:23:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul E. McKenney" X-Patchwork-Id: 13316275 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80CC3C001DC for ; Mon, 17 Jul 2023 18:24:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230255AbjGQSY5 (ORCPT ); Mon, 17 Jul 2023 14:24:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231526AbjGQSYS (ORCPT ); Mon, 17 Jul 2023 14:24:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47B2310D8; Mon, 17 Jul 2023 11:24:00 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 059916121B; Mon, 17 Jul 2023 18:23:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 273F5C433CA; Mon, 17 Jul 2023 18:23:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689618220; bh=RCVifOKfIw+9aq0+FOvG0OI3UWiuO8vkL1zh9hG5PcU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YYHp/I7QhylSmFvPvYPbZ9iO/I8TbBUu/hPJWmauatStq3JEhsNn5Xn8KScysXZri +UtgETAoLmfseklJt9bY28Rjc9HnaiSyIz3COtR8riYxNV7BZXNzH1G2H9MNCrNm9G 5HUEqkNsgKma+/kSMF0APGvVcaCs7QotmIkBKZey1YBoIVCpi+kwxsjTEO3BQ3exyV H94wg0nluAFQUzP70yaWStamUNme1inj/UpSNKHmMxdghIXPFh7oVzXtDW1O6T4UR9 nN/pnslud5kt3tKQhn80cqIfTW4wmkeLHiUvLn/nZxNyxuu+k+24HFR1MOjZ5HUWNm U8UuVjj1eBEYQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 3F0C9CE0ACD; Mon, 17 Jul 2023 11:23:39 -0700 (PDT) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, "Paul E. McKenney" , Feiyang Chen , Huacai Chen , Willy Tarreau Subject: [PATCH rcu 15/18] torture: Add init-program support for loongarch Date: Mon, 17 Jul 2023 11:23:34 -0700 Message-Id: <20230717182337.1098991-15-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: rcu@vger.kernel.org This commit adds the __loongarch__, __loongarch_lp64, and __loongarch_double_float targets to rcutorture's mkinitrd.sh script in order to allow nolibc init programs for loongarch. Cc: Feiyang Chen Cc: Huacai Chen Cc: Willy Tarreau Signed-off-by: Paul E. McKenney --- tools/testing/selftests/rcutorture/bin/mkinitrd.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/rcutorture/bin/mkinitrd.sh b/tools/testing/selftests/rcutorture/bin/mkinitrd.sh index 3af3a86a0091..e7e23615dbe3 100755 --- a/tools/testing/selftests/rcutorture/bin/mkinitrd.sh +++ b/tools/testing/selftests/rcutorture/bin/mkinitrd.sh @@ -63,7 +63,8 @@ ___EOF___ # build using nolibc on supported archs (smaller executable) and fall # back to regular glibc on other ones. if echo -e "#if __x86_64__||__i386__||__i486__||__i586__||__i686__" \ - "||__ARM_EABI__||__aarch64__||__s390x__\nyes\n#endif" \ + "||__ARM_EABI__||__aarch64__||__s390x__"\ + "||__loongarch__||__loongarch_lp64||__loongarch_double_float\nyes\n#endif" \ | ${CROSS_COMPILE}gcc -E -nostdlib -xc - \ | grep -q '^yes'; then # architecture supported by nolibc