From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Kent Gibson <warthog618@gmail.com>,
Bartosz Golaszewski <brgl@bgdev.pl>,
linux-gpio@vger.kernel.org, linux-tegra@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-media@vger.kernel.org, linux-actions@lists.infradead.org,
linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org,
linux-rpi-kernel@lists.infradead.org,
alsa-devel@alsa-project.org, patches@opensource.cirrus.com,
linux-mediatek@lists.infradead.org, linux-mips@vger.kernel.org,
linux-riscv@lists.infradead.org, linux-omap@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com,
linux-arm-msm@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
linux-samsung-soc@vger.kernel.org
Subject: Re: [PATCH v2 02/36] gpiolib: cdev: Add missed header(s)
Date: Tue, 11 Oct 2022 18:19:13 +0300 [thread overview]
Message-ID: <Y0WJcXzkkK4oGbrR@smile.fi.intel.com> (raw)
In-Reply-To: <CAMuHMdUhSKuJ3N5zf_+ad_dFu6kSmVTqRpgFUWtd54S9ryw=ew@mail.gmail.com>
On Tue, Oct 11, 2022 at 04:39:46PM +0200, Geert Uytterhoeven wrote:
> On Tue, Oct 11, 2022 at 4:31 PM Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
> > On Tue, Oct 11, 2022 at 10:13:02PM +0800, Kent Gibson wrote:
> > > On Tue, Oct 11, 2022 at 04:48:17PM +0300, Andy Shevchenko wrote:
> > > > On Tue, Oct 11, 2022 at 11:05:42AM +0300, Andy Shevchenko wrote:
> > > > > On Tue, Oct 11, 2022 at 3:02 AM Kent Gibson <warthog618@gmail.com> wrote:
> > > > > > On Mon, Oct 10, 2022 at 11:14:18PM +0300, Andy Shevchenko wrote:
...
> > > > > > > -#include <linux/gpio.h>
> > > > > > > #include <linux/gpio/driver.h>
> > > > > > > +#include <linux/gpio.h>
> > > > > > > +#include <linux/hte.h>
> > > > > >
> > > > > > Ok with the hte re-order.
> > > > > >
> > > > > > But moving the gpio subsystem header after the gpio/driver is not
> > > > > > alphabetical ('.' precedes '/') and it read better and made more sense
> > > > > > to me the way it was.
> > > > >
> > > > > I see, I guess this is vim sort vs shell sort. Strange, they should
> > > > > follow the locale settings...
> > > >
> > > > I have checked, the shell and vim sort gave the same result as in this patch.
> > > >
> > >
> > > The original order (sans hte.h) was done by VSCode Sort Lines Ascending,
> > > and that still returns the same result. That matches what I would
> > > expect to see given the content of the text.
> > >
> > > And for me vim also gives the original order.
> > >
> > > Just to confirm - is '.' 0x2e and '/' 0x2f in your universe?
> >
> > $ LC_COLLATE=C sort test1.txt
> > #include <linux/gpio.h>
> > #include <linux/gpio/driver.h>
> >
> > $ LC_COLLATE= sort test1.txt
> > #include <linux/gpio/driver.h>
> > #include <linux/gpio.h>
> >
> > I guess this explains the difference. Currently I have en_US.UTF-8.
>
> Throwing my can of paint into the mix...
>
> I think it is more logical to first include the general <linux/gpio.h>,
> followed by whatever <linux/gpio-foo.h> and <linux/gpio/bar.h>,
> irrespective of (language-specific or phonebook) sort order.
>
> Yeah, it sucks that this requires some manual work after running sort...
It seems that kind of issue is in this patch only.
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2022-10-11 15:30 UTC|newest]
Thread overview: 93+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 01/36] gpiolib: tegra186: Add missed header(s) Andy Shevchenko
2022-10-17 8:52 ` Linus Walleij
2022-10-17 9:35 ` Bartosz Golaszewski
2022-10-17 12:15 ` Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 02/36] gpiolib: cdev: " Andy Shevchenko
2022-10-11 0:01 ` Kent Gibson
2022-10-11 8:05 ` Andy Shevchenko
2022-10-11 13:48 ` Andy Shevchenko
2022-10-11 14:13 ` Kent Gibson
2022-10-11 14:28 ` Andy Shevchenko
2022-10-11 14:39 ` Geert Uytterhoeven
2022-10-11 15:19 ` Andy Shevchenko [this message]
2022-10-11 15:44 ` Andy Shevchenko
2022-10-12 13:30 ` Andy Shevchenko
2022-10-12 13:54 ` Kent Gibson
2022-10-10 20:14 ` [PATCH v2 03/36] media: c8sectpfe: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 04/36] pinctrl: actions: " Andy Shevchenko
2022-10-17 8:55 ` Linus Walleij
2022-10-10 20:14 ` [PATCH v2 05/36] pinctrl: aspeed: " Andy Shevchenko
2022-10-17 8:55 ` Linus Walleij
2022-10-10 20:14 ` [PATCH v2 06/36] pinctrl: at91: " Andy Shevchenko
2022-10-12 7:52 ` Claudiu.Beznea
2022-10-17 8:56 ` Linus Walleij
2022-10-10 20:14 ` [PATCH v2 07/36] pinctrl: axp209: " Andy Shevchenko
2022-10-11 16:14 ` Chen-Yu Tsai
2022-10-17 8:57 ` Linus Walleij
2022-10-10 20:14 ` [PATCH v2 08/36] pinctrl: bcm: " Andy Shevchenko
2022-10-17 8:58 ` Linus Walleij
2022-10-10 20:14 ` [PATCH v2 09/36] pinctrl: cygnus-mux: " Andy Shevchenko
2022-10-17 8:59 ` Linus Walleij
2022-10-10 20:14 ` [PATCH v2 10/36] pinctrl: imx: " Andy Shevchenko
2022-10-17 8:59 ` Linus Walleij
2022-10-10 20:14 ` [PATCH v2 11/36] pinctrl: ingenic: " Andy Shevchenko
2022-10-12 9:15 ` Paul Cercueil
2022-10-17 9:00 ` Linus Walleij
2022-10-10 20:14 ` [PATCH v2 12/36] pinctrl: k210: " Andy Shevchenko
2022-10-10 22:33 ` Damien Le Moal
2022-10-11 7:58 ` Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 13/36] pinctrl: lochnagar: " Andy Shevchenko
2022-10-11 9:03 ` Charles Keepax
2022-10-10 20:14 ` [PATCH v2 14/36] pinctrl: mediatek: " Andy Shevchenko
2022-10-11 14:49 ` AngeloGioacchino Del Regno
2022-10-10 20:14 ` [PATCH v2 15/36] pinctrl: mvebu: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 16/36] pinctrl: npcm7xx: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 17/36] pinctrl: ocelot: " Andy Shevchenko
2022-10-11 9:52 ` Horatiu Vultur
2022-10-10 20:14 ` [PATCH v2 18/36] pinctrl: qcom: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 19/36] pinctrl: renesas: " Andy Shevchenko
2022-10-11 8:10 ` Geert Uytterhoeven
2022-10-10 20:14 ` [PATCH v2 20/36] pinctrl: samsung: " Andy Shevchenko
2022-10-11 16:05 ` Krzysztof Kozlowski
2022-10-10 20:14 ` [PATCH v2 21/36] pinctrl: single: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 22/36] pinctrl: spear: " Andy Shevchenko
2022-10-11 2:56 ` Viresh Kumar
2022-10-10 20:14 ` [PATCH v2 23/36] pinctrl: sprd: " Andy Shevchenko
2022-10-13 1:23 ` Baolin Wang
2022-10-10 20:14 ` [PATCH v2 24/36] pinctrl: st: " Andy Shevchenko
2022-10-11 6:16 ` Patrice CHOTARD
2022-10-10 20:14 ` [PATCH v2 25/36] pinctrl: starfive: " Andy Shevchenko
2022-10-11 8:31 ` Emil Renner Berthing
2022-10-11 9:06 ` Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 26/36] pinctrl: stm32: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 27/36] pinctrl: stmfx: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 28/36] pinctrl: tegra: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 29/36] pinctrl: ti-iodelay: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 30/36] pinctrl: uniphier: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 31/36] pinctrl: zynqmp: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 32/36] pinctrl: cherryview: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 33/36] pinctrl: lynxpoint: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 34/36] pinctrl: merrifield: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 35/36] pinctrl: intel: " Andy Shevchenko
2022-10-13 14:53 ` Mika Westerberg
2022-10-13 16:05 ` Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 36/36] pinctrl: Clean up headers Andy Shevchenko
2022-10-10 22:12 ` kernel test robot
2022-10-10 23:04 ` kernel test robot
2022-10-11 1:43 ` kernel test robot
2022-10-11 7:30 ` Basavaraj Natikar
2022-10-11 8:46 ` Geert Uytterhoeven
2022-10-11 9:07 ` Andy Shevchenko
2022-10-18 13:04 ` Geert Uytterhoeven
2022-10-18 13:07 ` Andy Shevchenko
2022-10-11 9:04 ` Andy Shevchenko
2022-10-11 7:10 ` [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Bartosz Golaszewski
2022-10-11 9:02 ` Andy Shevchenko
2022-10-11 20:56 ` Florian Fainelli
2022-10-12 10:04 ` Andy Shevchenko
2022-10-14 15:11 ` Andy Shevchenko
2022-10-17 9:02 ` Linus Walleij
2022-10-17 9:27 ` Andy Shevchenko
2022-10-17 9:58 ` Linus Walleij
2022-10-17 12:18 ` Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y0WJcXzkkK4oGbrR@smile.fi.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=brgl@bgdev.pl \
--cc=geert@linux-m68k.org \
--cc=linux-actions@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-aspeed@lists.ozlabs.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-mips@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=linux-tegra@vger.kernel.org \
--cc=openbmc@lists.ozlabs.org \
--cc=patches@opensource.cirrus.com \
--cc=warthog618@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).