From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B86962A1F; Tue, 23 Jan 2024 01:56:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705974989; cv=none; b=AWdFQ3x8fAJVaocnYKbB8VsVhXuHgCu75oz8hBFyRNBzGwhoBHLobYWTvPGfo8S2m66iEbVXZsT6WerMIgZvUjkjhgJkFVq8PIHlx8AifbPquVR6/Ptol9FzIkOty8nUHrC9FlNXFRPBo29Rl7sinPCz8+XyJgElzJ6YNXUiu7E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705974989; c=relaxed/simple; bh=cv0KTf1DjTwyIKNIExnH3TSwIGDhacdTilrAiluiasc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ccyUAUQPWS/sFAKJ6PKgIZyFRk1iQIiKIlB5WMeNF1RHehzuSTMD/FjFvTG08YSFvF6Fe/AzH5nStAUvxZwFvQpqj3ZNvoxZNFChpO+76HT5GBnN30VGPb/UP5uW2nWqPK0u4lxUC3UPanO83JV53UnBlZ6h6MGT8bpHfY0tTtg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=g3PQgVZZ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="g3PQgVZZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 547CDC43390; Tue, 23 Jan 2024 01:56:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1705974989; bh=cv0KTf1DjTwyIKNIExnH3TSwIGDhacdTilrAiluiasc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g3PQgVZZ0CO1BwQC688Hewz57rp9rFbFbhXuvSI5//UYEB6YEVKQjkF1UWGPbRDhn k7WZYMt7kUR8TEB6eNdEFFDItf2NBxHIRLfuWTkCZQ/0JhtBuidNTxZxPDdPcHSXsV sRssv+1z8jrk/1y2Gt80ihMjU1Dn+bRMDIekHLdw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Zhao Mengmeng , Dave Hansen , Jarkko Sakkinen , Sasha Levin Subject: [PATCH 5.15 310/374] selftests/sgx: Skip non X86_64 platform Date: Mon, 22 Jan 2024 15:59:26 -0800 Message-ID: <20240122235755.654658632@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240122235744.598274724@linuxfoundation.org> References: <20240122235744.598274724@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Zhao Mengmeng [ Upstream commit 981cf568a8644161c2f15c02278ebc2834b51ba6 ] 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 Signed-off-by: Sasha Levin --- 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 472b27ccd7dc..394d0dde479b 100644 --- a/tools/testing/selftests/sgx/Makefile +++ b/tools/testing/selftests/sgx/Makefile @@ -16,9 +16,9 @@ HOST_CFLAGS := -Wall -Werror -g $(INCLUDES) -fPIC -z noexecstack ENCL_CFLAGS := -Wall -Werror -static -nostdlib -nostartfiles -fPIC \ -fno-stack-protector -mrdrnd $(INCLUDES) +ifeq ($(CAN_BUILD_X86_64), 1) TEST_CUSTOM_PROGS := $(OUTPUT)/test_sgx -ifeq ($(CAN_BUILD_X86_64), 1) all: $(TEST_CUSTOM_PROGS) $(OUTPUT)/test_encl.elf endif -- 2.43.0