Received: by 2002:a19:690d:0:0:0:0:0 with SMTP id e13csp1140428lfc; Wed, 10 Feb 2021 02:11:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyftgGGhmDbGonCcBjaxnZqz0pZ2+z2AZGjLOPhUtGiGTZQ3UvTBkTwNWpAeW8xfWWOqhYN X-Received: by 2002:a25:fa02:: with SMTP id b2mr2818234ybe.382.1612951890183; Wed, 10 Feb 2021 02:11:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612951890; cv=none; d=google.com; s=arc-20160816; b=P2dFufFFw86qJ60IeZPKnbf9LDPN3ZgY+bgtQzlVdXBXzdxJXyRb+0qvoFOuSa0HOL qDDuByoWsc3z0+gAAEW/A1PNhy1yTbaVF04guZeCRcaShobrwuPb3K1VVR4x06rkf2bY CmnbwVGca2NDWV5OeoZUYTmP0VcoDeW40p74o3FKEO8AdI1G5KB21md/8pkoZxRwZEfe CybjRq36lOHCKiPok2nGbF/WFm+3tQUaU3wk5S4d4OSWC7tyCoZb56MmP3pYFTrzt+Gv gKQSYMW3B3H7e0zLPRFD9ufENoRJKgAwTz6mJXzXCVlwk49tNW8b5/KiOm/vJP21YTHh HhNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=BZ8g2ECT89Ko7kszhPtszjRG/LCVRqOzQivisaMoOVg=; b=yEE6BqfKwiAc4TQtJpMuB7SFRh4boQnzO6ZOj6Wh4/dKDJ8ez9/Oyx47U97sc5EzDb bE5Y+7F7po2EMngPDEEzKWNsAVTFZiG93ja35Ja/lY33q8rao0KhMxiSyGqpVV/80DUc CRWhTHhszlFYDEGpFKUYZ4uRTy/fYNW0x9+VCS045q33j3HhNFbf5xFU/UsBEyQFDiHk zFvv6pvrfz/SM1FcFQ4YlcmoUq1OnYjSPfYOWoYxhBpPGKCN+SIuAc9shE0Q373d2NYJ mF2CsWDn/hTcZzGx9URXMKANCbr2E1vs3+Z6/qD+A8AQWFc7wKbn3DTPnmDbNoIfxPq5 HCtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="AY8fBZ/k"; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id g3si1509670ybh.168.2021.02.10.02.11.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Feb 2021 02:11:30 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="AY8fBZ/k"; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from localhost ([::1]:45620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9mT2-0000bb-JF for alex.bennee@linaro.org; Wed, 10 Feb 2021 05:11:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9mSH-00009o-2c; Wed, 10 Feb 2021 05:10:41 -0500 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]:37396) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l9mSA-00031l-Vd; Wed, 10 Feb 2021 05:10:40 -0500 Received: by mail-ej1-x633.google.com with SMTP id jj19so3086702ejc.4; Wed, 10 Feb 2021 02:10:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=BZ8g2ECT89Ko7kszhPtszjRG/LCVRqOzQivisaMoOVg=; b=AY8fBZ/kRk5dyAqbeyd7jpL50Ksah+9NO2pkFawF+qhugxgztBk1OflT5RG+cGsdGL zYo6AZvWGGHKydSVtvTDq83ySJf5NW8FRsVyS3R2BNWncMdqJH3kKGTvxYi5Fn28wc8K 8gda56ecF19v8ZwMjsvKdl/qlXxJDLURKVtUczWOzYx3yaXQV25b5kheeaAx0kbK9eRi 1csK5pt3pGbLcL5hphMrHRxeaOb7DraDOTaXfMG7a5EoYHUw9uTe9Y6ioyj5V93wKqYA ElnK9zRptPQN3Ck+8MHKKeNHQNdcQZOsbsQCYP6EjzNf3TuCHjg3/6rN+aDkZ2vjKFBE 4+EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=BZ8g2ECT89Ko7kszhPtszjRG/LCVRqOzQivisaMoOVg=; b=UnSpF702BFjhiPAeUxTxuvgJp8a0EbjysLQDzbmZKCugDGgNT4dgfU//7LSl3KEimT YEmZCbSecg7DsAkCHcDVq4Kv0ot1CpqE2YJN8dzucovZv1aAb494Cwv7m+hyplKH5Ul4 km/Y3rPnIGDQMsSigVfgTMUhxmhEIqSGTeI3IM+fb4OF/DA8pMPppBDBBwqb0RBb6cWf 01MrU4EjCtti7P/GnrcWVaAuyMNO3TO6coqUxBFGO/zxdwdZpDAd2RAFmoKF5yrDVaWk /rF6CRY6ING8oQv2us9JRNvvBTfbESMyKZFJNvSQoN9/PDDKgwlGUZcctJSdnOoLWcZV LiUQ== X-Gm-Message-State: AOAM53022HOmicjMmAJGlwQYQ6tqQHaraq7T9Z+wqFO72zqZ7bWWiW+e I7NtnrKpGPQ4Lgv/YRgIZWU= X-Received: by 2002:a17:907:7346:: with SMTP id dq6mr2166883ejc.230.1612951832057; Wed, 10 Feb 2021 02:10:32 -0800 (PST) Received: from pek-vx-bsp2.wrs.com (ec2-44-242-66-180.us-west-2.compute.amazonaws.com. [44.242.66.180]) by smtp.gmail.com with ESMTPSA id y11sm785418ejd.72.2021.02.10.02.10.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Feb 2021 02:10:31 -0800 (PST) From: Bin Meng To: Alistair Francis , "Edgar E . Iglesias" , Peter Maydell Subject: [PATCH v3 2/5] hw/arm: xlnx-zynqmp: Clean up coding convention issues Date: Wed, 10 Feb 2021 18:10:10 +0800 Message-Id: <1612951813-50542-3-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1612951813-50542-1-git-send-email-bmeng.cn@gmail.com> References: <1612951813-50542-1-git-send-email-bmeng.cn@gmail.com> Received-SPF: pass client-ip=2a00:1450:4864:20::633; envelope-from=bmeng.cn@gmail.com; helo=mail-ej1-x633.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bin Meng , Francisco Iglesias , qemu-arm@nongnu.org, qemu-devel@nongnu.org, Xuzhou Cheng Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: tf6IeZD7pcAT From: Xuzhou Cheng There are some coding convention warnings in xlnx-zynqmp.c and xlnx-zynqmp.h, as reported by: $ ./scripts/checkpatch.pl include/hw/arm/xlnx-zynqmp.h $ ./scripts/checkpatch.pl hw/arm/xlnx-zynqmp.c Let's clean them up. Signed-off-by: Xuzhou Cheng Signed-off-by: Bin Meng --- Changes in v3: - new patch: xlnx-zynqmp: Clean up coding convention issues include/hw/arm/xlnx-zynqmp.h | 3 ++- hw/arm/xlnx-zynqmp.c | 11 +++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/include/hw/arm/xlnx-zynqmp.h b/include/hw/arm/xlnx-zynqmp.h index 6f45387..be15cc8 100644 --- a/include/hw/arm/xlnx-zynqmp.h +++ b/include/hw/arm/xlnx-zynqmp.h @@ -60,7 +60,8 @@ OBJECT_DECLARE_SIMPLE_TYPE(XlnxZynqMPState, XLNX_ZYNQMP) #define XLNX_ZYNQMP_GIC_REGIONS 6 -/* ZynqMP maps the ARM GIC regions (GICC, GICD ...) at consecutive 64k offsets +/* + * ZynqMP maps the ARM GIC regions (GICC, GICD ...) at consecutive 64k offsets * and under-decodes the 64k region. This mirrors the 4k regions to every 4k * aligned address in the 64k region. To implement each GIC region needs a * number of memory region aliases. diff --git a/hw/arm/xlnx-zynqmp.c b/hw/arm/xlnx-zynqmp.c index 8818472..76b94a5 100644 --- a/hw/arm/xlnx-zynqmp.c +++ b/hw/arm/xlnx-zynqmp.c @@ -301,11 +301,13 @@ static void xlnx_zynqmp_realize(DeviceState *dev, Error **errp) ram_size = memory_region_size(s->ddr_ram); - /* Create the DDR Memory Regions. User friendly checks should happen at + /* + * Create the DDR Memory Regions. User friendly checks should happen at * the board level */ if (ram_size > XLNX_ZYNQMP_MAX_LOW_RAM_SIZE) { - /* The RAM size is above the maximum available for the low DDR. + /* + * The RAM size is above the maximum available for the low DDR. * Create the high DDR memory region as well. */ assert(ram_size <= XLNX_ZYNQMP_MAX_RAM_SIZE); @@ -351,7 +353,7 @@ static void xlnx_zynqmp_realize(DeviceState *dev, Error **errp) qdev_realize(DEVICE(&s->apu_cluster), NULL, &error_fatal); - /* Realize APUs before realizing the GIC. KVM requires this. */ + /* Realize APUs before realizing the GIC. KVM requires this. */ for (i = 0; i < num_apus; i++) { const char *name; @@ -526,7 +528,8 @@ static void xlnx_zynqmp_realize(DeviceState *dev, Error **errp) SysBusDevice *sbd = SYS_BUS_DEVICE(&s->sdhci[i]); Object *sdhci = OBJECT(&s->sdhci[i]); - /* Compatible with: + /* + * Compatible with: * - SD Host Controller Specification Version 3.00 * - SDIO Specification Version 3.0 * - eMMC Specification Version 4.51 -- 2.7.4