Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2199636pxm; Fri, 4 Mar 2022 11:12:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJx13yrHRui0fn+I00+4XEfMrT9R6x0hQ+FpbwpmpqmDh5QgznmMeCDvNt2wLab/tknVILwj X-Received: by 2002:a65:5941:0:b0:375:9bfd:473d with SMTP id g1-20020a655941000000b003759bfd473dmr33679625pgu.348.1646421154434; Fri, 04 Mar 2022 11:12:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646421154; cv=none; d=google.com; s=arc-20160816; b=oANZPbjUoO3/78tWiH1VFldElijJyUagFAmFmT/VaAvF8jb2rFAe+Pdd+Bpwgxd7Rc yIokB/IuFgRHXlYqfknL4onXblWuQ1MuFutjmqnUMKycRMNW/i1KcgQtaTM0W2x2lVg3 Zra52VfN5XDUkyVgs2DY2OcMYVH5nTGyvuT8pVfej+4+aLDKo7hkhevxJIRWN0FWKEqC qY60SMY2brHVxXPDF1fm8w7dP/4I7qceD2Ny05+DF4K0a9bSJ0lX43AScyRXYjskW906 KVVgaEZUriZ4Bl857gigBM4kwpOzX8au8a0pna/k0/Qe+aK2gdxR3wQWyEw149RSGKJb dbCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cq+el6WC5e4HMbiWeS1OtZbA4MtZWH/3qwZWk0UM08E=; b=r6xyYd+gaFIJzv/rhlscjIAdJtWUQg2vw13spVbhsipjzU1s+7oZIpuC/uChZ1JO3f BCL/K8Ic1/Z3JeClwM+3406qSJ8xU9X592zbQVp9JZNM3nXLICDDclcAKgc0LIiWppdA UuXIFcSJwCIKncFYbbhZdBd6JbHnRvFfjkfXFoQNNpo3P3x71ggKGbMFYeBTJKyN8EdK SNsPrZXpkgq9oh7ERKTYGTql1guAPJKr+TsTCOun13DBFOCYsrsSleuoPeIxZntnZsa0 NTcb7yWDWGfoXYFVoviFFIUmNAJQrRa6cyp1/azdmG8u4uleZUqZK4R25r0sDrNG9oiQ 8S4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JH1GBY8K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id me12-20020a17090b17cc00b001bd6b5d454dsi360434pjb.143.2022.03.04.11.12.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 11:12:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JH1GBY8K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 501331E1493; Fri, 4 Mar 2022 11:05:46 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241761AbiCDSf5 (ORCPT + 99 others); Fri, 4 Mar 2022 13:35:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233098AbiCDSfz (ORCPT ); Fri, 4 Mar 2022 13:35:55 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B9BB1B3A72; Fri, 4 Mar 2022 10:35:07 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1FD97B82B33; Fri, 4 Mar 2022 18:35:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A8ACC340E9; Fri, 4 Mar 2022 18:35:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646418904; bh=VspvfKvvftytlJT5f16IAdHG7Sa6FqooxzJfMWhUAYI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JH1GBY8KoPTo5zS/7jY5BUEh5CcIH0vMZ2MKdA2NkhKE1o0U/4bHuKH1kWDUOaA3r q6u8qFlbYTlpDU2fo3+XXQKZlwHIwVP/kNTFAvjCnqgwUXzbCVI10OBWfUnUCuWQwf A6bHhUBGiIrldc0QbPY8x+CrwiE9ebegxd69jQ/k= Date: Fri, 4 Mar 2022 19:34:56 +0100 From: Greg KH To: Benjamin Tissoires Cc: Jiri Kosina , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Shuah Khan , Dave Marchevsky , Joe Stringer , Tero Kristo , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH bpf-next v2 10/28] selftests/bpf: add report descriptor fixup tests Message-ID: References: <20220304172852.274126-1-benjamin.tissoires@redhat.com> <20220304172852.274126-11-benjamin.tissoires@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220304172852.274126-11-benjamin.tissoires@redhat.com> X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, URIBL_RED 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 On Fri, Mar 04, 2022 at 06:28:34PM +0100, Benjamin Tissoires wrote: > Simple report descriptor override in HID: replace part of the report > descriptor from a static definition in the bpf kernel program. > > Note that this test should be run last because we disconnect/reconnect > the device, meaning that it changes the overall uhid device. You might want to add that in a comment right before: > @@ -329,6 +395,9 @@ void serial_test_hid_bpf(void) > err = test_hid_raw_event(hid_skel, uhid_fd, sysfs_fd); > ASSERT_OK(err, "hid"); > > + err = test_rdesc_fixup(hid_skel, uhid_fd, sysfs_fd); > + ASSERT_OK(err, "hid_rdesc_fixup"); There, so that you don't add another test after this later on in 5 years. Anyway, just a nit: Reviewed-by: Greg Kroah-Hartman