1. 16 10月, 2019 2 次提交
  2. 10 4月, 2019 1 次提交
  3. 04 2月, 2019 1 次提交
  4. 14 12月, 2018 1 次提交
    • D
      Remove all Author(s): lines from source file headers · 60046283
      Daniel P. Berrangé 提交于
      In many files there are header comments that contain an Author:
      statement, supposedly reflecting who originally wrote the code.
      In a large collaborative project like libvirt, any non-trivial
      file will have been modified by a large number of different
      contributors. IOW, the Author: comments are quickly out of date,
      omitting people who have made significant contribitions.
      
      In some places Author: lines have been added despite the person
      merely being responsible for creating the file by moving existing
      code out of another file. IOW, the Author: lines give an incorrect
      record of authorship.
      
      With this all in mind, the comments are useless as a means to identify
      who to talk to about code in a particular file. Contributors will always
      be better off using 'git log' and 'git blame' if they need to  find the
      author of a particular bit of code.
      
      This commit thus deletes all Author: comments from the source and adds
      a rule to prevent them reappearing.
      
      The Copyright headers are similarly misleading and inaccurate, however,
      we cannot delete these as they have legal meaning, despite being largely
      inaccurate. In addition only the copyright holder is permitted to change
      their respective copyright statement.
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      60046283
  5. 28 7月, 2018 1 次提交
    • J
      util: clang is failing to compile due to unused variables. · 7f6d6b96
      Julio Faracco 提交于
      After some recent patches, clang is throwing some errors related to
      unused variables. This is not happening when we use GCC with -Werror
      enabled. Only clang reports this warning.
      
      make[3]: Entering directory '/home/julio/Desktop/virt/libvirt/src'
        CC       util/libvirt_util_la-virscsivhost.lo
        CC       util/libvirt_util_la-virusb.lo
        CC       util/libvirt_util_la-virmdev.lo
      util/virmdev.c:373:36: error: unused variable 'ret' [-Werror,-Wunused-variable]
          VIR_AUTOPTR(virMediatedDevice) ret = virMediatedDeviceListSteal(list, dev);
                                         ^
      1 error generated.
      Makefile:11579: recipe for target 'util/libvirt_util_la-virmdev.lo' failed
      make[3]: *** [util/libvirt_util_la-virmdev.lo] Error 1
      make[3]: *** Waiting for unfinished jobs....
      util/virscsivhost.c:112:37: error: unused variable 'tmp' [-Werror,-Wunused-variable]
          VIR_AUTOPTR(virSCSIVHostDevice) tmp = virSCSIVHostDeviceListSteal(list, dev);
                                          ^
      1 error generated.
      Makefile:11411: recipe for target 'util/libvirt_util_la-virscsivhost.lo' failed
      make[3]: *** [util/libvirt_util_la-virscsivhost.lo] Error 1
      util/virusb.c:511:31: error: unused variable 'ret' [-Werror,-Wunused-variable]
          VIR_AUTOPTR(virUSBDevice) ret = virUSBDeviceListSteal(list, dev);
      Signed-off-by: NJulio Faracco <jcfaracco@gmail.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      7f6d6b96
  6. 27 7月, 2018 2 次提交
  7. 18 4月, 2018 1 次提交
    • M
      virobject: Introduce VIR_CLASS_NEW() macro · 10f94828
      Michal Privoznik 提交于
      So far we are repeating the following lines over and over:
      
        if (!(virSomeObjectClass = virClassNew(virClassForObject(),
                                   "virSomeObject",
                                   sizeof(virSomeObject),
                                   virSomeObjectDispose)))
            return -1;
      
      While this works, it is impossible to do some checking. Firstly,
      the class name (the 2nd argument) doesn't match the name in the
      code in all cases (the 3rd argument). Secondly, the current style
      is needlessly verbose. This commit turns example into following:
      
        if (!(VIR_CLASS_NEW(virSomeObject,
                            virClassForObject)))
            return -1;
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      10f94828
  8. 14 12月, 2017 2 次提交
  9. 15 12月, 2016 1 次提交
  10. 25 11月, 2016 1 次提交
    • E
      util: Management routines for scsi_host devices · 629544be
      Eric Farman 提交于
      For a new hostdev type='scsi_host' we have a number of
      required functions for managing, adding, and removing the
      host device to/from guests.  Provide the basic infrastructure
      for these tasks.
      
      The name "SCSIVHost" (and its variants) is chosen to avoid
      conflicts with existing code named "SCSIHost" to refer to
      a hostdev type='scsi' protcol='none'.
      Signed-off-by: NEric Farman <farman@linux.vnet.ibm.com>
      629544be