All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: Marcel Apfelbaum <marcel@redhat.com>,
	Eduardo Habkost <ehabkost@redhat.com>,
	Igor Mammedov <imammedo@redhat.com>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [for-2.12 3/7] pci: Fold pci_bus.h into pci.h
Date: Fri, 1 Dec 2017 18:29:39 +0200	[thread overview]
Message-ID: <20171201182840-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <20171130040248.GU3023@umbus.fritz.box>

On Thu, Nov 30, 2017 at 03:02:48PM +1100, David Gibson wrote:
> On Wed, Nov 29, 2017 at 12:38:00PM +0200, Marcel Apfelbaum wrote:
> > On 29/11/2017 10:46, David Gibson wrote:
> > > include/hw/pci/pci_bus.h is now very small and can only safely be included
> > > after hw/pci/pci.h.  So, just fold it into pci.h.
> > > 
> > 
> > I don't get the benefit from merging the header files.
> > I would go the other way around and find stuff specific
> > to pci_bus and add it there, like the pci_bus_new*
> > you touched in the prev patch.
> 
> Hrm.  Except the point of the earlier patch was that those are
> actually spoecific to root buses, so would really belong in say
> pci-host.h, rather than pci-bus.h.
> 
> A log of PCI stuff deals with interaction between the device and bus
> though, so it just seemed like more trouble than it was worth to go
> disentangling them properly.
> 
> > Maybe if *all* code files requiring pci.h would automatically
> > need pci_bus.h would make sense, but I didn't check that.
> 
> Yeah, I don't think every user of pci.h needs pci_bus.h, although a
> fair few do as you can see from the diff.  Well, I guess it's up to
> Michael.  I'll be tolerably content either way - I'd say this is the
> least important patch of the series.

I'm inclined to agree with Marcel also because it's lots of noise for no
real win.  The next patch depends on this one. I skipped this and next
one, pls feel free to repost next one.

> -- 
> David Gibson			| I'll have my music baroque, and my code
> david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
> 				| _way_ _around_!
> http://www.ozlabs.org/~dgibson

  parent reply	other threads:[~2017-12-01 16:29 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-29  8:46 [Qemu-devel] [for-2.12 0/7] PCI cleanups David Gibson
2017-11-29  8:46 ` [Qemu-devel] [for-2.12 1/7] pci: Rename root bus initialization functions for clarity David Gibson
2017-11-29  9:43   ` Marcel Apfelbaum
2017-11-30  6:17   ` Peter Xu
2017-12-01  0:02     ` David Gibson
2017-12-01  4:27       ` Peter Xu
2017-11-29  8:46 ` [Qemu-devel] [for-2.12 2/7] pci: Move bridge data structures from pci_bus.h to pci_bridge.h David Gibson
2017-11-29 10:33   ` Marcel Apfelbaum
2017-11-30  6:41   ` Peter Xu
2017-11-29  8:46 ` [Qemu-devel] [for-2.12 3/7] pci: Fold pci_bus.h into pci.h David Gibson
2017-11-29 10:38   ` Marcel Apfelbaum
2017-11-30  4:02     ` David Gibson
2017-11-30  5:56       ` Peter Xu
2017-11-30 10:25       ` Marcel Apfelbaum
2017-12-01 16:29       ` Michael S. Tsirkin [this message]
2017-12-02  0:59         ` David Gibson
2017-12-03  5:07           ` Michael S. Tsirkin
2017-12-04  4:01             ` David Gibson
2017-12-04  4:40         ` David Gibson
2017-11-29  8:46 ` [Qemu-devel] [for-2.12 4/7] pci: Simplify pci_bus_is_root() David Gibson
2017-11-29 10:45   ` Marcel Apfelbaum
2017-11-29 13:12     ` David Gibson
2017-11-29 14:42       ` Marcel Apfelbaum
2017-11-30  6:23   ` Peter Xu
2017-12-01  4:25     ` David Gibson
2017-11-29  8:46 ` [Qemu-devel] [for-2.12 5/7] pci: Add pci_dev_bus_num() helper David Gibson
2017-11-29 10:48   ` Marcel Apfelbaum
2017-11-30  6:42   ` Peter Xu
2017-11-29  8:46 ` [Qemu-devel] [for-2.12 6/7] pci: Eliminate redundant PCIDevice::bus pointer David Gibson
2017-11-29 10:54   ` Marcel Apfelbaum
2017-11-29 11:41     ` Eduardo Habkost
2017-11-29 13:15       ` David Gibson
2017-11-29 14:43       ` Marcel Apfelbaum
2017-11-30  6:31   ` Peter Xu
2017-11-29  8:46 ` [Qemu-devel] [for-2.12 7/7] pci: Eliminate pci_find_primary_bus() David Gibson
2017-11-29 10:56   ` Marcel Apfelbaum
2017-11-30  6:39   ` Peter Xu
2017-11-29  9:02 ` [Qemu-devel] [for-2.12 0/7] PCI cleanups no-reply
2017-11-29  9:18   ` Fam Zheng
2017-11-29 10:11     ` David Gibson
2017-12-05  4:49     ` Michael S. Tsirkin
2017-12-05  5:05       ` Fam Zheng
2017-12-05  5:11         ` David Gibson
2017-12-05  6:46           ` Fam Zheng
2017-12-05 13:06             ` David Gibson
2017-12-05 13:42               ` Fam Zheng
2017-12-05 23:14                 ` David Gibson

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=20171201182840-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=ehabkost@redhat.com \
    --cc=imammedo@redhat.com \
    --cc=marcel@redhat.com \
    --cc=qemu-devel@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.