On 08/04/2022 21.19, Daniel Henrique Barboza wrote:


On 4/6/22 07:08, Bin Meng wrote:
On Tue, Apr 5, 2022 at 10:36 PM Guo Zhi <qtxuning1...@sjtu.edu.cn> wrote:

There are still some files in the QEMU PPC code base that use TABs for indentation instead of using  spaces.
The TABs should be replaced so that we have a consistent coding style.

If this patch is applied, issue:

https://gitlab.com/qemu-project/qemu/-/issues/374

can be closed.

Please add the following tag in the commit:


Resolves: https://gitlab.com/qemu-project/qemu/-/issues/374


This will make Gitlab automatically close the issue when the patch is accepted.


Signed-off-by: Guo Zhi <qtxuning1...@sjtu.edu.cn>
---
  hw/core/uboot_image.h  | 185 ++++++++++++++++++++---------------------
  hw/ppc/ppc440_bamboo.c |   6 +-
  hw/ppc/spapr_rtas.c    |  18 ++--
  include/hw/ppc/ppc.h   |  10 +--
  4 files changed, 109 insertions(+), 110 deletions(-)

diff --git a/hw/core/uboot_image.h b/hw/core/uboot_image.h

uboot_image.h was taken from the U-Boot source, I believe it should be
kept as it is.


(CCing Thomas since het explictly listed hw/core/uboot_image.h in the bug)


I am not sure about keeping this file as is.

Seems like uboot_image.h has originally been taken from U-Boot's include/image.h file ... but the two files are completely out of sync nowadays, e.g. U-Boot switched to enums instead of #defines at one point in time. So I think it does not make much sense to keep the TABs in here, and I'd rather like to see them replaced with spaces indeed.

 Thomas



Reply via email to