From patchwork Fri Dec 8 18:21:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 176002 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp5637569vqy; Fri, 8 Dec 2023 10:22:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IFoYDadEsU1HaQ+hF83aD8awv7NbUIwLQ1YGZ4cuzYunouVRkUAFz0St4HEz422bbsMpi9E X-Received: by 2002:a17:903:1207:b0:1d0:c4af:4628 with SMTP id l7-20020a170903120700b001d0c4af4628mr572464plh.70.1702059735366; Fri, 08 Dec 2023 10:22:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702059735; cv=none; d=google.com; s=arc-20160816; b=WV0/5hFMjpb14sieACB/rCKhdwq7Jy4n9I9Ww+Xc+7b5evBwTahHyikTcZ5SCVcaXF q3VRzxHkdNRI8r3Dm4ZqynQdcstgl/pet9AwnZD30KrTR284VjlV8V3YH5CdIkP5a+NG LHz2z9m/zFEiv9AC2LIz82T6+Tgx8mn+undsVNFwS/U+S882rVB3oo/fqdztMgJzjLyR TBo3+GMExqNwhGeMkhDdxEk/BXRLW/xy43e7rRp5WkrUJr0u06eT3dWDFpnoatENfdyb kg00SC7EUBH9yUSMyyWbb7rz8sizdrRToMulcwxTb3SFzd3wwplEdImvSbAtiJXUg4DK dIYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:cc:subject:to:reply-to:sender:from :dkim-signature:dkim-signature:date; bh=rl/u+AHVkXYVw7Am514fHW33Ua/oZNkO29uc1iwBl68=; fh=J/iKafGeEx/499L1cSUNrhk0EtYmStJhifbNX7MzWNc=; b=hh//7sPWy0F4C1eeBXGWxRFB1/XBGyJnVZHgrL1J0TZ2T106xhC36EZ1wbdO+CVyd3 EPHX6RZ4v4AIwOhyNyhBSYNvzVLV4PryUHxcmx5CBIwbSgApDLVF4v4Gpgz7JR7+xdhQ wTLljUdg1PcJEeNn8A06PF5XHar8yoHX91W1ikqs8Ji00+KExp/rdpzl42Zy8LD4vyp1 1cgA9MSPBE4QTUzwL3zNGeVz5o44KnCC30hg54V0+3MdWGdebhofEiz4tFAWpVzyjqM9 MfuUZzJKKPFwKmrrHriuvpmGrQVjFo1f5oEAZaS2xPEzmcBSPr/Tv7MHb8H8yYi0941e H7aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=LH3Rzsls; dkim=neutral (no key) header.i=@linutronix.de header.b=EzL71+T5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id i11-20020a170902c94b00b001d0c41b1d1fsi2035619pla.397.2023.12.08.10.22.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 10:22:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=LH3Rzsls; dkim=neutral (no key) header.i=@linutronix.de header.b=EzL71+T5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 3362A8072153; Fri, 8 Dec 2023 10:21:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229913AbjLHSVQ (ORCPT + 99 others); Fri, 8 Dec 2023 13:21:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbjLHSVP (ORCPT ); Fri, 8 Dec 2023 13:21:15 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AD0E84; Fri, 8 Dec 2023 10:21:21 -0800 (PST) Date: Fri, 08 Dec 2023 18:21:18 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1702059679; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rl/u+AHVkXYVw7Am514fHW33Ua/oZNkO29uc1iwBl68=; b=LH3RzslsFm+94r1TWDQ0IDpO80KOcDzKH2l2oG0x7ZWmAOzKS/swiEwuf86w4dclHsAFyK yacse5vB/xOFwIcMg2wPuj6nzL4aO6ke8Qe2NVJv71ZHTTtSplZfC0L488rZA3hKdN7m6v ccT5hHYMGV3hS0W70Kfihu0VnJ+EhNk7lH2g5+MQ7qdWFdS+uyCxWwR+bjdsDYo7T1A8uM a1QvxGZMXrKj41MS/+O+cawT+KBLa9Ot4dPAX3/3VHTwWsHhSYmff9raw/hD9TfJUmu9Fw JgZTRcuzgPlU46WUgn+mN1Uf/EKd4vqFvt70bdP7GdfNl7TKfXgzvhAYzp2z/g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1702059679; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rl/u+AHVkXYVw7Am514fHW33Ua/oZNkO29uc1iwBl68=; b=EzL71+T5A2f2WsDNIIrWruis+ooSXrGjIADrAk6X3YPeENdO6+wB9vt2XtjNdEbzUZg+WT /tPYIpKRL4xDf/Ag== From: "tip-bot2 for Zhao Mengmeng" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/sgx] selftests/sgx: Skip non X86_64 platform Cc: Zhao Mengmeng , Dave Hansen , Jarkko Sakkinen , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <170205967894.398.11030924595049592850.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 08 Dec 2023 10:21:25 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784738989101608569 X-GMAIL-MSGID: 1784738989101608569 The following commit has been merged into the x86/sgx branch of tip: Commit-ID: 981cf568a8644161c2f15c02278ebc2834b51ba6 Gitweb: https://git.kernel.org/tip/981cf568a8644161c2f15c02278ebc2834b51ba6 Author: Zhao Mengmeng AuthorDate: Tue, 05 Dec 2023 21:56:05 -05:00 Committer: Dave Hansen CommitterDate: Fri, 08 Dec 2023 10:08:17 -08:00 selftests/sgx: Skip non X86_64 platform When building whole selftests on arm64, rsync gives an erorr about sgx: rsync: [sender] link_stat "/root/linux-next/tools/testing/selftests/sgx/test_encl.elf" failed: No such file or directory (2) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1327) [sender=3.2.5] The root casue is sgx only used on X86_64, and shall be skipped on other platforms. Fix this by moving TEST_CUSTOM_PROGS and TEST_FILES inside the if check, then the build result will be "Skipping non-existent dir: sgx". Fixes: 2adcba79e69d ("selftests/x86: Add a selftest for SGX") Signed-off-by: Zhao Mengmeng Signed-off-by: Dave Hansen Reviewed-by: Jarkko Sakkinen Link: https://lore.kernel.org/all/20231206025605.3965302-1-zhaomzhao%40126.com --- tools/testing/selftests/sgx/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/sgx/Makefile b/tools/testing/selftests/sgx/Makefile index 8d2ba6a..867f88c 100644 --- a/tools/testing/selftests/sgx/Makefile +++ b/tools/testing/selftests/sgx/Makefile @@ -18,10 +18,10 @@ ENCL_CFLAGS += -Wall -Werror -static-pie -nostdlib -ffreestanding -fPIE \ -fno-stack-protector -mrdrnd $(INCLUDES) ENCL_LDFLAGS := -Wl,-T,test_encl.lds,--build-id=none +ifeq ($(CAN_BUILD_X86_64), 1) TEST_CUSTOM_PROGS := $(OUTPUT)/test_sgx TEST_FILES := $(OUTPUT)/test_encl.elf -ifeq ($(CAN_BUILD_X86_64), 1) all: $(TEST_CUSTOM_PROGS) $(OUTPUT)/test_encl.elf endif