From patchwork Thu Jan 20 12:35:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 533572 Delivered-To: patch@linaro.org Received: by 2002:ac0:f7d2:0:0:0:0:0 with SMTP id i18csp23145imr; Thu, 20 Jan 2022 09:56:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJxnj4SL30NURFVLYQ9V0BOuGKbWti759XN2MVOkhswt34O9rlLdWDmEU8d2+cybyolUtuLP X-Received: by 2002:a25:58c2:: with SMTP id m185mr239836ybb.203.1642701382728; Thu, 20 Jan 2022 09:56:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642701382; cv=none; d=google.com; s=arc-20160816; b=FgFRx4YZlGc6ojUgk2SQU6uGobs/8vT1s7HePlbx4wes2xNHR8dtAx9Ap7MVnsH8mD W1RVYzlEHousJvhG8f6U+Zq7fUyXA0WbqlqPc/H/NSM5rK20mevHlzvfhLcoBfoCgyx4 D5Mpw0xIca4dKgMuHTGRYDOZQ8leL8loBk6PUujzC9BiLrtJJbnAPifw/8jcGFBTBoCO zvSLgWWOoQzHHwaLYouXBqH+ouJ3FzVpYLucVKXere5wosLf056H7UwysiBn+SGZDmqs uKnJ8HCWQ+BxuU3TFRMpe9gJuFZLUD/n0l1RSAqDzYbiyc+wY3Rq/Vx/1IK32H1rfclO AJlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=M0GSM/gGyPWyvP4duDWsVDdUIy8/Nu30tI3UmJhTaGU=; b=biAtLDaqCCX0ycPX4ZVDbye0pTfCzHS6b/Vuypk2SRqdZ+CTu316Jikoo5AbB4epK/ W5yXkzqlEvrk3ErrytZwkmGrbh4ithc8SPCAMrwlWMwf0bNPcIt1pZkqNM8I+QmcJoMx mWNETNOkebd1LqrujA5NzMxPe+jGw7fSyd5tjH8i6ur6CwHvpYxm/LeJ/7YNR/Nd1n8W 5gMA6idDwfeIS6fB5kCTcg0vFsMlCScysk8L/vcDm4tkdYwBAKwU8llhNptpKTnPGWeR ww2+AHgW88StmHTgrKZTrhdzB0Okfz5QkHW62UtVewb5DQGG/TKAeb1y5kglUe1JkrHY T8CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q4ZN2Glo; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s11si67347ywb.202.2022.01.20.09.56.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Jan 2022 09:56:22 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q4ZN2Glo; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:53510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nAbfa-0003oV-1o for patch@linaro.org; Thu, 20 Jan 2022 12:56:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAWgJ-00046t-5B for qemu-devel@nongnu.org; Thu, 20 Jan 2022 07:36:47 -0500 Received: from [2a00:1450:4864:20::333] (port=41714 helo=mail-wm1-x333.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nAWgA-000374-6z for qemu-devel@nongnu.org; Thu, 20 Jan 2022 07:36:42 -0500 Received: by mail-wm1-x333.google.com with SMTP id q141-20020a1ca793000000b00347b48dfb53so13504608wme.0 for ; Thu, 20 Jan 2022 04:36:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=M0GSM/gGyPWyvP4duDWsVDdUIy8/Nu30tI3UmJhTaGU=; b=q4ZN2GlooRMES+0zu99UdyQmOvR0IWq3PjSnP3SypVrTv8M8ZKwVZ1ilcE2ywD2uxj hURyMFfuTftnUZ8GJ6eWcWHJ8cYLRnDjK2WxWN2c6I/SbfaKGdUsdfaGvWO8No8bTpZK yftfuZcsOdNft2NWDNnQGROe8ySxEN47bYCPkmIQwl+a4g8Jm495VSbLYLWULG8vNd0m 4wGMAKhh0VdCpr29QsxTjEZETj4zeMztez29Z9mPMoyWUy5Znyaj6DiMYbFKK9Jpu6FU G75I9xX2IPOPo0Orv2bdHGmHTd7DwYLPKrFC+dPYY0ob015KteSFbKi89yKZMFq551/3 rQWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=M0GSM/gGyPWyvP4duDWsVDdUIy8/Nu30tI3UmJhTaGU=; b=drQV8hLRY3rNyTz5vRd16JPoipifaG75HLjuoZRqFkNHo9zdZrRMe0LG4HyIdywL6o d/16kSTecn47RmxNT76NTofxI7Y9TeBPsLU66yinKD3qM8lWg3nQ7l7H/kOs2NSFg23k K0L36rqEeNjTRwbCX6gHmSZJk0SnALPns6vfNkR3LXbhSElxk92yWagrBMdeprZsqZxQ 8lXjZsJqldcb4mtGbsdLl0s7TGgONy5asD97ZGBOG0VGq+6DrqnU+UHwWUaJRRONy/nv tV2KsEaA1h+7gX9sdjI8rLpoavczwPjWOu9tqQil1a+w3VZ93duqafRRTGE93lmSoebE MEPw== X-Gm-Message-State: AOAM532BYC2mseIr8F9/PNEJErPrddr4SJgSZSt3cIsUjk6cvxrEVr1Q LTEQSFOBe76B+jUkaBa2kpusm5d9R8gWNw== X-Received: by 2002:a05:600c:190a:: with SMTP id j10mr8693331wmq.55.1642682195221; Thu, 20 Jan 2022 04:36:35 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id t8sm7993324wmq.43.2022.01.20.04.36.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jan 2022 04:36:34 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 03/38] hw/arm/musicpal: Fix coding style of code related to MV88W8618 device Date: Thu, 20 Jan 2022 12:35:55 +0000 Message-Id: <20220120123630.267975-4-peter.maydell@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220120123630.267975-1-peter.maydell@linaro.org> References: <20220120123630.267975-1-peter.maydell@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::333 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x333.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé We are going to move this code, so fix its style first to avoid: ERROR: spaces required around that '/' (ctx:VxV) Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Message-id: 20220107184429.423572-3-f4bug@amsat.org Signed-off-by: Peter Maydell --- hw/arm/musicpal.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/hw/arm/musicpal.c b/hw/arm/musicpal.c index 2680ec55b5a..1291eb98aba 100644 --- a/hw/arm/musicpal.c +++ b/hw/arm/musicpal.c @@ -310,13 +310,13 @@ static uint64_t mv88w8618_eth_read(void *opaque, hwaddr offset, return s->imr; case MP_ETH_FRDP0 ... MP_ETH_FRDP3: - return s->frx_queue[(offset - MP_ETH_FRDP0)/4]; + return s->frx_queue[(offset - MP_ETH_FRDP0) / 4]; case MP_ETH_CRDP0 ... MP_ETH_CRDP3: - return s->rx_queue[(offset - MP_ETH_CRDP0)/4]; + return s->rx_queue[(offset - MP_ETH_CRDP0) / 4]; case MP_ETH_CTDP0 ... MP_ETH_CTDP1: - return s->tx_queue[(offset - MP_ETH_CTDP0)/4]; + return s->tx_queue[(offset - MP_ETH_CTDP0) / 4]; default: return 0; @@ -361,16 +361,16 @@ static void mv88w8618_eth_write(void *opaque, hwaddr offset, break; case MP_ETH_FRDP0 ... MP_ETH_FRDP3: - s->frx_queue[(offset - MP_ETH_FRDP0)/4] = value; + s->frx_queue[(offset - MP_ETH_FRDP0) / 4] = value; break; case MP_ETH_CRDP0 ... MP_ETH_CRDP3: - s->rx_queue[(offset - MP_ETH_CRDP0)/4] = - s->cur_rx[(offset - MP_ETH_CRDP0)/4] = value; + s->rx_queue[(offset - MP_ETH_CRDP0) / 4] = + s->cur_rx[(offset - MP_ETH_CRDP0) / 4] = value; break; case MP_ETH_CTDP0 ... MP_ETH_CTDP1: - s->tx_queue[(offset - MP_ETH_CTDP0)/4] = value; + s->tx_queue[(offset - MP_ETH_CTDP0) / 4] = value; break; } }