Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6963898rwd; Tue, 6 Jun 2023 04:43:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6cDA+bRGKTv8vRkcowK6ANv64t+BC3oFeC/g2V/sVCsGkSZvsA6AgYV3tInTKGr6Sg5Inz X-Received: by 2002:a05:6214:21ed:b0:61b:714f:73f8 with SMTP id p13-20020a05621421ed00b0061b714f73f8mr2182691qvj.0.1686051799758; Tue, 06 Jun 2023 04:43:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686051799; cv=none; d=google.com; s=arc-20160816; b=lQ7I+IpA+vcqaHPbXKH+no60VuR3GQBTH8DckAV82QcX13nvC3MLEEgXR5UcOYQKvI aK8bV5erE80qipuF7OgHR3HL0JC56GRfCMtga3hobhQHJ17MMn13jX4il1+az+VxZE0C f55tnrwkSAx1X0rfmrdXMHdjB0y8oxxFUwRnwsK0vhaoQJZXrlUI+ZnAv/TPZyPBXl1T cZ4pdxY+PmQHgAz6PEzNdodBwSNus0xQyxObz08GTmHPYFDGHrWeSQ0lfFhDPip62kVZ JD8g+PTGZF1DU9b38Ew6FGup3VkHPd0XUPXtAtxGpltBfx9h4DV7zVdT61Z+Gzrcnmc5 pj8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=lvATKcdZSwuPOJh2GRkP6X8hkhA21/bnoihEc7xpbVg=; b=w1r8yqoKr5bjn691+wJL/UCopAMLbpl5ZIyVw1au4DYonYn+ClaRWvTAQUg4LG51xv GCqEpLxNIzjyGudLk3rakHarkxaTBDSFMTPaj2dJo2KbsqMNYe4iLHIay/QV3CacEZtm 8nW2fXQBegHMfI2L7OlQtrY85X75OnTzUGpFq/Tt60hBfJXZ6hxkAE1mYYiV37kzVNeb g8Voc6u8y143gbiy4GjyVGzdBWNev1FrnQq7h5xi6JleaaZJlkK3owNyfdHal7WANQd5 fBcY7TI67I6+y9c/bxIWPrxfVdsTrb5PyzrOenqH6m/fmxGY2z9sFuSQ+8wXLEB/Ztza Z9AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tessares.net header.s=google header.b=kkLLVCkl; 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=tessares.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a13-20020a05622a064d00b003f532118299si5964259qtb.410.2023.06.06.04.43.04; Tue, 06 Jun 2023 04:43:19 -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=@tessares.net header.s=google header.b=kkLLVCkl; 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=tessares.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236400AbjFFLf3 (ORCPT + 99 others); Tue, 6 Jun 2023 07:35:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235886AbjFFLf1 (ORCPT ); Tue, 6 Jun 2023 07:35:27 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBA5AE52 for ; Tue, 6 Jun 2023 04:35:23 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3f6e1394060so51913435e9.3 for ; Tue, 06 Jun 2023 04:35:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tessares.net; s=google; t=1686051322; x=1688643322; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=lvATKcdZSwuPOJh2GRkP6X8hkhA21/bnoihEc7xpbVg=; b=kkLLVCklE5BWE+AJ9mXI4TIQutfTJhTLR6Slhen4KahnxjKdtVRy37/sFU0L+Q+db2 OExJHd2WMUVHHy6wUwwAkaF0vfd6P3q5pVBjt3o7stpyWEZOq3L8HRzNPiMaojaJLjvA whYeOY1676CfIKjVytE6OXhftebOvEjMHDq20m/8J6oZs00MR0GXwk1eU3rxIHHGqhh8 EuxOG3+EJPg4oM57NrpX2KBsoJcBNhnVVlRpCMXbWhC9nT7WpY69fpV4TqBQpCaZrLgy nT5NAmrWS8vxhM7J1Fvq3uGiN0E7zVpqBdei+OWDlOZs4r4YLUzw9/phQ76BHDNAFTls H0MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686051322; x=1688643322; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lvATKcdZSwuPOJh2GRkP6X8hkhA21/bnoihEc7xpbVg=; b=f0bl8kdLJlwL/2NBDdqafJFGVGYX9QJABBUv7c/oo9mZth2x1LBPXGS8MfCh0jQIxu i+Sr1uGKSo8M8gn2IwCWX6l1mf2XVAEXCQTJaXuK45BdZQOkCqj1ibPVKd30ITptGWam gdvsQOjTC70HGZGTQdTiKe+dssNOJkXCBI4dTEffRI1NdvWq2vzETsbzranKQiXblnts 0rlC5VIXIMZrF5VFOXHStRHBgXvfujeSUBV/aPiu20m4s3WRrzprVBOw0/WRiz5Q5dhF JFiq8aZ6q3HkL79vV5r9CUHrrJWenZOZ6gjTrOnJDPa5YAh9FnQN9xDVMAHDIJw05Ik0 9/uA== X-Gm-Message-State: AC+VfDzYgMcu/9qa1dN0kmYfOJn7BwSKs3BW3a8b1UOw21CQbIKOFblV RRjJAkRKQHNpfDohKyhZc4AVzg== X-Received: by 2002:a1c:6a12:0:b0:3f0:b1c9:25d4 with SMTP id f18-20020a1c6a12000000b003f0b1c925d4mr1855738wmc.21.1686051322295; Tue, 06 Jun 2023 04:35:22 -0700 (PDT) Received: from ?IPV6:2a02:578:8593:1200:426c:bb31:d569:3738? ([2a02:578:8593:1200:426c:bb31:d569:3738]) by smtp.gmail.com with ESMTPSA id m16-20020a7bcb90000000b003f6028a4c85sm17233920wmi.16.2023.06.06.04.35.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Jun 2023 04:35:22 -0700 (PDT) Message-ID: Date: Tue, 6 Jun 2023 13:35:20 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH net-next v5] net: ioctl: Use kernel memory on protocol ioctl callbacks Content-Language: en-GB To: Breno Leitao , Willem de Bruijn Cc: Remi Denis-Courmont , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexander Aring , Stefan Schmidt , Miquel Raynal , David Ahern , Mat Martineau , Marcelo Ricardo Leitner , Xin Long , axboe@kernel.dk, asml.silence@gmail.com, leit@fb.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, dccp@vger.kernel.org, linux-wpan@vger.kernel.org, mptcp@lists.linux.dev, linux-sctp@vger.kernel.org References: <20230602163044.1820619-1-leitao@debian.org> From: Matthieu Baerts In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hi Breno, On 06/06/2023 12:11, Breno Leitao wrote: > On Sun, Jun 04, 2023 at 11:17:56AM +0200, Willem de Bruijn wrote: >>> On Sat, Jun 03, 2023 at 10:21:50AM +0200, Willem de Bruijn wrote: >>>> On Fri, Jun 2, 2023 at 6:31 PM Breno Leitao wrote: >>>>> Signed-off-by: Breno Leitao >>>> >>>> Please check the checkpatch output >>>> >>>> https://patchwork.hopto.org/static/nipa/753609/13265673/checkpatch/stdout >>> >>> I am checking my current checkpatch before sending the patch, but I am >>> not seeing the problems above. >>> >>> My tree is at 44c026a73be8038 ("Linux 6.4-rc3"), and I am not able to >>> reproduce the problems above. >>> >>> $ scripts/checkpatch.pl v5/v5-0001-net-ioctl-Use-kernel-memory-on-protocol-ioctl-cal.patch >>> total: 0 errors, 0 warnings, 0 checks, 806 lines checked >>> v5/v5-0001-net-ioctl-Use-kernel-memory-on-protocol-ioctl-cal.patch has no obvious style problems and is ready for submission. >>> >>> Let me investigate what options I am missing when running checkpatch. >> >> The reference is to the checkpatch as referenced by patchwork: >> >> https://patchwork.kernel.org/project/netdevbpf/patch/20230602163044.1820619-1-leitao@debian.org/ >> >> The 80 character limit is a soft limit. But also note the CHECK >> statements on whitespace. > > Right. In order to enable the "CHECK" statments, we need to pass the > "--subjective" parameter to checpatch.pl > > That said, I am able to reproduce the same output now, using the > following command line: > > $ scripts/checkpatch.pl --subjective --max-line-length=80 The different results visible on Patchwork are posted by a CI using scripts hosted there: https://github.com/kuba-moo/nipa If you are interested to know how checkpatch.pl is executed, you can have a look there: https://github.com/kuba-moo/nipa/blob/master/tests/patch/checkpatch/checkpatch.sh#L16 I guess what you need is the "--strict" argument: > $ ./scripts/checkpatch.pl --strict --max-line-length=80 \ > --ignore=COMMIT_LOG_LONG_LINE,MACRO_ARG_REUSE,ALLOC_SIZEOF_STRUCT,NO_AUTHOR_SIGN_OFF,GIT_COMMIT_ID,CAMELCASE \ > -g HEAD Cheers, Matt -- Tessares | Belgium | Hybrid Access Solutions www.tessares.net