Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D3A4E3B8BD8 for ; Thu, 16 Apr 2026 12:21:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776342115; cv=none; b=RDKYK8keNFVZY2ZtopUHPts3Ip3I9Dj376F0gSC0AgmWn2FaiS+n3MYWLv6PK/BY0vXr3sb15X8GGCnj2AoTefkkFN92GUxfJH/X29Hvb7vJmSaymKxgiHQL5+ouvR8az+iR8M8s8RICvl+q1nSwbJtXD6vI1vyw9VUxOGHXDWY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776342115; c=relaxed/simple; bh=XgVya1wOhlmwdTfwic9NIwBF44z1ohItenbrD/1EmJk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fDdVQnzEor1AIZIb0q1vTJ9RsjAHMumPPVWuOlh0wkHp8lhic+zB51KvW37k4DjcXHspKMgB9Vl+PG2/awCuGU4WEc2M1jfuhhU/b1/j+m+Fn0lLB4JhOmkiSfNzfub2YD12ILvGiiqK9fkoZGybgEn2Umf8S/9R+FyFsh7Px5Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=QbYRVj6Q; arc=none smtp.client-ip=209.85.128.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="QbYRVj6Q" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-488a9033b2cso96017455e9.2 for ; Thu, 16 Apr 2026 05:21:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1776342112; x=1776946912; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=xFAhrEcbWUNGkUNeZMznGeM5elrK7tHUIUxprsV4V9k=; b=QbYRVj6QYNm3no06nsUDnDnZfgZkuioPO+chQvFaKJotfCWfRRHzaAZ/fysjoAplq9 fx1xixYOdBTIbzCK6ulQvXoxmI5v9XYNVwidl49ZdXN2MheQFEriu+HMU2tNA3DEM1N5 WiR0murIUUeaTxk2ey6etXSCCOADMHkfFBcNO1TFg15zj8h34mqzv9AZp1ovG4coVZT0 BikzrahY6uvNaLNsKfXRPZlUbY3djrS5ze0lFY1tNR0M8uhhh9A2wkBgwnNDo+Tnbj9C Aeykcryjdva6RTlhy6QqlC4LLZja4HYIc1OnG0nApjjrKifw84vQkOMu6ciB5iUqEeAe WUvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776342112; x=1776946912; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=xFAhrEcbWUNGkUNeZMznGeM5elrK7tHUIUxprsV4V9k=; b=DaGZfbVb2Z7sI9cmPdyUYwR2/TCJfz0ry5tHMh2Pe6O+QJQY9Esp/XlCI9lIFX9AaA DKDfOVCE6eQeZaVGWxj09aI7KFtgrxNfuNnEBzo7ECll0CVNOa70eJ1so+gu+m63mcpg QwsPe10EotKIQt8oxPnUXzibD/g1Uw2T11SBd/6YvyDYTFJlawAe1i1WRYHvic45AwBY sUH2OnaX6/3ErFRKD1R5r0il4CDM94HC09f1cCWUxb+Jqc5xOC9xd4tQ90eeXFEV2ELT ZaFoSUjRDWRBmHEXKrI7722VZfZW74y7HyKCr+kkyw7CAfsuJIiyNh2ZU7oqX4bdYLHf xMlw== X-Gm-Message-State: AOJu0YxL3AGrRK2U8VgDnFDv0VvMb4XfPU6lqKMfpOrv4Dt5Q/NzQ3MI kOHvBgpiVkUdMQ2zgxX8PDuaH64UJp//udnvQcsnPiKZ69gbH3LdM1QQLucDaayYvc0= X-Gm-Gg: AeBDieum3x1xCf5HzExxisvvcQcEYm2PzmMMFieziDrx8WErOUmpdQm6pbfquyU9dGx Bp+TU61NtNhso/1zPdRGjKnBFjHF2PdsQaWOZpzgv35MrCJNMUteluqBmrxIHd2HmusIw5aswZy 2z7So4r2JJJ0JZurnu6yOqjGlTlF8U3ytn3IMivGPlkT/A6encDlQ0V/jayut/34fPiX4gKtxCR bSQU9XHJTyOL3j8FhUsCP+nT4ZqI81Tt5DH31n4AO32yHA9juFU2yqgwbrKjDuLRyWdAjf9g8nH h15AUwFSCFlV2HYaSiSJ/XwDTU4BqFqoy6n5WPXvEGO0QIqPQFcx67ZOfkaUhbrsonX/2H4IxUc 0oGgfhXXN9FnobAuX6XGGMbMmRH9OCWMpddIwtoy8r7asp4PAJjnTHstZkMB4EX3xKhbPyrwpEr ryCbEu9D/Eym0= X-Received: by 2002:a05:600c:474c:b0:487:219e:42d with SMTP id 5b1f17b1804b1-488d67e72b7mr330683115e9.11.1776342112260; Thu, 16 Apr 2026 05:21:52 -0700 (PDT) Received: from localhost ([2804:7f0:b765:e41:ce28:aaff:fe86:149c]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-12c5e6a860fsm5523313c88.11.2026.04.16.05.21.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Apr 2026 05:21:51 -0700 (PDT) From: =?utf-8?q?Ricardo_B=2E_Marli=C3=A8re?= Date: Thu, 16 Apr 2026 09:21:22 -0300 Subject: [PATCH bpf-next v6 05/11] selftests/bpf: Make skeleton headers order-only prerequisites of .test.d Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20260416-selftests-bpf_misconfig-v6-5-7efeab504af1@suse.com> References: <20260416-selftests-bpf_misconfig-v6-0-7efeab504af1@suse.com> In-Reply-To: <20260416-selftests-bpf_misconfig-v6-0-7efeab504af1@suse.com> To: Andrii Nakryiko , Eduard Zingerman , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Kumar Kartikeya Dwivedi , Song Liu , Yonghong Song , Jiri Olsa , Shuah Khan , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt Cc: bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Alan Maguire , "Ricardo B. Marliere" X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=openssh-sha256; t=1776342088; l=1610; i=rbm@suse.com; h=from:subject:message-id; bh=XgVya1wOhlmwdTfwic9NIwBF44z1ohItenbrD/1EmJk=; b=U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgguRCc5X8/UX9M40lkMnr//aFGOhce x5ezt8MFNUFlqYAAAAGcGF0YXR0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5AAAA QItrZ/Bp0ea4xdUjeMka6QelzaapYgbCSvM7vE7JnjuhA/jZzjrLzEE61ubPgurq3r7QDEOBjPb 4zqHoHV3kZgE= X-Developer-Key: i=rbm@suse.com; a=openssh; fpr=SHA256:pzhe0fJpYLz+3cZ33FFPhIfaUElk9CXPFFXmalIH+1g The .test.d dependency files are generated by the C preprocessor and list the headers each test file actually #includes. Skeleton headers appear in those generated lists, so the .test.o -> .skel.h dependency is already tracked by the .d file content. Making skeletons order-only prerequisites of .test.d means that a missing or skipped skeleton does not prevent .test.d generation, and regenerating a skeleton does not force .test.d to be recreated. This avoids unnecessary recompilation and, more importantly, avoids build errors when a skeleton was intentionally skipped due to a BPF compilation failure. Signed-off-by: Ricardo B. Marlière --- tools/testing/selftests/bpf/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile index 7d1e5d6c30ec..b3eaa4a93707 100644 --- a/tools/testing/selftests/bpf/Makefile +++ b/tools/testing/selftests/bpf/Makefile @@ -717,11 +717,11 @@ $(TRUNNER_TEST_OBJS): $(TRUNNER_OUTPUT)/%.test.o: \ $(TRUNNER_TEST_OBJS:.o=.d): $(TRUNNER_OUTPUT)/%.test.d: \ $(TRUNNER_TESTS_DIR)/%.c \ $(TRUNNER_EXTRA_HDRS) \ + $$(BPFOBJ) | $(TRUNNER_OUTPUT) \ $(TRUNNER_BPF_SKELS) \ $(TRUNNER_BPF_LSKELS) \ $(TRUNNER_BPF_LSKELS_SIGNED) \ - $(TRUNNER_BPF_SKELS_LINKED) \ - $$(BPFOBJ) | $(TRUNNER_OUTPUT) + $(TRUNNER_BPF_SKELS_LINKED) ifeq ($(filter clean docs-clean emit_tests,$(MAKECMDGOALS)),) include $(wildcard $(TRUNNER_TEST_OBJS:.o=.d)) -- 2.53.0