Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp1195904rdb; Sat, 9 Sep 2023 13:22:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEqXvMd7jwOT0JzCp3BDn17/+UGTU1vWu1N/GOuNcg1JEbzGqnePzwTwlbD1ohrQJe225hj X-Received: by 2002:a05:6808:23d4:b0:3a3:baf8:5b8a with SMTP id bq20-20020a05680823d400b003a3baf85b8amr8101612oib.13.1694290929406; Sat, 09 Sep 2023 13:22:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694290929; cv=none; d=google.com; s=arc-20160816; b=PvI/8mNiH3vRAZSCvk6oNculrEknynTcfk5NMEChEiMHXhrfeB7iHaPQ3Cr4HmVgXH Zi2DCeIRav5M60vZmhS2nVldeaKDSwOEBkpi+BScIZBHVjvvs1xjTm97FN+GT+KoInu7 tBEpMg3i1xUCXvrsKlwuQ1nwbSCksyNe8LMh1r88VDddNf/DvOHQY3Klmw1ErfrM6npF 1YnCo/NnH2Tjz6tcuQELNaIxoRG3746khovn27hi6Y8HMb/FcGBrh62fUiTAlK7R198K qewGCiCyjhL63CbG1mkoNSKl2pXxjWcwkkXFtyo6uhDf67RE8zpW0c5GZqgl3mTv92yi BhfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=9irfI9A0N/Dt7kJJSjpCAtQ4KpuXf47ryLkMZkjJxb8=; fh=NS03+Uq+gIBO5wzaW/AEkT+kuOQtS0zuVJ33eAsh+IA=; b=vzbXrtLSFVmbdg/tHZWeSz4AUJ1+SuTV3sLmtfIgYExicV9j3e3UaYcte1tMAnSVKE xQO7xso2KeY5Qbf5yTwM1lFi7qqGyCuzQaj3dDNacdT5zvTGKcACZcrEtFtu6q/ggfbe BsMKYUVCrIsEph21G4GusNB67JlyM8S6fXFB+n6eROXjFE9ic3Xe1kbmoV/LiLmBhPD/ bPkwBC/d4c0iQiuoYw3FNqNeaTgaFjNzWA2OqQ71qu43vZ8ZeY2egNNFQvWId7CcTCZ4 2eXFj5OfCKr1szuiMs5zR09BNbmDgQpFk/C0Q6lCQi8v6yn0xsRyln+690HV1HNoXkMI 9ZQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=iAs4beuK; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 19-20020a631753000000b00573f93787e4si3394131pgx.103.2023.09.09.13.21.56; Sat, 09 Sep 2023 13:22:09 -0700 (PDT) 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=@google.com header.s=20221208 header.b=iAs4beuK; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242245AbjIHWW4 (ORCPT + 99 others); Fri, 8 Sep 2023 18:22:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243986AbjIHWWu (ORCPT ); Fri, 8 Sep 2023 18:22:50 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB2491FEA for ; Fri, 8 Sep 2023 15:22:44 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-d7e857a3fd5so2639812276.3 for ; Fri, 08 Sep 2023 15:22:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1694211764; x=1694816564; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=9irfI9A0N/Dt7kJJSjpCAtQ4KpuXf47ryLkMZkjJxb8=; b=iAs4beuKZ2q3E6N3f1tNzGqeZjG/EcTLbWmMDX06pL+TW1odRjPXd8WDXIJIxBLe4n WJbDRVlkQtqlePwdbUQXlbNPcfdhVOCrCKOzNsDIJBr4Hk/nK/E/mFxocNbByOC7+4od 63yL0yKZaNtCDkfAMHOyBeFGVzbdSeL3lrYmKoLhRMMxw5YntKN9WDwHCSYPiJIK6dQK fuk4sU/+vViQBJ1aciPEMbMLjJPCPPBzMk6XqdypKh9EgG13rgHLQsBmow/H+wO/swjs E2nNohyuDAj+hAEayRxj8MuIZwq5wFaHZooQSQozQmp1NcUb5VsnPzSiQc12bPe1RlLR xUyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694211764; x=1694816564; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9irfI9A0N/Dt7kJJSjpCAtQ4KpuXf47ryLkMZkjJxb8=; b=TD7LGF+8+F7/yDXZXQ0GNrhm4xYVvLzCu+2Ac7QdFTd/N82ntxyVA7CKj3OBfUweTd 7wszbKlsqzTnC3Er942sKr6i06eRJPs2/E6nm13niLCJcl+m6ZLTl6eZzAwIT9LDbkVg btZoGsd272hwgX/3E5Bd9OfJCqiQIMfP29jSQR8gPiIrpR7CYrxqoVURKAxXzeRzlgTY S6dOXEJxtTZZJFIr12nK0Nn9T8mYbsPEu1SfNpF19kmOORF1bHO7lj/jCT7vn5EhGuM4 K0Rw3SKuNTpcxFz5tIWwXCGsN0yvO65VyS1rZLWmTV+bq9Mr2DQ8sprqyuRieri85l3v BEfQ== X-Gm-Message-State: AOJu0YyCWTpg77Ih23EqTPSWBHJM+Ir1mGAt74SK7PfbO4xvprlRo5ZJ Ov++v/bU5K6MgR7ShpeTrlrJ7ITC8q6UpMT+Aw== X-Received: from jstitt-linux1.c.googlers.com ([fda3:e722:ac3:cc00:2b:ff92:c0a8:23b5]) (user=justinstitt job=sendgmr) by 2002:a25:cb4d:0:b0:d13:856b:c10a with SMTP id b74-20020a25cb4d000000b00d13856bc10amr82340ybg.3.1694211763898; Fri, 08 Sep 2023 15:22:43 -0700 (PDT) Date: Fri, 08 Sep 2023 22:22:39 +0000 In-Reply-To: <20230908-kselftest-09-08-v2-0-0def978a4c1b@google.com> Mime-Version: 1.0 References: <20230908-kselftest-09-08-v2-0-0def978a4c1b@google.com> X-Developer-Key: i=justinstitt@google.com; a=ed25519; pk=tC3hNkJQTpNX/gLKxTNQKDmiQl6QjBNCGKJINqAdJsE= X-Developer-Signature: v=1; a=ed25519-sha256; t=1694211760; l=1956; i=justinstitt@google.com; s=20230717; h=from:subject:message-id; bh=6t8U2ctGsOCguE1q+j7opibZJXo2rKtjXxRgmhSJEx0=; b=6HwCgpBH7Dms8xi43xj5xBqDMogSIehMI+w9LKuw68MhZgBZRYqaREBJnnDKMwyX+B7vVbEy+ acvBW/er81XDbEJIFYnTeXWIVtHVBw/Lc8w2xXSbOZP1FOMD9jveHZq X-Mailer: b4 0.12.3 Message-ID: <20230908-kselftest-09-08-v2-2-0def978a4c1b@google.com> Subject: [PATCH v2 2/3] selftests/hid: do not manually call headers_install From: Justin Stitt To: Jiri Kosina , Benjamin Tissoires , Shuah Khan Cc: Eduard Zingerman , linux-input@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Benjamin Tissoires Content-Type: text/plain; charset="utf-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable 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 From: Benjamin Tissoires "make headers" is a requirement before calling make on the selftests dir, so we should not have to manually install those headers Signed-off-by: Benjamin Tissoires --- tools/testing/selftests/hid/Makefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tools/testing/selftests/hid/Makefile b/tools/testing/selftests/hid/Makefile index 01c0491d64da..c5522088ece4 100644 --- a/tools/testing/selftests/hid/Makefile +++ b/tools/testing/selftests/hid/Makefile @@ -21,7 +21,7 @@ CXX ?= $(CROSS_COMPILE)g++ HOSTPKG_CONFIG := pkg-config -CFLAGS += -g -O0 -rdynamic -Wall -Werror -I$(KHDR_INCLUDES) -I$(OUTPUT) +CFLAGS += -g -O0 -rdynamic -Wall -Werror -I$(OUTPUT) LDLIBS += -lelf -lz -lrt -lpthread # Silence some warnings when compiled with clang @@ -65,7 +65,6 @@ BPFTOOLDIR := $(TOOLSDIR)/bpf/bpftool SCRATCH_DIR := $(OUTPUT)/tools BUILD_DIR := $(SCRATCH_DIR)/build INCLUDE_DIR := $(SCRATCH_DIR)/include -KHDR_INCLUDES := $(SCRATCH_DIR)/uapi/include BPFOBJ := $(BUILD_DIR)/libbpf/libbpf.a ifneq ($(CROSS_COMPILE),) HOST_BUILD_DIR := $(BUILD_DIR)/host @@ -151,9 +150,6 @@ else $(Q)cp "$(VMLINUX_H)" $@ endif -$(KHDR_INCLUDES)/linux/hid.h: $(top_srcdir)/include/uapi/linux/hid.h - $(MAKE) -C $(top_srcdir) INSTALL_HDR_PATH=$(SCRATCH_DIR)/uapi headers_install - $(RESOLVE_BTFIDS): $(HOST_BPFOBJ) | $(HOST_BUILD_DIR)/resolve_btfids \ $(TOOLSDIR)/bpf/resolve_btfids/main.c \ $(TOOLSDIR)/lib/rbtree.c \ @@ -231,7 +227,7 @@ $(BPF_SKELS): %.skel.h: %.bpf.o $(BPFTOOL) | $(OUTPUT) $(Q)$(BPFTOOL) gen object $(<:.o=.linked1.o) $< $(Q)$(BPFTOOL) gen skeleton $(<:.o=.linked1.o) name $(notdir $(<:.bpf.o=)) > $@ -$(OUTPUT)/%.o: %.c $(BPF_SKELS) $(KHDR_INCLUDES)/linux/hid.h +$(OUTPUT)/%.o: %.c $(BPF_SKELS) $(call msg,CC,,$@) $(Q)$(CC) $(CFLAGS) -c $(filter %.c,$^) $(LDLIBS) -o $@ -- 2.42.0.283.g2d96d420d3-goog