From nobody Tue Feb 10 03:15:53 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=1603192298; cv=none; d=zohomail.com; s=zohoarc; b=I7ZagwUy0axxdwkApiLtWVeW0lDtfIaels8LvLZZLqbRBGS8hVE5Ndphj27U/JqTH4FbAqeLN5jhZc8YMpcptSKH8dQcECoFf5LwdrtmdS8a8FALPBOgeQqmnzFDg3CfQ4a4OkBEjqHlZ+14HToAUAov6fWkzH+tpl39ELswz+Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1603192298; 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=+1lcwmryyBUtxeCixpZx/Sk504mU/aB4hHIA46RM6rE=; b=Dvz7tAaESPImcOPEaHnoQThGWCSTTGa5YAvyJIMiVo3eWOrL1ttrBUxy6mm0dobnPo7Wze/UNWCQBi7raIMai92sveNMAVojUhaePTtrp1h18g+YzEEL9k5X38kZmDZpXIuQ4iVKAgoFThYlHyt5fDw+ZgH0WKioz6UoN+vyIZY= 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 1603192298820704.1251155759778; Tue, 20 Oct 2020 04:11:38 -0700 (PDT) Received: from localhost ([::1]:49042 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUpYH-0006ez-NP for importer@patchew.org; Tue, 20 Oct 2020 07:11:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUpRJ-00071K-5L; Tue, 20 Oct 2020 07:04:25 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:45564 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 1kUpRE-0006sk-Fp; Tue, 20 Oct 2020 07:04:24 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id A031EA5BB60AC3ECDB7A; Tue, 20 Oct 2020 19:04:15 +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:50 +0800 From: Gan Qixin To: , Subject: [PATCH 10/10] hw/riscv/:split some lines containing more than 80 characters Date: Tue, 20 Oct 2020 04:30:23 +0800 Message-ID: <20201019203023.658555-11-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.32; envelope-from=ganqixin@huawei.com; helo=huawei.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/20 07:04:17 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/riscv/ contain lines with more than 80 characters. Signed-off-by: Gan Qixin --- hw/riscv/opentitan.c | 6 ++++-- hw/riscv/sifive_e.c | 6 ++++-- hw/riscv/sifive_u.c | 12 ++++++++---- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/hw/riscv/opentitan.c b/hw/riscv/opentitan.c index 0531bd879b..f587d5993e 100644 --- a/hw/riscv/opentitan.c +++ b/hw/riscv/opentitan.c @@ -121,7 +121,8 @@ static void lowrisc_ibex_soc_realize(DeviceState *dev_s= oc, Error **errp) memmap[IBEX_DEV_ROM].base, &s->rom); =20 /* Flash memory */ - memory_region_init_rom(&s->flash_mem, OBJECT(dev_soc), "riscv.lowrisc.= ibex.flash", + memory_region_init_rom(&s->flash_mem, OBJECT(dev_soc), + "riscv.lowrisc.ibex.flash", memmap[IBEX_DEV_FLASH].size, &error_fatal); memory_region_add_subregion(sys_mem, memmap[IBEX_DEV_FLASH].base, &s->flash_mem); @@ -172,7 +173,8 @@ static void lowrisc_ibex_soc_realize(DeviceState *dev_s= oc, Error **errp) create_unimplemented_device("riscv.lowrisc.ibex.pinmux", memmap[IBEX_DEV_PINMUX].base, memmap[IBEX_DEV_PINMUX].size); create_unimplemented_device("riscv.lowrisc.ibex.alert_handler", - memmap[IBEX_DEV_ALERT_HANDLER].base, memmap[IBEX_DEV_ALERT_HANDLER= ].size); + memmap[IBEX_DEV_ALERT_HANDLER].base, + memmap[IBEX_DEV_ALERT_HANDLER].size); create_unimplemented_device("riscv.lowrisc.ibex.nmi_gen", memmap[IBEX_DEV_NMI_GEN].base, memmap[IBEX_DEV_NMI_GEN].size); create_unimplemented_device("riscv.lowrisc.ibex.usbdev", diff --git a/hw/riscv/sifive_e.c b/hw/riscv/sifive_e.c index fcfac16816..80ef2f857e 100644 --- a/hw/riscv/sifive_e.c +++ b/hw/riscv/sifive_e.c @@ -111,7 +111,8 @@ static void sifive_e_machine_init(MachineState *machine) reset_vec[i] =3D cpu_to_le32(reset_vec[i]); } rom_add_blob_fixed_as("mrom.reset", reset_vec, sizeof(reset_vec), - memmap[SIFIVE_E_DEV_MROM].base, &address_space_m= emory); + memmap[SIFIVE_E_DEV_MROM].base, + &address_space_memory); =20 if (machine->kernel_filename) { riscv_load_kernel(machine->kernel_filename, NULL); @@ -227,7 +228,8 @@ static void sifive_e_soc_realize(DeviceState *dev, Erro= r **errp) } =20 /* Map GPIO registers */ - sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpio), 0, memmap[SIFIVE_E_DEV_GPIO0= ].base); + sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpio), 0, + memmap[SIFIVE_E_DEV_GPIO0].base); =20 /* Pass all GPIOs to the SOC layer so they are available to the board = */ qdev_pass_gpios(DEVICE(&s->gpio), dev, NULL); diff --git a/hw/riscv/sifive_u.c b/hw/riscv/sifive_u.c index 6ad975d692..2c06d1a319 100644 --- a/hw/riscv/sifive_u.c +++ b/hw/riscv/sifive_u.c @@ -528,7 +528,8 @@ static void sifive_u_machine_init(MachineState *machine) reset_vec[i] =3D cpu_to_le32(reset_vec[i]); } rom_add_blob_fixed_as("mrom.reset", reset_vec, sizeof(reset_vec), - memmap[SIFIVE_U_DEV_MROM].base, &address_space_m= emory); + memmap[SIFIVE_U_DEV_MROM].base, + &address_space_memory); =20 riscv_rom_copy_firmware_info(memmap[SIFIVE_U_DEV_MROM].base, memmap[SIFIVE_U_DEV_MROM].size, @@ -542,7 +543,8 @@ static bool sifive_u_machine_get_start_in_flash(Object = *obj, Error **errp) return s->start_in_flash; } =20 -static void sifive_u_machine_set_start_in_flash(Object *obj, bool value, E= rror **errp) +static void sifive_u_machine_set_start_in_flash(Object *obj, bool value, + Error **errp) { SiFiveUState *s =3D RISCV_U_MACHINE(obj); =20 @@ -731,13 +733,15 @@ static void sifive_u_soc_realize(DeviceState *dev, Er= ror **errp) if (!sysbus_realize(SYS_BUS_DEVICE(&s->prci), errp)) { return; } - sysbus_mmio_map(SYS_BUS_DEVICE(&s->prci), 0, memmap[SIFIVE_U_DEV_PRCI]= .base); + sysbus_mmio_map(SYS_BUS_DEVICE(&s->prci), 0, + memmap[SIFIVE_U_DEV_PRCI].base); =20 qdev_prop_set_uint32(DEVICE(&s->gpio), "ngpio", 16); if (!sysbus_realize(SYS_BUS_DEVICE(&s->gpio), errp)) { return; } - sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpio), 0, memmap[SIFIVE_U_DEV_GPIO]= .base); + sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpio), 0, + memmap[SIFIVE_U_DEV_GPIO].base); =20 /* Pass all GPIOs to the SOC layer so they are available to the board = */ qdev_pass_gpios(DEVICE(&s->gpio), dev, NULL); --=20 2.23.0