[libvirt] [PATCH -v2 0/2] esx: use coccinelle to avoid code duplication

Marcos Paulo de Souza posted 2 patches 5 years, 9 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20180704023123.8271-1-marcos.souza.org@gmail.com
Test syntax-check passed
src/esx/esx_driver.c         |   5 +-
src/esx/esx_network_driver.c |  10 +--
src/esx/esx_util.c           |   5 +-
src/esx/esx_util.h           |   8 ++
src/esx/esx_vi.c             | 165 +++++++----------------------------
src/esx/esx_vi_methods.c     |  10 +--
src/esx/esx_vi_types.c       |  51 +++--------
7 files changed, 57 insertions(+), 197 deletions(-)
[libvirt] [PATCH -v2 0/2] esx: use coccinelle to avoid code duplication
Posted by Marcos Paulo de Souza 5 years, 9 months ago
Hi guys,

in this second version I address the comments of Michal and Matthias. Changes from v1 are placed in each patch.
Please let me know if you have more suggestions for the approach taken.

Thanks,

Marcos Paulo de Souza (2):
  esx_util.h: Add ESX_VI_CHECK_ARG_LIST macro
  esx: Use ESX_VI_CHECK_ARG_LIST macro to avoid code duplication

 src/esx/esx_driver.c         |   5 +-
 src/esx/esx_network_driver.c |  10 +--
 src/esx/esx_util.c           |   5 +-
 src/esx/esx_util.h           |   8 ++
 src/esx/esx_vi.c             | 165 +++++++----------------------------
 src/esx/esx_vi_methods.c     |  10 +--
 src/esx/esx_vi_types.c       |  51 +++--------
 7 files changed, 57 insertions(+), 197 deletions(-)

-- 
2.17.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH -v2 0/2] esx: use coccinelle to avoid code duplication
Posted by Michal Prívozník 5 years, 9 months ago
On 07/04/2018 04:31 AM, Marcos Paulo de Souza wrote:
> Hi guys,
> 
> in this second version I address the comments of Michal and Matthias. Changes from v1 are placed in each patch.
> Please let me know if you have more suggestions for the approach taken.
> 
> Thanks,
> 
> Marcos Paulo de Souza (2):
>   esx_util.h: Add ESX_VI_CHECK_ARG_LIST macro
>   esx: Use ESX_VI_CHECK_ARG_LIST macro to avoid code duplication
> 
>  src/esx/esx_driver.c         |   5 +-
>  src/esx/esx_network_driver.c |  10 +--
>  src/esx/esx_util.c           |   5 +-
>  src/esx/esx_util.h           |   8 ++
>  src/esx/esx_vi.c             | 165 +++++++----------------------------
>  src/esx/esx_vi_methods.c     |  10 +--
>  src/esx/esx_vi_types.c       |  51 +++--------
>  7 files changed, 57 insertions(+), 197 deletions(-)
> 


ACKed and pushed.

Michal

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