From patchwork Fri Jan 27 13:57:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49437 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp849233wrn; Fri, 27 Jan 2023 06:03:52 -0800 (PST) X-Google-Smtp-Source: AK7set/UOWa3YbC7QQyxFs8anE1PTsEBOjnhJP27Y4KVZwpKdyodH+J87HolHhB5k8fwzUZ7dYmc X-Received: by 2002:a17:90b:1a90:b0:22c:d44:5669 with SMTP id ng16-20020a17090b1a9000b0022c0d445669mr6721123pjb.22.1674828232479; Fri, 27 Jan 2023 06:03:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828232; cv=none; d=google.com; s=arc-20160816; b=XQ8xXm2a1lJtew1aySitUM2fbvTcXRbqyKcMI1q6nOvUSPE6/Oejcy1TsKcrshk3j/ zTRLpVMshvG6mvRCHmIjEfGDp24xPRykCNCfH1fD50+BX5xFhy6U7Y7fsKS/KjzjOYVz RSZaoS3aJvlKIKYAJXUiWfmYckHwmOlsBS/6kBHYK+2M4QFuKKyJWjKq9TPEVXJSTb/g TWsxzblJeEoDHBu+8KS3ld+rhrPZ3FrxHj0f7DHHN5SGACRm0RB+w8BjLaBSBYv/GsW5 BTDbmMf2lAhk7bl8GhEiQmIX/y7+H7LsfUTZXMjGfrxdZ52aVu43nhZvq5nQNp7LhskB IO6w== 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=A5XTFroFwvak3db3VEonrmAB0xhT6C/E1BSo03hxwj0=; b=xHTpH0XqEteqWNWgp5Fre47KlHJMOrTxxgVwUovcNGu3vd+g9PajA9/ur0BKDgbRlR f0GPd7AfCLxE4usjb+OVloLJRAOk1fzmopkvwef4XkASo+JWN3n5MAtOvf5ybFuoRlkO GVjDQRxmr8UU3bx4paFyQ66SgdeBKlac1cuP/FwRtWQTK2Ut900BQhUR+kAQtQp25aKc z0UytWy1RTatoIb3vTK/IX7hP26g92rDQ/eN/HBE30ANemcEeGLUIV04d+kzNN9YvmAH NlDxReCy2YYG60r7bh1VY7b2wyYDPFqqVN04Z96orrkLaa/ger/lJ8WKQEa7XbwdU6+F c8Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=egGwYK11; 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 l5-20020a17090a384500b0022c04ac48d0si4640173pjf.149.2023.01.27.06.03.23; Fri, 27 Jan 2023 06:03:52 -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=egGwYK11; 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 S234830AbjA0N7p (ORCPT + 99 others); Fri, 27 Jan 2023 08:59:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233917AbjA0N62 (ORCPT ); Fri, 27 Jan 2023 08:58:28 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C94BF22A2D; Fri, 27 Jan 2023 05:58:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827887; bh=6EmQnswFj6lYa3iuQ9jXx4tuzOMzQcsG7VTPpMJ0uK0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=egGwYK11B2go2UrPsxHEmiyF+t/D82frZQ0me91eIRFDS45amBgD1+KWoOW6mCkcs DNcv3CHhYXh8e2yjKbr+CX5xhIMYMic6+lz0/6ulUAwBhrPoAUjg4ZdeDXXznD4glL FWl3u7+JEdDRIAx+dkuNgS9CyzUbyQAkG7gfPHai+OGAe6zk7eRDEmQHbyRzBVciTu It14tq5mEu4BbS3qJ/HNJbkQCgllavQMPnCaXseiV4rx/CoKHI+CgVqJVBTDF79LFk mvE9p3DFKANvMbcdmQ076hfMjDm3vu3kPQSEqBk/VJttmGpz7Y2qXDuLugqtYlNMAT WBaCIbLFkibjA== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0b3PlGzhd0; Fri, 27 Jan 2023 08:58:07 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers Subject: [PATCH 30/34] selftests: bpf docs: Use installed kernel headers search path Date: Fri, 27 Jan 2023 08:57:51 -0500 Message-Id: <20230127135755.79929-31-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?1756184688831187964?= X-GMAIL-MSGID: =?utf-8?q?1756184688831187964?= Use $(KHDR_INCLUDES) as lookup path for installed kernel headers rather than using kernel headers in include/uapi from the source kernel tree kernel headers. Signed-off-by: Mathieu Desnoyers Cc: Shuah Khan Cc: linux-kselftest@vger.kernel.org Cc: Ingo Molnar Acked-by: Shuah Khan --- tools/testing/selftests/bpf/Makefile.docs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/Makefile.docs b/tools/testing/selftests/bpf/Makefile.docs index eb6a4fea8c79..0a538d873def 100644 --- a/tools/testing/selftests/bpf/Makefile.docs +++ b/tools/testing/selftests/bpf/Makefile.docs @@ -44,7 +44,7 @@ RST2MAN_DEP := $(shell command -v rst2man 2>/dev/null) # $1 - target for scripts/bpf_doc.py # $2 - man page section to generate the troff file define DOCS_RULES = -$(OUTPUT)bpf-$1.rst: ../../../../include/uapi/linux/bpf.h +$(OUTPUT)bpf-$1.rst: $(KHDR_INCLUDES)/linux/bpf.h $$(QUIET_GEN)../../../../scripts/bpf_doc.py $1 \ --filename $$< > $$@