From patchwork Fri Jan 27 13:57:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49413 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp847072wrn; Fri, 27 Jan 2023 06:01:00 -0800 (PST) X-Google-Smtp-Source: AK7set8AT8nIwZ6R0YITBwBt9PebCkjhtFASN0aY09SGEeqROwQF+BkEYyChXbTHVUX5LxrxAGpz X-Received: by 2002:a17:906:4e06:b0:878:6a5f:341a with SMTP id z6-20020a1709064e0600b008786a5f341amr5078655eju.21.1674828060090; Fri, 27 Jan 2023 06:01:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828060; cv=none; d=google.com; s=arc-20160816; b=x/qubaARiI32qa9GtlByiepAi9NPvdTrwjD1mPPTLPX/iK2fcemmcIzXqQNO95DIA9 mEd1bQmKovZHhkDU7Nr7nu70Rq8uDzwh0C+zpi5eVtTBCloXEvdkmH8fGgX/JoDt4LSi BTEYN95I8GsAfMSlNDrDwro34nRvrC3MC0LOf5u6WXJnuVm6Jmbdww+Tg8JD+Uciozkm ol5tKBFkmbg9Fe4r9LS+zMPa8WXxBGnMGwWvUxqegFiPXsmrdcxw1bjX6pL1DiJ4Jd8q XuQHD4SV0rp+bKUmeFYgjtFEGrj0H0zxBa40orDGUFASEcwLTLulqggar18laadj8haQ Fzkw== 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=TXFFlRViux15yRPWFU9cK3wYm08Oy0jOtT2NC9iB+XY=; b=wEg9LKmSbeApw1qt21QtY+Sr5ZORVTJQx2zG3QRUvv6uEp9m4riiKg8FwVuEZzSg58 NFhKIBnsE3GrSyMya5D4XSYfnQ/WTNKsULt0dlxZIyFibVbrPr+HzJZIQWPBctBZ67zq 0tAcd5y/5fa2FYWgi1qU8gHYDks2mphmw0ue1+Te3cGG8RlFalCrjYbRWBZXOWmixkNI vkPwSPcB8HZ0fmeem3XummRBcMNcFcNZwEjs8+VQ+kFBVjH/7NlgWHtp13Sl0rau9rA3 1drzlAiUWOyGrc47XrgdrSDMiHJsX2psphzskd3lbtvXdSkl5LAPDseCMcDdoNuWYKEU Vh3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=NUs6hHu6; 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 fs22-20020a170907601600b0087bdb523367si1105872ejc.222.2023.01.27.06.00.31; Fri, 27 Jan 2023 06:01:00 -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=NUs6hHu6; 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 S234390AbjA0N6p (ORCPT + 99 others); Fri, 27 Jan 2023 08:58:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233670AbjA0N6K (ORCPT ); Fri, 27 Jan 2023 08:58:10 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECBAE76B1; Fri, 27 Jan 2023 05:58:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827884; bh=Hovg2rLgtOn0+9QtiG9zIieTKyUfb4MTHQUMXrteeb8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NUs6hHu6zSApBdm2LEHPcGuHogc7yhJt0t3IHrhVa78nTEkJSTZAh3uNXr6U8BevY /4uN6/LAdnTsYXhnuwz7gqeD8+Sqa5KLyXohzV/Aj6zotBqRMAtE+WtTW3hmaPyyxz C+UOSSAhLqdHKX9OX0cKSmezJFpHv6VhGqVWdEv65+3Yq8b9Bk3Kq6+6N/lRoulSz+ yB0mIGQ/tgRS327T/SUMVNDwCtI3kD4Y8MhDQnF/hxwREpYPfOTm9guCL8hKLNY+E5 rgKXQf0J/h/NgMd9lW3iH1ukG5NdwIXOwvVhTkWwN7ZxsWqvFfooIjZdi2hIsOzN1s 9tJB+V/Bd0iGA== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0W6NG1zhWZ; Fri, 27 Jan 2023 08:58:03 -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 13/34] selftests: media_tests: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:34 -0500 Message-Id: <20230127135755.79929-14-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?1756184507637942868?= X-GMAIL-MSGID: =?utf-8?q?1756184507637942868?= 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/media_tests/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/media_tests/Makefile b/tools/testing/selftests/media_tests/Makefile index 60826d7d37d4..471d83e61d95 100644 --- a/tools/testing/selftests/media_tests/Makefile +++ b/tools/testing/selftests/media_tests/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 # -CFLAGS += -I../ -I../../../../usr/include/ +CFLAGS += -I../ $(KHDR_INCLUDES) TEST_GEN_PROGS := media_device_test media_device_open video_device_test include ../lib.mk