Re: [PATCH RFC 13/15] pci/arm: Add generic ECAM host support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, May 29, 2016 at 09:54:25PM +0200, Alexander Gordeev wrote:
> On Fri, Apr 22, 2016 at 07:07:29PM +0200, Andrew Jones wrote:
> > > +static u64 pci_alloc_res(struct pci_host_bridge *host, int type, u64 size)
> 
> [...]
> 
> > > +	size = ALIGN(size, mask);
> > > +	assert(as->free + size <= as->size);
> > > +
> > > +	addr = as->pci_start + as->free;
> > > +	as->free += size;
> > 
> > Hmm, the name 'free' made me think it was pointing at the start
> > of free memory, but it's just an offset. Maybe a name like free_offset
> > would be better? Or initialize it to as->pci_start and use it as
> > a free pointer? Whatever though, not a big deal.
> 
> It is also not an offset per se. It is rather number of already
> allocated bytes. What about "allocated"?

allocated is better

> 
> > > +
> > > +	return addr;
> > > +}
> 
> > Thanks,
> > drew
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux