Message ID | 20230629162301.1234157-1-bjorn@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp9764834vqr; Thu, 29 Jun 2023 09:36:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6KVYroCYlB6SJ+vKs5n4S6+0C012NCGqIEKdtuHeUsR+jyRSbrIdAgCmoPhNCIWKXgI1B6 X-Received: by 2002:a05:6a21:6d82:b0:121:d102:248c with SMTP id wl2-20020a056a216d8200b00121d102248cmr244257pzb.6.1688056565586; Thu, 29 Jun 2023 09:36:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688056565; cv=none; d=google.com; s=arc-20160816; b=fxomfWKVJGVlU1+nr4M/kB2iSueCR7ZUSc/w9sr6sn5tSQ8/1aQW0TKOz44NsPO6vp A7/+9sn2CaUSTp9gSGfVVa0/bI7LWPDPKA+uygx/5VXIZTwwmnKZqdDzvVdPPAe//dnn g5oy63b1u6LBjvn8/UsJlEGaOTDoyVVcqEMqG7ISX+RsQJEZE+wR7xkPZGaL9cpkqOeK H6HqerTBPP0ISti5enORQ3tqDkFxsTqQqqHsk1fbQA30oflwmpl95NYIt7C9KCE+76Cj GM3lRRNWc9O5lRR0X+LQb8QPe4acBGoC3pglarr3ihNDOeRaODGG3R9k9HVEgx9SpyF+ Y+8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=qsy+iR39uCj1zabAF+yKF50ByYjE8z9y2YQRthsX1pU=; fh=TRY8FwZvtnTPw1r6PXxfS664XgRZQhtksvRTZCxt3RA=; b=d6hu4AWT50u/JjfUyZCKLv4olFTuqsv+ipj2M4Wt0Ur8Ai9cO+/SFuF3dsL/xd6qOM szMpQkH0zs7efPCMMLlcG5xTET/oh+sph05MFXDPrQZ7ZslOl0nHbwFhQnn9iJoU0YSW NFPLQHoTiqrZDUjVkWO6U/piyGI2C5MI5RZUD2dS5Yr/WePkES4dwJKgD/sKgU6WSUmC rGOVofV47ujgvL5P9oTZUGmkihwn9iCgFu6B+iC44WGLk6uJ5TRWxmcERwVCfImyCSVh P2MtbZi+bu4RM0SA4HEpYjMEjtgFJNLegkVUMHpmc0559nhY3WFCn0wM1g/Z/TbcOwPf R/pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tBnEB2TL; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f16-20020a631010000000b005428f25f67bsi10670762pgl.784.2023.06.29.09.35.52; Thu, 29 Jun 2023 09:36:05 -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=tBnEB2TL; 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 S232460AbjF2QXR (ORCPT <rfc822;ivan.orlov0322@gmail.com> + 99 others); Thu, 29 Jun 2023 12:23:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231901AbjF2QXP (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 29 Jun 2023 12:23:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44F3B1FC6; Thu, 29 Jun 2023 09:23:13 -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 D7DD861593; Thu, 29 Jun 2023 16:23:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C4D1C433C9; Thu, 29 Jun 2023 16:23:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688055792; bh=ovjigv8qptlynrOEsJvCtRFFDOTknNKzUCTNiWi4Fhg=; h=From:To:Cc:Subject:Date:From; b=tBnEB2TL3BB1Za5i/ByduAiLyL/ZliIq28Qn4IhJXGD/Ez+EW7LDroGAZsfSt29pj ju/1u5PQyOHWfUhqJGMoah0RtfvbOTonrRZmLaR3sSo4mnZGMlB8PLLweNoCHwa2mN dX7MJQR60ASzeLe1ncvYJf9w26a4B+UzmmWd/XGZuCQ7k4fqO1ShEwU9VJfO2S2scg sN5Ip423GVFs3DonU7VwYnGzJjYKYcw8DYZefF1/jD6vmLlX6HlcSLr4RWtW0qFbcD 925hPZ12KLkG4qi9bXbgh8IM+9p5Fy61kg8m/SjxcdrGQpD3v2unRwOGNNLRpmubBN AkV0ttTgjsy6g== From: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= <bjorn@kernel.org> To: Shuah Khan <shuah@kernel.org>, linux-kselftest@vger.kernel.org Cc: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= <bjorn@rivosinc.com>, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Alexey Dobriyan <adobriyan@gmail.com>, linux-fsdevel@vger.kernel.org, Anders Roxell <anders.roxell@linaro.org> Subject: [PATCH 0/2] Two cross-compilation kselftest fixes Date: Thu, 29 Jun 2023 18:22:58 +0200 Message-Id: <20230629162301.1234157-1-bjorn@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770055601101625031?= X-GMAIL-MSGID: =?utf-8?q?1770055601101625031?= |
Series |
Two cross-compilation kselftest fixes
|
|
Message
Björn Töpel
June 29, 2023, 4:22 p.m. UTC
From: Björn Töpel <bjorn@rivosinc.com>
When you're cross-building kselftest, in this case RISC-V:
| make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- O=/tmp/kselftest \
| HOSTCC=gcc FORMAT= SKIP_TARGETS="arm64 ia64 powerpc sparc64 x86 \
| sgx" -C tools/testing/selftests gen_tar
the components (paths) that fail to build are skipped. In this case,
openat2 failed due to missing library support, and proc due to an
x86-64 only test.
This tiny series addresses the problems above.
Björn
Björn Töpel (2):
selftests/openat2: Run-time check for -fsanitize=undefined
selftests/proc: Do not build x86-64 tests on non-x86-64 builds
tools/testing/selftests/openat2/Makefile | 9 ++++++++-
tools/testing/selftests/proc/Makefile | 4 ++++
2 files changed, 12 insertions(+), 1 deletion(-)
base-commit: 3a8a670eeeaa40d87bd38a587438952741980c18
Comments
Björn Töpel <bjorn@kernel.org> writes: > From: Björn Töpel <bjorn@rivosinc.com> > > When you're cross-building kselftest, in this case RISC-V: > > | make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- O=/tmp/kselftest \ > | HOSTCC=gcc FORMAT= SKIP_TARGETS="arm64 ia64 powerpc sparc64 x86 \ > | sgx" -C tools/testing/selftests gen_tar > > the components (paths) that fail to build are skipped. In this case, > openat2 failed due to missing library support, and proc due to an > x86-64 only test. > > This tiny series addresses the problems above. Shuah, Alexey submitted a series [1] that makes the 2nd patch of this series unnecessary . It's on Andrew's -mm tree. Patch 1 is still relevant. I guess it can go via your tree, or the RISC-V tree. Björn [1] https://lore.kernel.org/all/20230630183434.17434-2-adobriyan@gmail.com/