From patchwork Fri Jan 27 13:57:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49423 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp848102wrn; Fri, 27 Jan 2023 06:02:23 -0800 (PST) X-Google-Smtp-Source: AMrXdXvp0drtUP/VkdE3x8LKIhZ/pswuFbFkb0TCpwYyABlNkQHpPLnSm1C6ZsatZTJzVgSeJY6E X-Received: by 2002:a17:907:d684:b0:870:4986:2ce with SMTP id wf4-20020a170907d68400b00870498602cemr48868490ejc.58.1674828143129; Fri, 27 Jan 2023 06:02:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828143; cv=none; d=google.com; s=arc-20160816; b=PK1fhDZIKVbNTHCXzABx5RqXCE87u8XknTivMnHqAyiH2W8de8bZxWIDF0mnT6kotL iKwo4OapkS49ZvxT1eIdUYq8n02G3ua0ieeenYriIMfzozR+n95E70zojV9trugvKK4q zauCp4xwioxks/KUTx85SJgNc+rNvGYN7gsQfIgFn9BnUuKjXzZnOHXfWgFntyAlWZZk tMbF6ZYIguFwWZBL7+mIDgxL+MRsekSeEWRqxa3g9ZapTDpJMDVWUkR2gMR6c0hoadsN ECITao2pXEgCa8t5boGIxmpwWynatOXeUl+w+mafOhvDHJSCFpdQc8W0G0zQQiGzRwTT jHAg== 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=+jT8+nH2cFvKrSN7h2jmbbV+Nueta+lPLyDJoJxjNBM=; b=Dzp0qncsgwuXXmgJ/xiYC8rMXDMP7c6Zog4TwIC+EDVvyGYPgVOw4m3ADhUHzSTxI8 DZzExM4bG2ydzjMampyzsSCVRBwDGa/BEucwvsD9Sb5AH8bL7ILXrb9J1bwvd7BQAG5r T3Yr8BAQ9cJCZE98H0UEn+iS4b0bApLDGs7Coz1XtLGthZcCNUmy9iXaeTvKyJ/sS8KQ NMBYpCIYV0wqStKjWVcWspvFHzq9cPSHiglY5V2RNx+FXygADE5HYVAWtn+J/ptUweON ByhMmZ31spl5LlTBK8k97oXx+asCGTLdYgOypVpsDMVAmBBV2D0NtZQ1EKFfQ0tpirlX yHHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=o1rycBY7; 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=efficios.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ui42-20020a170907c92a00b008775fc7097csi4988449ejc.774.2023.01.27.06.01.50; Fri, 27 Jan 2023 06:02:23 -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=@efficios.com header.s=smtpout1 header.b=o1rycBY7; 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=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234305AbjA0N7O (ORCPT + 99 others); Fri, 27 Jan 2023 08:59:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233747AbjA0N6M (ORCPT ); Fri, 27 Jan 2023 08:58:12 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 484E940F8; Fri, 27 Jan 2023 05:58:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827885; bh=3jJ2ZRw1vIzdDe/j4jE5CyhrGQNLfgTMGygamyBGoBs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o1rycBY7wPyLKfoO4vNKOmorLZwiObst/fF6T0cysqHXmGF+A19CR+s8FZHNuxYFd 2ywsBpCbI4dCzNtQ/f4Cbz8HMQkdf0fInM2oQjoyVI4nElKdbMuoUI5goJsF51rlrd clAnCqSN0OfXPjIHIfY/48Fr4o0z5icDGWTWwl+8xePOBPbkhjPwFGYKpH4TwRrjBF 7xDneVhU350VL2KMGBuZt0qducEE6LvfvWh6V8HPVAdocHAJeF/5fdSc/0pf24/D3H ak/NJYSM9znlibHry6NoEfM7uCXXGi3jRSORVWQ4+IuJRPA/fyf5tONVrv3ioV7Ncj 9l/Qc9cVs0CQg== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0Y5nlSzhWg; Fri, 27 Jan 2023 08:58:05 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 22/34] selftests: ptp: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:43 -0500 Message-Id: <20230127135755.79929-23-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230127135755.79929-1-mathieu.desnoyers@efficios.com> References: <20230127135755.79929-1-mathieu.desnoyers@efficios.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RDNS_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184595046405237?= X-GMAIL-MSGID: =?utf-8?q?1756184595046405237?= Use $(KHDR_INCLUDES) as lookup path for kernel headers. This prevents building against kernel headers from the build environment in scenarios where kernel headers are installed into a specific output directory (O=...). Signed-off-by: Mathieu Desnoyers Cc: Shuah Khan Cc: linux-kselftest@vger.kernel.org Cc: Ingo Molnar Cc: [5.18+] --- tools/testing/selftests/ptp/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/ptp/Makefile b/tools/testing/selftests/ptp/Makefile index ef06de0898b7..eeab44cc6863 100644 --- a/tools/testing/selftests/ptp/Makefile +++ b/tools/testing/selftests/ptp/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -I../../../../usr/include/ +CFLAGS += $(KHDR_INCLUDES) TEST_PROGS := testptp LDLIBS += -lrt all: $(TEST_PROGS)