Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1523805rdh; Fri, 27 Oct 2023 18:20:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFaKoMA2cxW6fKBP2V6Iep9ztHpe4u2U/bYUx+qaGteROcFH8WAYsaCZzdKngmwZ0/bqGkP X-Received: by 2002:a17:902:d50d:b0:1cc:339e:c228 with SMTP id b13-20020a170902d50d00b001cc339ec228mr83237plg.58.1698456039785; Fri, 27 Oct 2023 18:20:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698456039; cv=none; d=google.com; s=arc-20160816; b=x47yBTnKH4NQrSZ65+aH51oEFThaUamHg77s0jPdQRTPyFfenSu3oc7/Xs3lnfPymM jrs9D2TxgzmYGde9JCqNA/axChlVj2a5qFYliosxlWOvAk9avgvIsSmxYIpxFlJtGvCH Iixg8V9yoba0OShBDBf1iC8jZpawqq3pP6tNDKghkJzKu9L9iLcEzG2NRu4H0XSIAmM6 R90TbmgdG5+C6PPIfYISEzZzGnEYu+3nijMQRXQe8QdbKBIRmoNR8xZ6qYlIl91wTfwm BlqsTaF5zwh3YXPwx1ZMaqzx9tY7pldDyQHA3YFNo7eP6bzmUigBm1c/4SgZRvgg9b/I +LFg== 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=0g5kyZ0hA+DlGKnaeXH//43ksUqY7YG+r7+U+dNLRdo=; fh=f3MShYQFwJAVPmNkDYmLwllJCusMaNhq9tP+v3LBWug=; b=PWni+8h1/y1HgtHEXkFLtv+UZ2bE3DkSKSIA8Vqvg/kg4wdjpW+fQJ3/lBF8QLmTS2 yx3mY4XORBYPzNEM/ny35/agGNS/t4IiXDFhpBpr8w+xwhyFdFp4hwOi5FUiBeUusLey QPUj4DXNcccpJfudNL0hB4El8s6PumAvQl3VEDOCvjIClK85Vv17Oo0/GQopHqmPUFzW 2ulI4nullRbvRuZPpw9qXGt0I0Rg6edck5rbGIZ+yfxDh/9Jjaw6y/VXBbRehUqJjyfp CXglLYuKrjIEfqhM1wo44NU2lwkJZWMm7rYv9yY3L6s2KTqnWwV/H/EkNV/mnzyvqjrx Im/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="02tPC/ad"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id h12-20020a170902f54c00b001b8ac52a19esi1935936plf.436.2023.10.27.18.20.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 18:20:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="02tPC/ad"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id B912483EE9CB; Fri, 27 Oct 2023 18:20:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229943AbjJ1BUa (ORCPT + 99 others); Fri, 27 Oct 2023 21:20:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjJ1BU2 (ORCPT ); Fri, 27 Oct 2023 21:20:28 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20DBA183 for ; Fri, 27 Oct 2023 18:20:22 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-9b1ebc80d0aso394532366b.0 for ; Fri, 27 Oct 2023 18:20:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698456020; x=1699060820; 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=0g5kyZ0hA+DlGKnaeXH//43ksUqY7YG+r7+U+dNLRdo=; b=02tPC/adqUNXEVxZdpfa8ChKeGvkNSWpRVTeeriwDB3dnCbPWDuDmMn2QzvwjjVOMO qG6bEO6ayaRfFqCvszVNtDuJqNyEvVEwCrXDKOycypIWEsh973JXySVPmzIo8hRwdPZA E94KQP/txhxd39BCySswahxLDe48QKo/VKMl3UpsaPqwvp7KxjuHNbPbH/8lKFOVGyJv DcxxEPDQYDhwroe+irZ8t8C1rlCwBq4UGDNTyKK9k7acjOMlnnbT4ejkqRXEPEgKX5IQ OworsEHTiD3sWxK6l+qkbZbN9DJi6Plbd2VT1olMzM46g4AHriMFFvLH1ySTd4EKyp7P Sbfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698456020; x=1699060820; 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=0g5kyZ0hA+DlGKnaeXH//43ksUqY7YG+r7+U+dNLRdo=; b=TF4t/7rUbyIindZ/mZpJwyGNuIYFBjzOrl90B4SP7YJE8Oj9Vsrz7aEyncB33S/CZP V2MwF0BZmoFPikeSRWREXum8ta8QDCmsTg1fnXlKkb7jMF8VIU4OWXaN/x85JO6JRBrQ 22cidP4UzhsDs/xwqC6kexlxUGkJ9R4J3+zXJRRDnvKjCpqjBsOpsrDH9U4c4tDHT30M WEv2o0pefxLXxokRrhVUeOLBqCKNNwTPCN14gvv54ZdtiXCwop53xvFI89Xveq9XcbZv MQpU+5Ol672DARBi9e6QniRMmUJsqTZ2Fl1aqslkX3BVgwEHx+XXBpCJNRE6ZZolijtV jiIg== X-Gm-Message-State: AOJu0YzAVI8PwWQzw93CyBe3spswdB3+JBrMuSEHRlyXX90J4GA5t9p6 eJJRmcsK4zCrEmdLoI66K6brNqHtVTP2jW8bQJbWKg== X-Received: by 2002:a17:906:fe46:b0:9c3:b3cb:29b2 with SMTP id wz6-20020a170906fe4600b009c3b3cb29b2mr3275410ejb.42.1698456020364; Fri, 27 Oct 2023 18:20:20 -0700 (PDT) MIME-Version: 1.0 References: <20231027-ethtool_puts_impl-v3-0-3466ac679304@google.com> <20231027-ethtool_puts_impl-v3-1-3466ac679304@google.com> <8ca4ba13-1bcf-4c7b-91b6-8c77fbe55b30@lunn.ch> In-Reply-To: <8ca4ba13-1bcf-4c7b-91b6-8c77fbe55b30@lunn.ch> From: Justin Stitt Date: Fri, 27 Oct 2023 18:20:08 -0700 Message-ID: Subject: Re: [PATCH net-next v3 1/3] ethtool: Implement ethtool_puts() To: Andrew Lunn Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shay Agroskin , Arthur Kiyanovski , David Arinzon , Noam Dagan , Saeed Bishara , Rasesh Mody , Sudarsana Kalluru , GR-Linux-NIC-Dev@marvell.com, Dimitris Michailidis , Yisen Zhuang , Salil Mehta , Jesse Brandeburg , Tony Nguyen , Louis Peens , Shannon Nelson , Brett Creeley , drivers@pensando.io, "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Ronak Doshi , VMware PV-Drivers Reviewers , Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn , Hauke Mehrtens , Florian Fainelli , Vladimir Oltean , =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= , Daniel Golle , Landen Chao , DENG Qingfang , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , Linus Walleij , =?UTF-8?Q?Alvin_=C5=A0ipraga?= , Wei Fang , Shenwei Wang , Clark Wang , NXP Linux Team , Lars Povlsen , Steen Hegelund , Daniel Machon , UNGLinuxDriver@microchip.com, Jiawen Wu , Mengyuan Lou , Heiner Kallweit , Russell King , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Nick Desaulniers , Nathan Chancellor , Kees Cook , intel-wired-lan@lists.osuosl.org, oss-drivers@corigine.com, linux-hyperv@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 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,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 howler.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 (howler.vger.email [0.0.0.0]); Fri, 27 Oct 2023 18:20:36 -0700 (PDT) On Fri, Oct 27, 2023 at 4:43=E2=80=AFPM Andrew Lunn wrote: > > > +/** > > + * ethtool_puts - Write string to ethtool string data > > + * @data: Pointer to start of string to update > > Isn't it actually a pointer to a pointer to the start of string to > update? I suppose. FWIW, I just copy-pasted the sprintf doc and tweaked: /** * ethtool_sprintf - Write formatted string to ethtool string data * @data: Pointer to start of string to update * @fmt: Format of string to write * * Write formatted string to data. Update data to point at start of * next string. */ > > > +extern void ethtool_puts(u8 **data, const char *str); > > Andrew