Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp549699rwb; Sun, 6 Nov 2022 09:44:39 -0800 (PST) X-Google-Smtp-Source: AMsMyM4n5Xv8LIzJBXjs2S6wct9aZrOBpYwwEi4WcnkEDLve5Lhd6rP0bdYvERL7EovstBrSuEQJ X-Received: by 2002:a17:906:ee8e:b0:730:4a24:f311 with SMTP id wt14-20020a170906ee8e00b007304a24f311mr44777788ejb.420.1667756679665; Sun, 06 Nov 2022 09:44:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667756679; cv=none; d=google.com; s=arc-20160816; b=p2ulSV8nmmwHSBLV3gLWqeMs+RcqhLv+f1LGBjqeFTqev/k3xIEjUUoIgXJMx5uMge X84+kVymuO0Pt8GnyMpMygHlpIXllyqzJKWWzGp8l8Q4Zbv7EH/Sccso6cbw4/bPmV8c WSycdmSMq3pTWlwGf7Lws0BZA2Jzwpz5MpJ7lVA7Ov+YZLB3oEG5YukUYD1B0ydJVbcL oZDgfuDFfQyMXmATa0bYfysgOdA9RbhSKUnyOFEa3oZZH3BFTnhSVXGFqnTB158oai2u WaH0eFs0GjWkcDzVQahr6px85qymaJ3r7GjebIAbYWSBIze7i6ZgvLO5Anu6dHdpfjmf VHLg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SNgDELi5dPM5eErr9y9e51qzD2CKFYmtI7Hj9Qlcr5k=; b=Ow9OFbtdqhbQMvnTsfwTnm0gMGbs2l2UB1QjsapLPo0ZnNN+bY+3LoxIC2o0Fkx3lQ shK7GN1ARvI5HOOm/YDTHzKlUJWTnxHY3DKXxjadIQP5Nmy0693Ek4QZdDOhYrpmeepK +UgoSJAXSc/dV0aoUJz0EenBdVLydtggMTpSc+JykL40m6snRwOKeAchiIl3PLfhq4KY 3mhniGITx9gEyHsEA0K4hm1Bb1v+emTjpSLxMleEyN3Kb9UKJmMoBe3Vnlg2g8JoOZzJ NaH25sGyCuZx++cKSdvAedWVPuDORrSon2ONy9w6TJdoCWTmnhWFVTkS7Ldwh5slcM6L xmTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R8m9ar81; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qq10-20020a17090720ca00b0078cc8a2cf4bsi5008534ejb.614.2022.11.06.09.44.16; Sun, 06 Nov 2022 09:44:39 -0800 (PST) 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=R8m9ar81; 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 S230443AbiKFRL5 (ORCPT + 96 others); Sun, 6 Nov 2022 12:11:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231258AbiKFRLR (ORCPT ); Sun, 6 Nov 2022 12:11:17 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C92811838; Sun, 6 Nov 2022 09:07:17 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C2D2A60D36; Sun, 6 Nov 2022 17:07:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B027AC433D6; Sun, 6 Nov 2022 17:06:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667754420; bh=7r+6km4b+vXIeOkkyXEJz4P9pHvEd5OlxAOs/eJBiio=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R8m9ar81dl3sKRiwxID2wb+ZY5u8d0HXD9ZZrnEM84AqZsCrn7tRSq+pEG0X+BLek JwDPFovoDK8Gnc2TjBfo5J8ehXCUZpb27YnSr1NHd94UotyCdh0dlI4eaYfZ1AVsGl GRYUSRBPD/bPZiP0Yici43BEKhNpfwcelaOSTXUBgxykYSs9D0IhHeaUL+DgFWC8AL 1o18WlI0RXnwU8smxaq6EAdddL0vnSCHj5djfHLO1ZRZurqQ9xTIg6v0Ma+Jp8K3GX e8B3VyrNz8RCAC09n6KSoPqfvQlOvjRJ4Cx4BPiY/fbyswNjWorSJqShXsDd4qAvbs 6NMYJoczYomZQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: =?UTF-8?q?Ricardo=20Ca=C3=B1uelo?= , =?UTF-8?q?Andr=C3=A9=20Almeida?= , Shuah Khan , Sasha Levin , tglx@linutronix.de, mingo@redhat.com, shuah@kernel.org, nathan@kernel.org, ndesaulniers@google.com, usama.anjum@collabora.com, guillaume.tucker@collabora.com, linux-kselftest@vger.kernel.org, llvm@lists.linux.dev Subject: [PATCH AUTOSEL 5.4 10/12] selftests/futex: fix build for clang Date: Sun, 6 Nov 2022 12:06:34 -0500 Message-Id: <20221106170637.1580802-10-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221106170637.1580802-1-sashal@kernel.org> References: <20221106170637.1580802-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore 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 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 From: Ricardo Cañuelo [ Upstream commit 03cab65a07e083b6c1010fbc8f9b817e9aca75d9 ] Don't use the test-specific header files as source files to force a target dependency, as clang will complain if more than one source file is used for a compile command with a single '-o' flag. Use the proper Makefile variables instead as defined in tools/testing/selftests/lib.mk. Signed-off-by: Ricardo Cañuelo Reviewed-by: André Almeida Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- tools/testing/selftests/futex/functional/Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/futex/functional/Makefile b/tools/testing/selftests/futex/functional/Makefile index 30996306cabc..479531f5865d 100644 --- a/tools/testing/selftests/futex/functional/Makefile +++ b/tools/testing/selftests/futex/functional/Makefile @@ -3,11 +3,11 @@ INCLUDES := -I../include -I../../ CFLAGS := $(CFLAGS) -g -O2 -Wall -D_GNU_SOURCE -pthread $(INCLUDES) LDFLAGS := $(LDFLAGS) -pthread -lrt -HEADERS := \ +LOCAL_HDRS := \ ../include/futextest.h \ ../include/atomic.h \ ../include/logging.h -TEST_GEN_FILES := \ +TEST_GEN_PROGS := \ futex_wait_timeout \ futex_wait_wouldblock \ futex_requeue_pi \ @@ -21,5 +21,3 @@ TEST_PROGS := run.sh top_srcdir = ../../../../.. KSFT_KHDR_INSTALL := 1 include ../../lib.mk - -$(TEST_GEN_FILES): $(HEADERS) -- 2.35.1