From patchwork Mon Oct 10 06:37:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ricardo_Ca=C3=B1uelo?= X-Patchwork-Id: 13002274 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 AF8B2C433F5 for ; Mon, 10 Oct 2022 06:37:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231201AbiJJGhY (ORCPT ); Mon, 10 Oct 2022 02:37:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230310AbiJJGhX (ORCPT ); Mon, 10 Oct 2022 02:37:23 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC2E72C133 for ; Sun, 9 Oct 2022 23:37:21 -0700 (PDT) Received: from localhost.localdomain (unknown [213.194.152.135]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: rcn) by madras.collabora.co.uk (Postfix) with ESMTPSA id 076A66602298; Mon, 10 Oct 2022 07:37:18 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1665383839; bh=4g4y9nZxJqWZ0WrJbsdi8AQVvz3bDAst05Xjpozqjkg=; h=From:To:Cc:Subject:Date:From; b=PKzXtgwuLY5ZhzbPf8hQcBg8RnZrsej4VNGzzaaTysGGQnAOEC9HibP1X4Jeh4fn8 PqoGRD4gPkpm/sadEm2aXJB/z/ukoQCuvaHzo/I9W3nFgQc2MAEIu07OgzIUxkPwj9 ZfFuA2c41x5Xfu1nHlz9wAKODubJrwW4625Nzm5j3KkUuWIGPRTXWtKvmIxTEFv62w 1oAZzfgN/rcksRvluqtkRvdC5W1Ejtp2XAQlMVoLIUQt49uhM6ytANgcPZZ7GqY/m9 wqFrvx95tBKNXidiSVPVbfkQVhaj64JMcgryK3sadVWbSUloZoPg/G2sAAWUOZuDTD +e4F1Xv8v1Czw== From: =?utf-8?q?Ricardo_Ca=C3=B1uelo?= To: linux-kselftest@vger.kernel.org Cc: andrealmeid@igalia.com, dvhart@infradead.org, shuah@kernel.org, kernel@collabora.com Subject: [RESEND PATCH] selftests/futex: fix build for clang Date: Mon, 10 Oct 2022 08:37:02 +0200 Message-Id: <20221010063702.1323118-1-ricardo.canuelo@collabora.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org 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 --- 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 732149011692..5a0e0df8de9b 100644 --- a/tools/testing/selftests/futex/functional/Makefile +++ b/tools/testing/selftests/futex/functional/Makefile @@ -3,11 +3,11 @@ INCLUDES := -I../include -I../../ -I../../../../../usr/include/ CFLAGS := $(CFLAGS) -g -O2 -Wall -D_GNU_SOURCE -pthread $(INCLUDES) $(KHDR_INCLUDES) LDLIBS := -lpthread -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 \ @@ -24,5 +24,3 @@ TEST_PROGS := run.sh top_srcdir = ../../../../.. DEFAULT_INSTALL_HDR_PATH := 1 include ../../lib.mk - -$(TEST_GEN_FILES): $(HEADERS)