[Qemu-devel] [PATCH v2 0/1] include: Auto-generate the sizes lookup table

Leonid Bloch posted 1 patch 5 years, 3 months ago
Test asan passed
Test checkpatch passed
Test docker-mingw@fedora passed
Test docker-quick@centos7 passed
Test docker-clang@ubuntu passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20190103213320.2653-1-lbloch@janustech.com
There is a newer version of this series
.gitignore           |  1 +
Makefile             |  5 +++
block/qcow2.h        |  2 +-
block/vdi.c          |  1 +
include/qemu/units.h | 73 --------------------------------------------
scripts/gen-sizes.sh | 66 +++++++++++++++++++++++++++++++++++++++
6 files changed, 74 insertions(+), 74 deletions(-)
create mode 100755 scripts/gen-sizes.sh
[Qemu-devel] [PATCH v2 0/1] include: Auto-generate the sizes lookup table
Posted by Leonid Bloch 5 years, 3 months ago
Following the conversations here:
https://patchwork.kernel.org/patch/10665157
and here:
https://patchwork.kernel.org/patch/10666975

Making the lookup table for power-of-two sizes auto-generated, instead
of being hard-coded into the units.h file.

I'm not sure if the changes I've made to Makefile here are "standard".
Please correct me if that's not the case.

Sorry it took so much time - I was busy with something completely
different.


Regards,
Leonid.

---

Differences from v1:
* The generated header moved from $(SRC_PATH)/include/qemu/sizes.h to
  pow2_sizes.h in the build directory.
* The commit message mentions the commit which is partially reverted by
  the current commit.
* Small changes in the comments of the generated header file.

Leonid Bloch (1):
  include: Auto-generate the sizes lookup table

 .gitignore           |  1 +
 Makefile             |  5 +++
 block/qcow2.h        |  2 +-
 block/vdi.c          |  1 +
 include/qemu/units.h | 73 --------------------------------------------
 scripts/gen-sizes.sh | 66 +++++++++++++++++++++++++++++++++++++++
 6 files changed, 74 insertions(+), 74 deletions(-)
 create mode 100755 scripts/gen-sizes.sh

-- 
2.20.1