Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4963148rdb; Fri, 29 Dec 2023 23:16:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IHyUOFa/OU3v0ciPRo+Oxh3ky5e9POIEQeh5JnIc4tNHnrEku1A5/JeUZ8I3Y/AN7QM5gYw X-Received: by 2002:ad4:4f2c:0:b0:680:810b:983c with SMTP id fc12-20020ad44f2c000000b00680810b983cmr3275438qvb.71.1703920591464; Fri, 29 Dec 2023 23:16:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703920591; cv=none; d=google.com; s=arc-20160816; b=uIOLBzuya5c7aqx3GK7pI4O4XdoHxV1JJqapN/BjQBFiB8E9Wo35YuwHotTOIlDVHU kZ4eRRnkCwA60fVy9CpqdyncO/mVQj1A3z065PvME7aR4kMjyOl9OV2vlr6xT/4kwKNG awAQ4Wdtp6KlwyoI3Z9y4hOh7woQD7pLwQj4E65QrBpf24fhuc9zdZRvHjC1XfiGTHjk lthTn/1/0aJhFnOMxicnPXsIvQxzZ3DdAKdA5gLGaxt+cDO3EBeghy3erEpr84zATL1u TzaNw/xxSDtmNxzpiKwc/I4PksF81Qb6G3qYjX3qF6NFNE7S7utrlWvOlqFVVB8CzJ35 JfBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:cc:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=uk8+PyUwV1tBBSTNoh8rLsJjoDXzsBFQH8ktWrUij0w=; fh=2sUzF45hUo556pxlXwavWYcgqVTVhOKflVq65gZg2Mk=; b=aUdN6cbckb719x7eUK7BY7dcNbY9ka2OM1cYQYqXD3hIozFpdB/g3hOx4LA4avllBH K5G4IcPx2cQhsOqKy/dbS8v5ofFa6ANVvQEfsMD+azDblq0Gf3d1NogjTAz/Wc5f5TNG 2GAbf3dNONNDOubeDZ9mEh8IyjkxCio2nMscns9XdSsZB804LB7l6+TNWb4jTcIqgnUu 2IgvnsHyPKXkuM4yduHQbtpGfBgUm1EPHkPBLECXP6PL8fwu7Z+ucMvnSZ1JXPrMCO/M vybA1nk7oaBzIhccEFJmgmiJig5QSBH2PxCvZ30I3NAqgh/8JWoRak/xqV5WxjkbKjXt ydjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=AoqxjK3e; spf=pass (google.com: domain of linux-kernel+bounces-13349-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13349-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d24-20020a0caa18000000b0067aa68574b3si17398736qvb.100.2023.12.29.23.16.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 23:16:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13349-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=AoqxjK3e; spf=pass (google.com: domain of linux-kernel+bounces-13349-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13349-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3BEB91C20A9E for ; Sat, 30 Dec 2023 07:16:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0279E23A0; Sat, 30 Dec 2023 07:16:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="AoqxjK3e" X-Original-To: linux-kernel@vger.kernel.org Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 6D92728F8; Sat, 30 Dec 2023 07:16:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1703920580; bh=PchXuul0g9RoRBGhYz5X5+1f1bVnhlkCfxJtLzU81r0=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=AoqxjK3enuMiIv7gQkxemmSAB1cfxZ7QyfK5DSY9LIlJiNyS1OcyI+S3nUMQMOwzT tuj1bg2lk4rhvUrKYvUhOil3SfA1K6LMbOCG2fPV0cMubwyJ9PTR2/6BEFNdI+em3M zOP2bHS3xlOfYkiMV2k/Tls5UcV1Qe1UTEHiT8vi3VkNLZCnZie3UFZ2oOff3p37i7 F39vkawdqUzoBxGdL1GKhX4pSIb/MyN/zVKcr1TByL455ZWr/ouHWiwarfW0dP55U+ xVI0IrZ3mK3HJKyGlfZjihkS/f/F0LAdDXBAKxVxhybCCpaoXvnjll/zxwKJnrfrGV vYaSLDpwiVnyw== Received: from [100.96.234.34] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 1CD67378045F; Sat, 30 Dec 2023 07:16:17 +0000 (UTC) Message-ID: <0bac8f5c-5531-40dc-8b64-b1e079f99a1c@collabora.com> Date: Sat, 30 Dec 2023 12:16:16 +0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: Muhammad Usama Anjum , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] selftests: uevent: use shared makefile library Content-Language: en-US To: Antonio Terceiro , Shuah Khan References: <20231221204908.341677-2-antonio.terceiro@linaro.org> From: Muhammad Usama Anjum In-Reply-To: <20231221204908.341677-2-antonio.terceiro@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/22/23 1:49 AM, Antonio Terceiro wrote: > This makes the uevent selftests build not write to the source tree > unconditionally, as that breaks out of tree builds when the source tree > is read-only. It also avoids leaving a git repository in a dirty state > after a build. I can see what you are trying to do. The makefile has issues such as lib.mk should be included at the end of the file. Please just clarify this in the message. > > v2: drop spurious extra SPDX-License-Identifier > > Signed-off-by: Antonio Terceiro > --- > tools/testing/selftests/uevent/Makefile | 15 +++------------ > 1 file changed, 3 insertions(+), 12 deletions(-) > > diff --git a/tools/testing/selftests/uevent/Makefile b/tools/testing/selftests/uevent/Makefile > index f7baa9aa2932..872969f42694 100644 > --- a/tools/testing/selftests/uevent/Makefile > +++ b/tools/testing/selftests/uevent/Makefile > @@ -1,17 +1,8 @@ > # SPDX-License-Identifier: GPL-2.0 > all: > > -include ../lib.mk > - > -.PHONY: all clean > - > -BINARIES := uevent_filtering > -CFLAGS += -Wl,-no-as-needed -Wall > +CFLAGS += -Wl,-no-as-needed -Wall $(KHDR_INCLUDES) > > -uevent_filtering: uevent_filtering.c ../kselftest.h ../kselftest_harness.h > - $(CC) $(CFLAGS) $< -o $@ > +TEST_GEN_PROGS = uevent_filtering > > -TEST_PROGS += $(BINARIES) > -EXTRA_CLEAN := $(BINARIES) > - > -all: $(BINARIES) > +include ../lib.mk -- BR, Muhammad Usama Anjum