Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1387259rdh; Fri, 27 Oct 2023 12:38:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGV6rMJ8aMkaD4lEC2hcHF0wrnHiaWliPaAPD6MYjN6YJhPhmrmlm5Xy7+PWb1dJl3N3Rik X-Received: by 2002:a0d:dfca:0:b0:589:8b55:fe09 with SMTP id i193-20020a0ddfca000000b005898b55fe09mr3383320ywe.50.1698435506990; Fri, 27 Oct 2023 12:38:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698435506; cv=none; d=google.com; s=arc-20160816; b=0lAk1oLUHMlPaWrhDPCyvFwcYgJMeQXr6Usuu7y7bPqYDNK0vCFG6vSw+0BosQ437g OrG5wRV46iZn9DToLF5tJfS6aJJFU9J8D/oQ79y7TtcU/2e8WOs07adYjph8m5M+KiCK CTqNDnHsLFHCIylw5BuhROV9aEvIjbyz0iibHnS4CXLXgFiRd70rslkxY0GUYD6h5cJk EqBZGI9O386Y8lyilx7zgBrf7qZPFrB77OTlMp5TyYxs+Lv8gFI+0VmH+ZwFo7LasOmR 2uqfVeanHO9B7gJNpjaPGCUhdzH5r0J4vrtVR+16fauBkJ+Jzu31jhGSI5pCVp1vvG+t 9b/g== 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=HResry5JndYeZBSzTVAWBwxzRl7+fUNF38GNSOea4NU=; fh=5+wFbsiwWJGlBPEQWwSkE0rDsb/r4BFFUcjHCWZ9FzI=; b=spvjCZ5Gr/FZq6+0oP+qi714NsBNSdmmeJPaocFHgncRRPqVHq8bul+D6sgYoEM0Rw bRPE/2WnGTCgi7hEkOROKYXFxTUv1Cn+Von57+aY9YYs8uanlbfC9tapoM6phfKOToER LZWYGoB1Wp5q40A+fTzx1r8yM+dkPYt1AEzKhSOtSXmCE4BxHdxzh2gzfQXSwze/Kv5i I6NpvbqP80gxblWX305OH8TyCYrtxuPlK1Fxw9ZLCBmmIyYDN5S//3lHMdnlIMX/sE4H qrJ62B7s58Ok81tLQykO5q0I7UEkYyF70AVBOMgGoKcKCtReQPh4XgJdIlWcdfh4kGlv t1xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=AmnrvFM8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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. [23.128.96.37]) by mx.google.com with ESMTPS id n204-20020a8172d5000000b00589c065b71csi3828427ywc.61.2023.10.27.12.38.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 12:38:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=AmnrvFM8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 BB57A83792DA; Fri, 27 Oct 2023 12:38:25 -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 S232192AbjJ0TiY (ORCPT + 99 others); Fri, 27 Oct 2023 15:38:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230451AbjJ0TiX (ORCPT ); Fri, 27 Oct 2023 15:38:23 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6190A1B4 for ; Fri, 27 Oct 2023 12:38:20 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-9bf86b77a2aso346440066b.0 for ; Fri, 27 Oct 2023 12:38:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698435499; x=1699040299; 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=HResry5JndYeZBSzTVAWBwxzRl7+fUNF38GNSOea4NU=; b=AmnrvFM8pY/WSb2SEchOnNX9gmzhPV4+ItnmSD7Iy6POFrPij3pF1vnkfNgRYSti7p WnY1oDILFqn4zNB2vfh3KktUXk7FAiCo/q2Li84ORALTfsnGiAL13vqaY4zDW6P3mFQY 8HSBRA6Rit29fhhvWZWSI5LKJxuWzsIvqUUej4amgzmShIS67fpq1a6kiT+zqDKaEXjG 8xhGdPfNoPH8GYGqYTwq23u7AqXfsOdaMYE1Qh7xn7Gv7CC1AeyaH4aNgjZebT7nUTMW KrhbZtO+7WKQoH6LPdJnYfUuPx+lZa/E7C1VJHB/iWQjg96ipT9fHzV+cf7dXfrNVQU8 2dJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698435499; x=1699040299; 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=HResry5JndYeZBSzTVAWBwxzRl7+fUNF38GNSOea4NU=; b=ICymCRFpRRKXOSHTIg1erWo/phIsM7mf/8aJ4dt/BOCTq4N98mSDLF5PE1tPgavoxO MMemCZ4SQQaLfydQaFjgPC2pTxXDyQEIkBfjE64SBukfgJ7+KoaIHNcfZSc691ZscuZ5 zgbNaDCEH8BnPwbhwGvrEWVY7vWyfLEp+OkxGAiYiSkzQoNjUBxDCoTIWbadeJaVEGMe Q+krNDrMocfrVWr32qbmD6gixUpvvwgJ/KMx7RTSrJ0fNCnpA10UYkDg3v3yNUE5KnEN +U3FrYqD5MiIj6yQYcE5zCJL6ljCPxSC4rXou/5CitcGwZ8+SphYDhoVfhd/P21pKv14 2/3g== X-Gm-Message-State: AOJu0Yz5fLP/0m/4qVwQsz9+PvQadQTTMJ7fxiYJj8UXM2cJhvpQem1A 6yf60Y1JZcenEyFzQWSXXzojkiqpj6YdhB3wHTMg5g== X-Received: by 2002:a17:907:9341:b0:9b2:b71f:83be with SMTP id bv1-20020a170907934100b009b2b71f83bemr3210322ejc.1.1698435498762; Fri, 27 Oct 2023 12:38:18 -0700 (PDT) MIME-Version: 1.0 References: <20231026-ethtool_puts_impl-v2-0-0d67cbdd0538@google.com> <20231026-ethtool_puts_impl-v2-1-0d67cbdd0538@google.com> <20231026220248.blgf7kgt5fkkbg7f@skbuf> <20231026222548.rqbp5ktgo2mysl6w@skbuf> In-Reply-To: <20231026222548.rqbp5ktgo2mysl6w@skbuf> From: Justin Stitt Date: Fri, 27 Oct 2023 12:38:06 -0700 Message-ID: Subject: Re: [PATCH next v2 1/3] ethtool: Implement ethtool_puts() To: Vladimir Oltean Cc: GR-Linux-NIC-Dev@marvell.com, UNGLinuxDriver@microchip.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, 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=-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_BLOCKED,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]); Fri, 27 Oct 2023 12:38:25 -0700 (PDT) On Thu, Oct 26, 2023 at 3:25=E2=80=AFPM Vladimir Oltean = wrote: > > On Thu, Oct 26, 2023 at 03:09:59PM -0700, Justin Stitt wrote: > > Should I undo this? I want my patch against next since it's targeting > > some stuff in-flight over there. BUT, I also want ethtool_puts() to be > > directly below ethtool_sprintf() in the source code. What to do? > > (removing everyone except the lists from CC, I don't want to go to email > arest because of spamming too many recipients) > > What is the stuff in-flight in next that this is targeting? > > And why would anything prevent you from putting ethtool_puts() directly > below ethtool_sprintf()? The in-flight stuff consists of patches I sent changing some strncpy() usag= e to ethtool_sprintf(&data, "%s", something[i].name); We can see them here [1]. I went for this approach initially but then discussion came up about introducing ethtool_puts() which now made my patches (some accepted into next already) semi-outdated and in need of another swap from sprintf->puts() -- hence this series. As far as the rebase, I simply took my commits and placed them on top of next/master and got merge conflicts when ethtool_puts() was placed below ethtool_sprintf(). All I have to do is move the hunks around but since I formatted the file it's appearing in the diff. v3 will be a clean diff. [1]: https://lore.kernel.org/all/?q=3Ddfb:ethtool_sprintf%20AND%20f:justins= titt Thanks Justin