public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: linux-kernel@vger.kernel.org,
	Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
	x86@kernel.org, Bjorn Helgaas <bhelgaas@google.com>,
	Borislav Petkov <bp@alien8.de>,
	James Bottomley <James.Bottomley@HansenPartnership.com>
Subject: Re: [PATCH 05/86] x86/gart: use uapi/linux/pci_ids.h directly
Date: Tue, 31 Mar 2015 13:04:24 +0200	[thread overview]
Message-ID: <20150331121752-mutt-send-email-mst@redhat.com> (raw)
In-Reply-To: <20150331095106.GA19837@gmail.com>

On Tue, Mar 31, 2015 at 11:51:06AM +0200, Ingo Molnar wrote:
> 
> * Michael S. Tsirkin <mst@redhat.com> wrote:
> 
> > On Tue, Mar 31, 2015 at 10:34:45AM +0200, Ingo Molnar wrote:
> > > 
> > > * Michael S. Tsirkin <mst@redhat.com> wrote:
> > > 
> > > > On Mon, Mar 30, 2015 at 07:29:36AM +0200, Ingo Molnar wrote:
> > > > > 
> > > > > * Michael S. Tsirkin <mst@redhat.com> wrote:
> > > > > 
> > > > > > Header moved from linux/pci_ids.h to uapi/linux/pci_ids.h,
> > > > > > use the new header directly so we can drop
> > > > > > the wrapper in include/linux/pci_ids.h.
> > > > > > 
> > > > > > Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> > > > > > ---
> > > > > >  arch/x86/kernel/aperture_64.c | 2 +-
> > > > > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > > > > 
> > > > > > diff --git a/arch/x86/kernel/aperture_64.c b/arch/x86/kernel/aperture_64.c
> > > > > > index 76164e1..3b52a56 100644
> > > > > > --- a/arch/x86/kernel/aperture_64.c
> > > > > > +++ b/arch/x86/kernel/aperture_64.c
> > > > > > @@ -17,7 +17,7 @@
> > > > > >  #include <linux/init.h>
> > > > > >  #include <linux/memblock.h>
> > > > > >  #include <linux/mmzone.h>
> > > > > > -#include <linux/pci_ids.h>
> > > > > > +#include <uapi/linux/pci_ids.h>
> > > > > >  #include <linux/pci.h>
> > > > > >  #include <linux/bitops.h>
> > > > > >  #include <linux/suspend.h>
> > > > > > -- 
> > > > > > MST
> > > > > > 
> > > > > 
> > > > > NAK, it's absolutely ridiculous to send a 86 patches series for a 
> > > > > trivial change like this!
> > > > > 
> > > > > Just do the rename in a single patch and avoid the churn. Even if 
> > > > > there are conflicts, they are utmost trivial to fix up.
> > > > > 
> > > > > In fact the usual way to do such renames is to wait until the end of 
> > > > > -rc1, auto-generate it and send Linus the core patch with the trivial 
> > > > > renames straight away.
> > > > > 
> > > > > Thanks,
> > > > > 
> > > > > 	Ingo
> > > > 
> > > > 
> > > > Unfortunately, vger mailing lists reject any email with more than 2k of
> > > > email headers.  This means if I do what you suggest I can't Cc all
> > > > maintainers for all affected files. [...]
> > > 
> > > You can Cc: linux-arch and lkml for tree-wide changes.
> > > 
> > > Also, since it's mostly trivial, there shouldn't be much (if any) 
> > > controversy about it, right?
> > 
> > I thought so, too. However, I was just proven wrong and the patchset 
> > was nacked. [...]
> 
> Well, I only NAK-ed its high-churn presentation, not the essence of it 
> which looks good to me.

Thanks! Another concern voiced was whether it's better to include uapi
files using #include <uapi/linux/foo.h> or #include <linux/foo.h>.  Both
work - I thought #include <uapi/linux/foo.h> makes it easier to figure
out where the file is. James Bottomley (Cc'd) thought it's not worth the code
churn however, since if we ever add a file under linux/foo.h we'd need
to change users back.  He also noted that many headers are referenced
without the uapi/ prefix, if making the change, we'd have to change
them all.

OTOH if not, maybe we want to drop all '#include <uapi/linux/foo.h>'
converting them to '#include <linux/foo.h>' (and same for asm),
except where it's linux/foo.h pulling in uapi/linux/foo.h.
That, at least, would make it all consistent.



> > [...] Would relevant people notice it if it's just linux-arch? IIUC 
> > most people don't read lkml.  I guess Linus would notice and reject 
> > it.
> 
> Just keep it in a clean, separate topic branch and point it out in the 
> pull request - there's no reason to reject good changes, plus with 
> this structure:
> 
> > > > [...]  I could just Cc all mailing lists I guess, but I really 
> > > > wasn't sure about some parts of the change, deferring it until end 
> > > > of -rc1 wouldn't be appropriate in this case, would it?
> > > 
> > > So since 90% of the patches are just a trivial:
> > > 
> > >   -#include <linux/pci_ids.h>
> > >   +#include <uapi/linux/pci_ids.h>
> > > 
> > > you can auto-generate that simple rename and file movement into a 
> > > single commit, at the end of -rc1, without affecting anyone, via 
> > > something like:
> > > 
> > >   sed -i 's/linux\/pci_ids.h/uapi\/linux\/pci_ids.h/g' $(git grep -l linux/pci_ids.h)
> > >   git mv include/linux/pci_ids.h include/uapi/linux/pci_ids.h
> > >   git commit -a
> > > 
> > > (totally untested)
> > > 
> > > This should just work.
> > >
> > > Any other changes, as the removal of inclusions from files that 
> > > apparently don't need it, or cleanups like the changing of the guard 
> > > defines in pci_id.h, can be done on top of that - on a one patch per 
> > > change basis.
> > > 
> > > This should drastically remove the churn.
> 
> it's trivially correct.
> 
> I just tried the untested script above and it generates a commit and a 
> kernel that builds just fine.
> 
> So with that structure my high-churn complaint gets addressed and my 
> NAK turns into:
> 
>   Acked-by: Ingo Molnar <mingo@kernel.org>
> 
> Thanks,
> 
> 	Ingo


If people agree one of the two changes (always, or never, referencing
uapi files directly) is worthwhile, I'll follow the procedure
you have outlined above.
Thanks a lot for the suggestions!

-- 
MST

  reply	other threads:[~2015-03-31 11:04 UTC|newest]

Thread overview: 152+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-29 13:36 [PATCH 00/86] pci: export pci_ids.h and related cleanups Michael S. Tsirkin
2015-03-29 13:37 ` [PATCH 01/86] pci: export pci_ids.h Michael S. Tsirkin
2015-03-29 15:49   ` Joe Perches
2015-03-29 20:40   ` Greg KH
2015-03-30  6:48     ` Michael S. Tsirkin
2015-03-30  6:55       ` Greg KH
2015-03-30  7:15         ` Michael S. Tsirkin
2015-03-30  7:53           ` Greg KH
2015-03-30  8:31             ` Michael S. Tsirkin
2015-03-30 10:07               ` Greg KH
2015-03-30 10:46                 ` Michael S. Tsirkin
2015-03-30 10:57                   ` Greg KH
2015-03-30 11:19                     ` Michael S. Tsirkin
2015-03-30 11:35                       ` Greg KH
2015-03-30 11:41                         ` Michael S. Tsirkin
2015-03-29 13:37 ` [PATCH 02/86] i2c/i801: linux/pci_ids.h -> uapi/linux/pci_ids.h Michael S. Tsirkin
2015-03-30  7:31   ` Jean Delvare
2015-04-03 19:09   ` Wolfram Sang
2015-04-06  6:38     ` Jean Delvare
2015-03-29 13:37 ` [PATCH 03/86] mips/netlogic: use uapi/linux/pci_ids.h directly Michael S. Tsirkin
2015-03-29 13:37 ` [PATCH 04/86] powerpc/pci: " Michael S. Tsirkin
2015-03-29 13:37 ` [PATCH 05/86] x86/gart: " Michael S. Tsirkin
2015-03-30  5:29   ` Ingo Molnar
2015-03-30  6:55     ` Michael S. Tsirkin
2015-03-31  8:34       ` Ingo Molnar
2015-03-31  9:47         ` Michael S. Tsirkin
2015-03-31  9:51           ` Ingo Molnar
2015-03-31 11:04             ` Michael S. Tsirkin [this message]
2015-03-31 12:51               ` James Bottomley
2015-03-29 13:37 ` [PATCH 06/86] x86/microcode/amd: " Michael S. Tsirkin
2015-03-29 13:38 ` [PATCH 07/86] x86/quirks: " Michael S. Tsirkin
2015-03-29 13:38 ` [PATCH 08/86] x86/printk: " Michael S. Tsirkin
2015-03-29 13:38 ` [PATCH 09/86] x86/calgary: " Michael S. Tsirkin
2015-03-29 13:38 ` [PATCH 10/86] x86/apic/vsmp: " Michael S. Tsirkin
2015-03-29 13:38 ` [PATCH 11/86] x86/mm/numa: " Michael S. Tsirkin
2015-03-29 13:38 ` [PATCH 12/86] x86/pci/sta2x11: " Michael S. Tsirkin
2015-03-29 13:38 ` [PATCH 13/86] acpi/video: " Michael S. Tsirkin
2015-03-29 13:38 ` [PATCH 14/86] crypto/ccp: " Michael S. Tsirkin
2015-03-29 13:38 ` [PATCH 15/86] crypto/geode: " Michael S. Tsirkin
2015-03-29 13:38 ` [PATCH 16/86] dmaengine: " Michael S. Tsirkin
2015-03-29 13:38 ` [PATCH 17/86] dma/ioat: " Michael S. Tsirkin
2015-03-29 13:39 ` [PATCH 18/86] edac/amd: " Michael S. Tsirkin
2015-03-29 13:39 ` [PATCH 19/86] edac/e7xxx: " Michael S. Tsirkin
2015-03-30 21:41   ` Gross, Mark
2015-03-29 13:39 ` [PATCH 20/86] edac/e752x: " Michael S. Tsirkin
2015-03-29 13:39 ` [PATCH 21/86] edac/i3000: " Michael S. Tsirkin
2015-03-29 13:39 ` [PATCH 22/86] edac/i3200: " Michael S. Tsirkin
2015-03-29 13:39 ` [PATCH 23/86] edac/i5000: " Michael S. Tsirkin
2015-03-29 13:39 ` [PATCH 24/86] edac/i5100: " Michael S. Tsirkin
2015-03-29 13:39 ` [PATCH 25/86] edac/i5400: " Michael S. Tsirkin
2015-03-29 13:39 ` [PATCH 26/86] edac/i7300: " Michael S. Tsirkin
2015-03-29 13:39 ` [PATCH 27/86] edac/i7core: " Michael S. Tsirkin
2015-03-29 13:39 ` [PATCH 28/86] edac/i82443bxgx: " Michael S. Tsirkin
2015-03-29 13:39 ` [PATCH 29/86] edac/i82860: " Michael S. Tsirkin
2015-03-29 13:40 ` [PATCH 30/86] edac/i82875p: " Michael S. Tsirkin
2015-03-29 13:40 ` [PATCH 31/86] edac/i82975x: " Michael S. Tsirkin
2015-03-29 13:40 ` [PATCH 32/86] edac/ie31200: " Michael S. Tsirkin
2015-03-29 13:40 ` [PATCH 33/86] edac/pasemi: " Michael S. Tsirkin
2015-03-29 13:40 ` [PATCH 34/86] edac/r82600: " Michael S. Tsirkin
2015-03-29 13:40 ` [PATCH 35/86] edac/sbridge: " Michael S. Tsirkin
2015-03-29 13:40 ` [PATCH 36/86] edac/x38_edac: " Michael S. Tsirkin
2015-03-29 13:59   ` Borislav Petkov
2015-03-29 14:27     ` Michael S. Tsirkin
2015-03-29 13:40 ` [PATCH 37/86] firewire/ohci: " Michael S. Tsirkin
2015-03-29 23:15   ` Stefan Richter
2015-03-29 13:40 ` [PATCH 38/86] gpio/sch: " Michael S. Tsirkin
2015-04-07 13:03   ` Linus Walleij
2015-03-29 13:40 ` [PATCH 39/86] i2c/i801: " Michael S. Tsirkin
2015-03-30  7:32   ` Jean Delvare
2015-04-03 19:09   ` Wolfram Sang
2015-03-29 13:40 ` [PATCH 40/86] ide/generic: " Michael S. Tsirkin
2015-03-29 14:12   ` Sergei Shtylyov
2015-03-29 14:52     ` Michael S. Tsirkin
2015-03-29 13:40 ` [PATCH 41/86] input/keyboard: " Michael S. Tsirkin
2015-03-29 13:40 ` [PATCH 42/86] input/serio: " Michael S. Tsirkin
2015-03-29 13:40 ` [PATCH 43/86] macintosh: " Michael S. Tsirkin
2015-03-29 13:40 ` [PATCH 44/86] media/ddbridge: " Michael S. Tsirkin
2015-03-29 13:41 ` [PATCH 45/86] media/ngene: " Michael S. Tsirkin
2015-03-29 13:41 ` [PATCH 46/86] media/fintek: " Michael S. Tsirkin
2015-03-29 13:41 ` [PATCH 47/86] media/ite: " Michael S. Tsirkin
2015-03-29 13:41 ` [PATCH 48/86] media/nuvoton: " Michael S. Tsirkin
2015-03-29 13:41 ` [PATCH 49/86] media/winbond: " Michael S. Tsirkin
2015-03-29 13:41 ` [PATCH 50/86] memstick/r592: " Michael S. Tsirkin
2015-03-29 13:41 ` [PATCH 51/86] cxl: " Michael S. Tsirkin
2015-03-29 13:41 ` [PATCH 52/86] mtd/maps: " Michael S. Tsirkin
2015-03-29 13:41 ` [PATCH 53/86] mtd/nand: " Michael S. Tsirkin
2015-03-29 13:41 ` [PATCH 54/86] atheros/atlx: " Michael S. Tsirkin
2015-03-29 13:41 ` [PATCH 55/86] chelsio/cxgb: " Michael S. Tsirkin
2015-03-29 13:41 ` [PATCH 56/86] intel/ixgb: " Michael S. Tsirkin
2015-03-29 23:55   ` Jeff Kirsher
     [not found]     ` <CAOaVG15C+4_+m-GFCB0V-G0fBGwj4fg7VsWmgwB+QNDWT136bA@mail.gmail.com>
2015-03-30 19:04       ` Jeff Kirsher
2015-03-29 13:41 ` [PATCH 57/86] brcm80211: " Michael S. Tsirkin
2015-03-29 16:45   ` Arend van Spriel
2015-03-29 13:41 ` [PATCH 58/86] pci-label: " Michael S. Tsirkin
2015-03-29 13:41 ` [PATCH 59/86] x86/thinkpad_acpi: " Michael S. Tsirkin
2015-03-29 21:02   ` Henrique de Moraes Holschuh
2015-04-02  5:14   ` Darren Hart
2015-03-29 13:41 ` [PATCH 60/86] scsi/arcmsr: " Michael S. Tsirkin
2015-03-29 13:42 ` [PATCH 61/86] scsi/qla1280: " Michael S. Tsirkin
2015-03-29 14:03   ` James Bottomley
2015-03-29 14:36     ` Michael S. Tsirkin
2015-03-29 14:52       ` James Bottomley
2015-03-29 13:42 ` [PATCH 62/86] staging/comedi: " Michael S. Tsirkin
2015-03-29 17:35   ` Ian Abbott
2015-03-30 17:28     ` Hartley Sweeten
2015-03-29 13:42 ` [PATCH 63/86] staging/olpc: " Michael S. Tsirkin
2015-03-29 13:42 ` [PATCH 64/86] tty/serial: comment update Michael S. Tsirkin
2015-03-29 13:42 ` [PATCH 65/86] usb/dwc3: " Michael S. Tsirkin
2015-03-29 13:42 ` [PATCH 66/86] usb/early: use uapi/linux/pci_ids.h directly Michael S. Tsirkin
2015-03-29 13:42 ` [PATCH 67/86] usb/gadget: " Michael S. Tsirkin
2015-03-29 13:42 ` [PATCH 68/86] usb/host: " Michael S. Tsirkin
2015-03-29 13:42 ` [PATCH 69/86] usb/misc: " Michael S. Tsirkin
2015-03-29 13:42 ` [PATCH 70/86] fbdev/gxt4500: " Michael S. Tsirkin
2015-03-29 13:42 ` [PATCH 71/86] fbdev/i740fb: " Michael S. Tsirkin
2015-03-29 13:42 ` [PATCH 72/86] fbdev/i810: " Michael S. Tsirkin
2015-03-29 13:42 ` [PATCH 73/86] fbdev/riva: " Michael S. Tsirkin
2015-03-29 13:42 ` [PATCH 74/86] w1: " Michael S. Tsirkin
2015-03-29 13:42 ` [PATCH 75/86] watchdog: " Michael S. Tsirkin
2015-03-29 13:42 ` [PATCH 76/86] sound/pci: " Michael S. Tsirkin
2015-04-04 10:48   ` Takashi Iwai
2015-03-29 13:43 ` [PATCH 77/86] linux/pci: " Michael S. Tsirkin
2015-03-29 13:43 ` [PATCH 78/86] linux/pci: drop include/linux/pci_ids.h Michael S. Tsirkin
2015-03-29 13:43 ` [PATCH 79/86] x86/microcode/amd: drop pci_ids dependency Michael S. Tsirkin
2015-03-29 16:14   ` Borislav Petkov
2015-03-31 12:37   ` [tip:x86/microcode] x86/microcode/amd: Drop the pci_ids.h dependency tip-bot for Michael S. Tsirkin
2015-03-29 13:43 ` [PATCH 80/86] crypto/ccp: drop linux/pci dependencies Michael S. Tsirkin
2015-03-29 13:43 ` [PATCH 81/86] input/serio: drop pci_ids dependency Michael S. Tsirkin
2015-03-29 13:43 ` [PATCH 82/86] media/fintek: " Michael S. Tsirkin
2015-03-29 15:40   ` Mauro Carvalho Chehab
2015-03-29 13:43 ` [PATCH 83/86] brcm80211: drop pci dependency Michael S. Tsirkin
2015-03-29 16:46   ` Arend van Spriel
2015-03-29 13:43 ` [PATCH 84/86] brcm80211: drop pci_ids include Michael S. Tsirkin
2015-03-29 16:47   ` Arend van Spriel
2015-03-29 13:43 ` [PATCH 85/86] staging/olpc: drop pci dependencies Michael S. Tsirkin
2015-03-29 13:43 ` [PATCH 86/86] usb/dwc3: move ids to pci_ids.h Michael S. Tsirkin
2015-03-29 20:42   ` Greg Kroah-Hartman
2015-03-30  6:50     ` Michael S. Tsirkin
2015-03-30  6:58       ` Greg Kroah-Hartman
2015-03-30  7:16         ` Michael S. Tsirkin
2015-03-29 17:59 ` [PATCH 00/86] pci: export pci_ids.h and related cleanups Joe Perches
2015-03-30  6:52   ` Michael S. Tsirkin
2015-03-29 23:15 ` Stefan Richter
2015-04-02  7:44 ` Jean Delvare
2015-04-02  7:49   ` Michael S. Tsirkin
2015-04-02  8:23     ` Christoph Hellwig
2015-04-02  9:04       ` Jean Delvare
2015-04-02 10:09         ` Michael S. Tsirkin
2015-04-02 11:15           ` Jean Delvare
2015-04-02 12:05             ` Michael S. Tsirkin
2015-04-02 13:17               ` Jean Delvare
2015-04-02 12:09       ` Michael S. Tsirkin
2015-04-02 14:34         ` Alex Williamson

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=20150331121752-mutt-send-email-mst@redhat.com \
    --to=mst@redhat.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=bhelgaas@google.com \
    --cc=bp@alien8.de \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /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