Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2027184rdh; Tue, 26 Sep 2023 10:04:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH5nMcDB5VtI9k0kPZlrz3qntnZ1kX2+qpsyDC1AvTtapVmaafoFNPl6oMgYSBFKUEsdIBy X-Received: by 2002:a05:6a21:601:b0:14c:ca56:69f7 with SMTP id ll1-20020a056a21060100b0014cca5669f7mr9873967pzb.28.1695747891265; Tue, 26 Sep 2023 10:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695747891; cv=none; d=google.com; s=arc-20160816; b=yF0cufHqP1abMQOg/ttcDRB8cEWf93U7yBcROedQ1ouzjnfK1URkWOAqhuv1cWiGV/ vJgyYVzwui+S1ssMh1s+jxVB5Yvbxu94POv/29JYJ/+bid/NB+qPP1T7K3QTF+wJbxtq ySSA3HmmTSxMeTnQrZU4obuXuExFE76iTYg6m/QkvU6cC/HypxVtqosDwY7xOcyxZ1qg N6XtEM5h4FrKf7VwSYG1pZhVWkk211OyjpydlQFEh9zE1ll/JxfM3+BH4u84x/Y8chEf rfpGzGik3OGpryhhttE9N9XoddOIQ7bKAppU4AIjqeP4/X2V16LSULI0ziflxtOa0wsa MhSA== 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=SL9jzjX9Dj4vINipwZ1Fop5IYAbBFu+z+Vj4h2wF/5E=; fh=NS03+Uq+gIBO5wzaW/AEkT+kuOQtS0zuVJ33eAsh+IA=; b=WyvGuWLVlomHDUmqJjk+Px/Z8CAklzByRy3OfcsVJhMfnxs0ayKe4AsrzwY3ginxPM dEkimNzY7gC2Vg8jptp0krTObpVrJBMaZt2GsAZAdC/a/eEojqMlfcKjXrlIS3LY6WDK Stn4cFP0GZITriCrEy1D3+0gO1qI9Wogd3Mqf4rr2wot1du47zkH70BYBUBKKOVEnmiv OKol4L2NeeGTRs3VRjRe6yDyGb5eGFSXFOyLoRUUVDGClWw4PhaaZWtLIwdmjfB4PYBf ++ih5AHh5ohNMft3SJMH0LBg5OMlV5FVAhR8WXnsJ7qgBHDNH4G3HyuCO6UdClQsfQgy Kngg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=o09YdU0m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id bg26-20020a056a02011a00b00578d0cef09csi12861965pgb.234.2023.09.26.10.04.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 10:04:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=o09YdU0m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id F3528802B408; Tue, 26 Sep 2023 00:27:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233070AbjIZH1H (ORCPT + 99 others); Tue, 26 Sep 2023 03:27:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229513AbjIZH1F (ORCPT ); Tue, 26 Sep 2023 03:27:05 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBC40126 for ; Tue, 26 Sep 2023 00:26:57 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-99de884ad25so1007783466b.3 for ; Tue, 26 Sep 2023 00:26:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1695713216; x=1696318016; 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=SL9jzjX9Dj4vINipwZ1Fop5IYAbBFu+z+Vj4h2wF/5E=; b=o09YdU0mmxxsksjNEi04O/LiJIVtHroN558/hfqDMu37IqW2kmIKmpqYJqj5rk9h3D +RU/q2AkDJTYvIPH5kxKcss9HnDthvlShxpzLIBZwwnBuHww7cSbbGPCbHMt59OHB/zq NCl7IiLsIGJa5uZLtk+LsowqKWhyfIkvW4IFhHJTYOg5AztA7m2iGolyUd1xzvCyYAfz nReqoMK4KFdySkmsrBcBqbg5HZ2SkgVK4sCaj6hLz4ziWrBO7703AH/1Pt4sn2r+aC7e 6+s3flZx7nD0IFE/qFn51mOLd5MNX74z+yVa4GaD6Ue77mFwz/gP2xNCJyDJhqZf3wJg 7dPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695713216; x=1696318016; 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=SL9jzjX9Dj4vINipwZ1Fop5IYAbBFu+z+Vj4h2wF/5E=; b=ao3tpTE/GNTAqf1H0vDNbsasjC+kNHbOGvodrVRYgkwDE7ZYnErpoC9gVuwuCHT8Rg msOlKhlPIHGq828deheNxqzSXgdcxNJHSbHLd4yhgCusyWNt5DKSjKU9XzFc3jSm5aOP shxYrwWGYlm6jS1p4Lq6D6LkRPXadewBrCV06YjaknucotIT1NvNAOIFS1B4cQui3gN7 kYtoQq216uO80zV0O9JcASu984DZwZe9l3lYYZtJ6KrtPbq0JM5TcCIKHvttMw5HMEQq j0go3bshKcph7afXfa6qOAl6K6X82P8kKaPjNGqZ/VHJGblGustqnVUW/1nxR4cKP9V9 cmwQ== X-Gm-Message-State: AOJu0Yyh7W/gzW5xIHZxPdl0ENxG7jwsI35tJSlnqK3R7Uu6XhdcFcw3 y/z2O2mHnqXfgOd1DtzLh2v+M3sGtaKl0asOpaNXhA== X-Received: by 2002:a17:906:1d5:b0:9a5:da6c:6539 with SMTP id 21-20020a17090601d500b009a5da6c6539mr8145437ejj.75.1695713216164; Tue, 26 Sep 2023 00:26:56 -0700 (PDT) MIME-Version: 1.0 References: <20230908-kselftest-09-08-v2-0-0def978a4c1b@google.com> In-Reply-To: <20230908-kselftest-09-08-v2-0-0def978a4c1b@google.com> From: Justin Stitt Date: Tue, 26 Sep 2023 16:26:45 +0900 Message-ID: Subject: Re: [PATCH v2 0/3] selftests/hid: fix building for older kernels 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" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 26 Sep 2023 00:27:18 -0700 (PDT) Hey all, Gentle ping on this patch. Looking to get this patch and [1] slated for 6.7 wherein we can start getting cleaner kselftests builds. I do not think I am able to successfully run the hid/bpf selftests due to my kernel version being too low (and an inability to upgrade it as I'm on a corp rolling release). I'd appreciate some insight on how to get the tests running or if someone could actually build+run the tests with this patch applied. On Sat, Sep 9, 2023 at 7:22=E2=80=AFAM Justin Stitt wrote: > > 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 a= nd > 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 built > 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-0ca1c1= 53dcb2@redhat.com/T/#t > > Changes from v1 -> 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/all/20230825-wip-selftests-v1-0-c86= 2769020a8@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 | 49 ++++++++++++++++= ++++++ > 3 files changed, 53 insertions(+), 9 deletions(-) > --- > base-commit: 2dde18cd1d8fac735875f2e4987f11817cc0bc2c > change-id: 20230908-kselftest-09-08-56d7f4a8d5c4 > > Best regards, > -- > Justin Stitt > [1]: https://lore.kernel.org/all/20230912-kselftest-param_test-c-v1-1-80a6c= ffc7374@google.com/ Thanks Justin