From nobody Tue Feb 10 09:57:26 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1603192297; cv=none; d=zohomail.com; s=zohoarc; b=AlQqO2ujKE22nNoDL0NaubYmUxH7ZIaWt/qTaylQRHyY/+37qtPfaFrpxf9qUP61BmW7BsQuIBGfpfrcSixfSLIq7zHwglthGhvo/juS0xua9ZPwWwfvim2M9HmsGoeoPSP3U5ZQA6wBYk6g+FDp92/g9mJ7P+t4Tsu1WaM28m8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1603192297; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=E992Qegkvalu9bfGgGvEW1/CVi+VMpcnLhMLIdVPlYc=; b=W2fZ5dPBEtgyRTrUdP3EsxAkSXFjOxxDr5ov6PUDF32uNN5r93GS0HNcCMB0/PPB6K5AYt6ks//GJm37dg3jEoIAD7HFXEHRw2phT9JXTqP7PwIRWKervN397+z2MuETrPVcAw0MdsWO48XaLp+fEZOKglRQzeFSc9wc7Pos4DQ= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1603192297384187.6385904073852; Tue, 20 Oct 2020 04:11:37 -0700 (PDT) Received: from localhost ([::1]:48936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUpYG-0006aY-7B for importer@patchew.org; Tue, 20 Oct 2020 07:11:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49366) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUpQx-00067S-LH; Tue, 20 Oct 2020 07:04:03 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:38960 helo=huawei.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUpQv-0006oj-FT; Tue, 20 Oct 2020 07:04:03 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id ACACA193F93C4181BED7; Tue, 20 Oct 2020 19:03:49 +0800 (CST) Received: from huawei.com (10.175.104.175) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Tue, 20 Oct 2020 19:03:39 +0800 From: Gan Qixin To: , Subject: [PATCH 02/10] hw/core/:split some lines containing more than 80 characters Date: Tue, 20 Oct 2020 04:30:15 +0800 Message-ID: <20201019203023.658555-3-ganqixin@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20201019203023.658555-1-ganqixin@huawei.com> References: <20201019203023.658555-1-ganqixin@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.175.104.175] X-CFilter-Loop: Reflected Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=45.249.212.35; envelope-from=ganqixin@huawei.com; helo=huawei.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/20 07:03:45 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_12_24=1.049, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lvivier@redhat.com, peter.maydell@linaro.org, zhang.zhanghailiang@huawei.com, mst@redhat.com, f4bug@amsat.org, alistair.francis@wdc.com, Gan Qixin , kuhn.chenqun@huawei.com, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" By using scripts/checkpatch.pl, it is found that many files in hw/core/ contain lines with more than 80 characters. Signed-off-by: Gan Qixin --- hw/core/bus.c | 3 ++- hw/core/loader.c | 17 +++++++++++------ hw/core/machine-hmp-cmds.c | 6 ++++-- hw/core/machine.c | 3 ++- hw/core/qdev-properties-system.c | 4 ++-- 5 files changed, 21 insertions(+), 12 deletions(-) diff --git a/hw/core/bus.c b/hw/core/bus.c index a0483859ae..9b2dc7e25c 100644 --- a/hw/core/bus.c +++ b/hw/core/bus.c @@ -158,7 +158,8 @@ void qbus_create_inplace(void *bus, size_t size, const = char *typename, qbus_init(bus, parent, name); } =20 -BusState *qbus_create(const char *typename, DeviceState *parent, const cha= r *name) +BusState *qbus_create(const char *typename, DeviceState *parent, + const char *name) { BusState *bus; =20 diff --git a/hw/core/loader.c b/hw/core/loader.c index 8bbb1797a4..50839d93e3 100644 --- a/hw/core/loader.c +++ b/hw/core/loader.c @@ -211,14 +211,18 @@ static void bswap_ahdr(struct exec *e) #define N_TXTOFF(x) \ (N_MAGIC(x) =3D=3D ZMAGIC ? _N_HDROFF((x)) + sizeof (struct exec) : \ (N_MAGIC(x) =3D=3D QMAGIC ? 0 : sizeof (struct exec))) -#define N_TXTADDR(x, target_page_size) (N_MAGIC(x) =3D=3D QMAGIC ? target_= page_size : 0) -#define _N_SEGMENT_ROUND(x, target_page_size) (((x) + target_page_size - 1= ) & ~(target_page_size - 1)) +#define N_TXTADDR(x, target_page_size) \ + (N_MAGIC(x) =3D=3D QMAGIC ? target_page_size : 0) +#define _N_SEGMENT_ROUND(x, target_page_size) \ + (((x) + target_page_size - 1) & ~(target_page_size - 1)) =20 -#define _N_TXTENDADDR(x, target_page_size) (N_TXTADDR(x, target_page_size)= +(x).a_text) +#define _N_TXTENDADDR(x, target_page_size) \ + (N_TXTADDR(x, target_page_size) + (x).a_text) =20 #define N_DATADDR(x, target_page_size) \ - (N_MAGIC(x)=3D=3DOMAGIC? (_N_TXTENDADDR(x, target_page_size)) \ - : (_N_SEGMENT_ROUND (_N_TXTENDADDR(x, target_page_size), target_page_= size))) + (N_MAGIC(x) =3D=3D OMAGIC ? (_N_TXTENDADDR(x, target_page_size)) \ + : (_N_SEGMENT_ROUND(_N_TXTENDADDR(x, target_page_size), \ + target_page_size))) =20 =20 int load_aout(const char *filename, hwaddr addr, int max_sz, @@ -1190,7 +1194,8 @@ int rom_check_and_register_reset(void) } section =3D memory_region_find(rom->mr ? rom->mr : get_system_memo= ry(), rom->addr, 1); - rom->isrom =3D int128_nz(section.size) && memory_region_is_rom(sec= tion.mr); + rom->isrom =3D int128_nz(section.size) + && memory_region_is_rom(section.mr); memory_region_unref(section.mr); } qemu_register_reset(rom_reset, NULL); diff --git a/hw/core/machine-hmp-cmds.c b/hw/core/machine-hmp-cmds.c index 6357be9c6b..65280d53bc 100644 --- a/hw/core/machine-hmp-cmds.c +++ b/hw/core/machine-hmp-cmds.c @@ -73,7 +73,8 @@ void hmp_hotpluggable_cpus(Monitor *mon, const QDict *qdi= ct) monitor_printf(mon, " node-id: \"%" PRIu64 "\"\n", c->node_= id); } if (c->has_socket_id) { - monitor_printf(mon, " socket-id: \"%" PRIu64 "\"\n", c->soc= ket_id); + monitor_printf(mon, " socket-id: \"%" PRIu64 "\"\n", + c->socket_id); } if (c->has_die_id) { monitor_printf(mon, " die-id: \"%" PRIu64 "\"\n", c->die_id= ); @@ -82,7 +83,8 @@ void hmp_hotpluggable_cpus(Monitor *mon, const QDict *qdi= ct) monitor_printf(mon, " core-id: \"%" PRIu64 "\"\n", c->core_= id); } if (c->has_thread_id) { - monitor_printf(mon, " thread-id: \"%" PRIu64 "\"\n", c->thr= ead_id); + monitor_printf(mon, " thread-id: \"%" PRIu64 "\"\n", + c->thread_id); } =20 l =3D l->next; diff --git a/hw/core/machine.c b/hw/core/machine.c index 7e2f4ec08e..055473c23a 100644 --- a/hw/core/machine.c +++ b/hw/core/machine.c @@ -317,7 +317,8 @@ static char *machine_get_dt_compatible(Object *obj, Err= or **errp) return g_strdup(ms->dt_compatible); } =20 -static void machine_set_dt_compatible(Object *obj, const char *value, Erro= r **errp) +static void machine_set_dt_compatible(Object *obj, + const char *value, Error **errp) { MachineState *ms =3D MACHINE(obj); =20 diff --git a/hw/core/qdev-properties-system.c b/hw/core/qdev-properties-sys= tem.c index 49bdd12581..c4f7170a06 100644 --- a/hw/core/qdev-properties-system.c +++ b/hw/core/qdev-properties-system.c @@ -418,8 +418,8 @@ static void set_netdev(Object *obj, Visitor *v, const c= har *name, } =20 if (queues > MAX_QUEUE_NUM) { - error_setg(errp, "queues of backend '%s'(%d) exceeds QEMU limitati= on(%d)", - str, queues, MAX_QUEUE_NUM); + error_setg(errp, "queues of backend '%s'(%d) exceeds" + "QEMU limitation(%d)", str, queues, MAX_QUEUE_NUM); goto out; } =20 --=20 2.23.0