Re: [PATCH 2/2] Make detect_scsi_host_caps a function on all architectures

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

 



On Fri, May 03, 2013 at 06:04:11AM -0600, Eric Blake wrote:
> On 05/03/2013 12:22 AM, Guido Günther wrote:
> > In the non linux case some callers like gather_scsi_host_caps needed the
> > return code of -1 while others like update_caps needed an emtpy
> 
> s/emtpy/empty/

Both pushed with the above fixed.
 -- Guido

> 
> > statement (to avoid a "statement without effect" warning). This is much
> > simpler solved by using a function instead of a define.
> > ---
> >  src/node_device/node_device_driver.h      |   11 +----------
> >  src/node_device/node_device_linux_sysfs.c |   10 +++++++++-
> >  2 files changed, 10 insertions(+), 11 deletions(-)
> 
> ACK.
> 
> > +int
> > +detect_scsi_host_caps(union _virNodeDevCapData *d ATTRIBUTE_UNUSED)
> 
> It would eventually be nice to rename this virDetectScsiHostCaps, but
> that can be a cleanup for another day; your patch is fine for the
> build-breaker on FreeBSD that Roman reported.
> 
> -- 
> Eric Blake   eblake redhat com    +1-919-301-3266
> Libvirt virtualization library http://libvirt.org
> 


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]