Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp467598rdb; Thu, 5 Oct 2023 11:00:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEXj1Wlx0lABOtL6ioMsohTFynHQTrghsO0TX1TAr2CXWLm7lxVEx01+edyXnK6p9/+hWat X-Received: by 2002:a17:90a:1c0f:b0:263:f521:da3e with SMTP id s15-20020a17090a1c0f00b00263f521da3emr5096357pjs.2.1696528858748; Thu, 05 Oct 2023 11:00:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696528858; cv=none; d=google.com; s=arc-20160816; b=kzWdZAMGpaqkrniBMXPdN4mWdc07TTb08cWs73jFUnk22cVs2VKkctu2XJWq+5isxE MS5lQA4cGACUym/33SRvHj0qAf/3ES32mScZOOj//AE07DzXY7G1GiElUggSrqgafg/z y0ums6wIsnzULVTVnXpZV5sugEPsmzbcLAOUpWAt8IkgqelOLg+ylHTHvDMgIUwi1JUP Pr9xzvPFDTm/T+glgpbaNrW5H/CTkCKqiBrTBOcCsR6nk3EE+wtIVckPntNKwFjfiCVI U4jhQLe6/NFpd6eBEt+WitV7wj0ZT818wOA0E47dKiXo3ezVfdd2nzlswmDZgl1gO7gu w6aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=soC/hI6qoVGb1EBSelNwhFg1ZrYnyxzAE+/e29uwgT4=; fh=uXe1KJx41raD9GH0ZPmNDGi8ZRxQlil3jYL8zm/Z9oA=; b=V4G9QlYCX+Zw6YQwVIHhGnIrkiRZCW5adVh4iSEv8I+zq/RFJ/xK/LBq1bdIgXTbgZ N3tewDO9nJY8WcOcoVB1ziNrqoxf4CCMXwANVQJU4CTvvPMLSno9B0X7rtyHubpCS0fn nL0NoAmJd7jxND844CJ1XtwE7UBA6mRGarHtVB7MJ9S41OvqdeN3Y+Tlnd0iuR49WgYe wSyoFwQiyS4f4OKb1Ecf1nS+c/mcAcXKYUTGMlWyyTVHMO4Ie8bCjnuBwIJ9CfBNpqZS LJ8y0rhGtl5gE513Blj740bg89fvPwuAfmhrUOqwMi3Af5CKXuxzHjDly+8Lh3Hmt6Iu 1CZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=22QnwidH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id nn11-20020a17090b38cb00b002791d79bbf9si4400424pjb.187.2023.10.05.11.00.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 11:00:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=22QnwidH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 5A11B80907B3; Thu, 5 Oct 2023 11:00:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231417AbjJESAh (ORCPT + 99 others); Thu, 5 Oct 2023 14:00:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230453AbjJESAb (ORCPT ); Thu, 5 Oct 2023 14:00:31 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CAB79E for ; Thu, 5 Oct 2023 11:00:28 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-533df112914so2207950a12.0 for ; Thu, 05 Oct 2023 11:00:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696528826; x=1697133626; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=soC/hI6qoVGb1EBSelNwhFg1ZrYnyxzAE+/e29uwgT4=; b=22QnwidH5T8m0rE1qmnLt5HKBH53ChSY2UjyhuUrECXA4zPkPQVv66mhNptLztf2sk mMguaiogQpVZBMqEtWvp4bSymATUAvvaORmfKpH4Rg270CNBuijTKfAJzrB629kKaLOO pSbxbzk73QSNvp/0JsBkmC//eW+EaqR3H8Ic7EgZ5dQCMmg9wGIb8+uDckMgjFMJlQ4g ggme4kxJDhLdpTLffXxy8v41oI9XzaviNKmJIigD1jnZcPSfhIMbpawzbMRDQuBniWlE JmULgWkkDicR7UcNxdhjVDjcLl+IoAushx00kkqcQMc2rdzuje+wWqKpPTUTa9ipOjdU bjCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696528826; x=1697133626; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=soC/hI6qoVGb1EBSelNwhFg1ZrYnyxzAE+/e29uwgT4=; b=iotE5SOy4SCUt1WNJoF10NaOUb2omO5F+JAp+2Q5yNk+ERHsDGoj/l9BBrQ39BHh25 gRkYZXoLgMQku9GUokdHjbFCYcUmIvwE0QlaAfXVhUC4w6yEuzZBmrjPwdidKngTHB1E O2NJ7uv+oth51A9Qh/bFJqcHpnF39obBhE99aPvlV1fx9k8xj4UNlAyy02RjULkmrBtE 9eT/hyEVryEy665/GgIb5Nqf6QE97lTeZVOcllsYFIYAw2hDRMv+gT17lnaHuUWkHh8P VeX1dHGN9nRD0c8YMplzzp8h4wUDc1eErq98T3eVTQaq6XETVtxYtNyJX3dPV98JM+Ok dmdQ== X-Gm-Message-State: AOJu0YwlzeeEuVei63QE5bJZmCg6Wx9beezqFfdiq+m8pUJxDy5yGsz9 NiaE8Ml5wSv6qWMdlYGzNG7EmEIe8ws2kFnSrbdGkQ== X-Received: by 2002:aa7:dd0e:0:b0:533:1832:f2b4 with SMTP id i14-20020aa7dd0e000000b005331832f2b4mr5295009edv.13.1696528826582; Thu, 05 Oct 2023 11:00:26 -0700 (PDT) MIME-Version: 1.0 References: <20230825-wip-selftests-v3-0-639963c54109@kernel.org> In-Reply-To: <20230825-wip-selftests-v3-0-639963c54109@kernel.org> From: Justin Stitt Date: Thu, 5 Oct 2023 11:00:12 -0700 Message-ID: Subject: Re: [PATCH v3 0/3] selftests/hid: assorted fixes To: Benjamin Tissoires Cc: Jiri Kosina , Benjamin Tissoires , Shuah Khan , Nick Desaulniers , Eduard Zingerman , linux-input@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Shuah Khan Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.3 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, 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 agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 05 Oct 2023 11:00:50 -0700 (PDT) On Thu, Oct 5, 2023 at 8:55=E2=80=AFAM Benjamin Tissoires wrote: > > And this is the last(?) revision of this series which should now compile > with or without CONFIG_HID_BPF set. > > I had to do changes because [1] was failing > > Nick, I kept your Tested-by, even if I made small changes in 1/3. Feel > free to shout if you don't want me to keep it. > > Eduard, You helped us a lot in the review of v1 but never sent your > Reviewed-by or Acked-by. Do you want me to add one? > > Cheers, > Benjamin > > [1] https://gitlab.freedesktop.org/bentiss/hid/-/jobs/49754306 > > For reference, the v2 cover letter: > > | Hi, I am sending this series on behalf of myself and Benjamin Tissoires= . There > | existed an initial n=3D3 patch series which was later expanded to n=3D4= and > | is now back to n=3D3 with some fixes added in and rebased against > | mainline. > | > | This patch series aims to ensure that the hid/bpf selftests can be buil= t > | without errors. > | > | Here's Benjamin's initial cover letter for context: > | | These fixes have been triggered by [0]: > | | basically, if you do not recompile the kernel first, and are > | | running on an old kernel, vmlinux.h doesn't have the required > | | symbols and the compilation fails. > | | > | | The tests will fail if you run them on that very same machine, > | | of course, but the binary should compile. > | | > | | And while I was sorting out why it was failing, I realized I > | | could do a couple of improvements on the Makefile. > | | > | | [0] https://lore.kernel.org/linux-input/56ba8125-2c6f-a9c9-d498-0ca1= c153dcb2@redhat.com/T/#t > > Signed-off-by: Benjamin Tissoires > --- > Changes in v3: > - Also overwrite all of the enum symbols in patch 1/3 > - Link to v2: https://lore.kernel.org/r/20230908-kselftest-09-08-v2-0-0de= f978a4c1b@google.com > > Changes in v2: > - roll Justin's fix into patch 1/3 > - add __attribute__((preserve_access_index)) (thanks Eduard) > - rebased onto mainline (2dde18cd1d8fac735875f2e4987f11817cc0bc2c) > - Link to v1: https://lore.kernel.org/r/20230825-wip-selftests-v1-0-c8627= 69020a8@kernel.org > > Link: https://github.com/ClangBuiltLinux/linux/issues/1698 > Link: https://github.com/ClangBuiltLinux/continuous-integration2/issues/6= 1 > > --- > Benjamin Tissoires (3): > selftests/hid: ensure we can compile the tests on kernels pre-6.3 > selftests/hid: do not manually call headers_install > selftests/hid: force using our compiled libbpf headers > > tools/testing/selftests/hid/Makefile | 10 ++- > tools/testing/selftests/hid/progs/hid.c | 3 - > .../testing/selftests/hid/progs/hid_bpf_helpers.h | 77 ++++++++++++++++= ++++++ > 3 files changed, 81 insertions(+), 9 deletions(-) > --- > base-commit: 29aa98d0fe013e2ab62aae4266231b7fb05d47a2 > change-id: 20230825-wip-selftests-9a7502b56542 > > Best regards, > -- > Benjamin Tissoires > Tested entire series. I can now build the tests using this command: $ make LLVM=3D1 -j128 ARCH=3Dx86_64 mrproper headers && make LLVM=3D1 -j128 ARCH=3Dx86_64 -C tools/testing/selftests TARGETS=3Dhid Tested-by: Justin Stitt