[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZQKohp0plVd4S5St@gmail.com>
Date: Thu, 14 Sep 2023 08:30:30 +0200
From: Ingo Molnar <mingo@...nel.org>
To: Hans de Goede <hdegoede@...hat.com>
Cc: Justin Stitt <justinstitt@...gle.com>,
Steve Wahl <steve.wahl@....com>,
Mike Travis <mike.travis@....com>,
Dimitri Sivanich <dimitri.sivanich@....com>,
Russ Anderson <russ.anderson@....com>,
Darren Hart <dvhart@...radead.org>,
Andy Shevchenko <andy@...radead.org>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>, x86@...nel.org,
"H. Peter Anvin" <hpa@...or.com>,
platform-driver-x86@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH v3] x86/platform/uv: refactor deprecated strcpy and
strncpy
* Hans de Goede <hdegoede@...hat.com> wrote:
> >> Which IMHO is much more readable then what has landed now. But since
> >> v2 has already landed I guess the best thing is just to stick with
> >> what we have upstream now...
> >
> > Well, how about we do a delta patch with all the changes you suggested?
> > I'm all for readability.
>
> So I started doing this and notices that all the string manipulation +
> parsing done here is really just a DYI implementation of
> sysfs_match_string().
>
> So I have prepared a patch to switch to sysfs_match_string(), which
> completely removes the need to make a copy of the val string.
>
> I'll submit the patch right after this email.
Thank you - that looks a far more thorough cleanup indeed.
Ingo
Powered by blists - more mailing lists