[PATCH] format code

ruoguang posted 1 patch 2 years, 9 months ago
Test checkpatch failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210728064132.18367-1-qwe624758472@163.com
Maintainers: Kevin Wolf <kwolf@redhat.com>, Max Reitz <mreitz@redhat.com>
block/dmg-bz2.c   | 3 +--
block/dmg-lzfse.c | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
[PATCH] format code
Posted by ruoguang 2 years, 9 months ago
From: qwe624758472 <624758472@qq.com>

---
 block/dmg-bz2.c   | 3 +--
 block/dmg-lzfse.c | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/block/dmg-bz2.c b/block/dmg-bz2.c
index 37f7ee04be..2022eafc81 100644
--- a/block/dmg-bz2.c
+++ b/block/dmg-bz2.c
@@ -52,8 +52,7 @@ static int dmg_uncompress_bz2_do(char *next_in, unsigned int avail_in,
     return 0;
 }
 
-__attribute__((constructor))
-static void dmg_bz2_init(void)
+static void __attribute__((constructor)) dmg_bz2_init(void)
 {
     assert(!dmg_uncompress_bz2);
     dmg_uncompress_bz2 = dmg_uncompress_bz2_do;
diff --git a/block/dmg-lzfse.c b/block/dmg-lzfse.c
index 6798cf4fbf..9438539352 100644
--- a/block/dmg-lzfse.c
+++ b/block/dmg-lzfse.c
@@ -40,8 +40,7 @@ static int dmg_uncompress_lzfse_do(char *next_in, unsigned int avail_in,
     return -1;
 }
 
-__attribute__((constructor))
-static void dmg_lzfse_init(void)
+static void __attribute__((constructor)) dmg_lzfse_init(void)
 {
     assert(!dmg_uncompress_lzfse);
     dmg_uncompress_lzfse = dmg_uncompress_lzfse_do;
-- 
2.20.1