|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH for 4.6 07/13] xen: Introduce a generic way to describe device
Hi Jan, On 17/12/2014 10:16, Jan Beulich wrote: On 16.12.14 at 21:08, <julien.grall@xxxxxxxxxx> wrote:--- a/xen/common/Makefile +++ b/xen/common/Makefile @@ -2,6 +2,7 @@ obj-y += bitmap.o obj-y += core_parking.o obj-y += cpu.o obj-y += cpupool.o +obj-y += device.oShouldn't this instead be two lines, one using HAS_PCI and the second HAS_DEVICE_TREE? When ARM will gain PCI will, it will fail to compile because device.o is included twice.
Actually this will growing by only sizeof (enum type) on x86.Having a generic way to describe device will really help ARM code (see IOMMU). If we don't have a such thing, we may need to duplicate quite a lots of code. Which will make hard to maintain.
Oh right. I didn't though about that case. I will turn this inline function into a macro. Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |