Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH next v2 1/3] ethtool: Implement ethtool_puts()
       [not found]     ` <CAFhGd8rWOE8zGFCdjM6i8H3TP8q5BFFxMGCk0n-nmLmjHojefg@mail.gmail.com>
@ 2023-10-26 22:25       ` Vladimir Oltean
  2023-10-27 19:38         ` Justin Stitt
  0 siblings, 1 reply; 3+ messages in thread
From: Vladimir Oltean @ 2023-10-26 22:25 UTC (permalink / raw)
  To: Justin Stitt
  Cc: GR-Linux-NIC-Dev, UNGLinuxDriver, linux-kernel, netdev,
	intel-wired-lan, oss-drivers, linux-hyperv, linux-arm-kernel,
	linux-mediatek, bpf

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()?

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH next v2 2/3] checkpatch: add ethtool_sprintf rules
       [not found]     ` <CAFhGd8r-u193pBk2+WWF+sHWEo5ixxEiT=fcSYiuy5W+aWDsbg@mail.gmail.com>
@ 2023-10-26 22:33       ` Vladimir Oltean
  0 siblings, 0 replies; 3+ messages in thread
From: Vladimir Oltean @ 2023-10-26 22:33 UTC (permalink / raw)
  To: Justin Stitt
  Cc: GR-Linux-NIC-Dev, UNGLinuxDriver, linux-kernel, netdev,
	intel-wired-lan, oss-drivers, linux-hyperv, linux-arm-kernel,
	linux-mediatek, bpf

On Thu, Oct 26, 2023 at 03:24:54PM -0700, Justin Stitt wrote:
> There was some discussion here [1] but AFAICT I need to use EMACS
> or configure my vim in a very particular way to get the same formatting
> 
> But yeah, look around line 7000 -- lots of this pattern matching code is
> pretty hard to read. Not sure there's much to be done as far as readability
> is concerned.
> 
> [1]: https://lore.kernel.org/all/137a309b313cc8a295f3affc704f0da049f233aa.camel@perches.com/

Hard to read because of pattern matching is one thing, but your
indentation is unlike anything else in this file. There are inner curly
brackets which are less indented than the outer curly brackets. I cannot
read/review this, sorry, I hope somebody else can.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH next v2 1/3] ethtool: Implement ethtool_puts()
  2023-10-26 22:25       ` [PATCH next v2 1/3] ethtool: Implement ethtool_puts() Vladimir Oltean
@ 2023-10-27 19:38         ` Justin Stitt
  0 siblings, 0 replies; 3+ messages in thread
From: Justin Stitt @ 2023-10-27 19:38 UTC (permalink / raw)
  To: Vladimir Oltean
  Cc: GR-Linux-NIC-Dev, UNGLinuxDriver, linux-kernel, netdev,
	intel-wired-lan, oss-drivers, linux-hyperv, linux-arm-kernel,
	linux-mediatek, bpf

On Thu, Oct 26, 2023 at 3:25 PM Vladimir Oltean <olteanv@gmail.com> 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() usage
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=dfb:ethtool_sprintf%20AND%20f:justinstitt

Thanks
Justin

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-10-27 19:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20231026-ethtool_puts_impl-v2-0-0d67cbdd0538@google.com>
     [not found] ` <20231026-ethtool_puts_impl-v2-1-0d67cbdd0538@google.com>
     [not found]   ` <20231026220248.blgf7kgt5fkkbg7f@skbuf>
     [not found]     ` <CAFhGd8rWOE8zGFCdjM6i8H3TP8q5BFFxMGCk0n-nmLmjHojefg@mail.gmail.com>
2023-10-26 22:25       ` [PATCH next v2 1/3] ethtool: Implement ethtool_puts() Vladimir Oltean
2023-10-27 19:38         ` Justin Stitt
     [not found] ` <20231026-ethtool_puts_impl-v2-2-0d67cbdd0538@google.com>
     [not found]   ` <20231026221206.52oge3a5w4uxkkd5@skbuf>
     [not found]     ` <CAFhGd8r-u193pBk2+WWF+sHWEo5ixxEiT=fcSYiuy5W+aWDsbg@mail.gmail.com>
2023-10-26 22:33       ` [PATCH next v2 2/3] checkpatch: add ethtool_sprintf rules Vladimir Oltean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox