Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp327223imi; Thu, 21 Jul 2022 01:24:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1slbu1M9Hfujv4YX1rihSTSO75ujRkbr0y4z82jKEseJQpy9Zr+9YEOa+h1zvtAGargwM7T X-Received: by 2002:a05:6402:c47:b0:437:ce2d:c30d with SMTP id cs7-20020a0564020c4700b00437ce2dc30dmr54701420edb.395.1658391851477; Thu, 21 Jul 2022 01:24:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658391851; cv=none; d=google.com; s=arc-20160816; b=i7XUVFpxqRvgoxri8MKKWPudbTAk70loeWzPrgISrHW6pG/+hi8frMmuVRQkPoIqCk 3q+a/awTEb4a06RwJIydsFVuClO41Et6JWHTdZfUwPc9q7yJjOhlJ+DD1YstZeJkCSKF 2/EgDqtXEdxvUVqCNqc9H+N2iRbQWRsd4fjd6v2b+HhJdXmYxLFPG+doSPxNB2AOHOU4 mWKnETXQ8zwRafGRBqFCFCcbwQnW+u1zXIr31XYiAxE2AhAAZD6rymVf7Qp1da+M10Ya 4ZHeMIhY4ItrZvY2w3ZlxH5r7A3y9JWt5WHsMMGqVGHmLf/CKx3CxpzVoCrAz0Mssxu9 gXwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=6f2ItzgwfEDiCCyuEAmzLrLSVOhVDo/d19wBA6lN09s=; b=sHcXe0e6kFka7RRaS/dIr811GMvSpjgnixgBJFWbccq5MgAwhxUa2W6iTt9ri3yqlv BTulf5zIuzJtexj+c6/C3/lUiWcq74/blgmm+ogU3B9bY4Taced7+s5fwSYOGAFbW+ZE eTv67Q1XaVd9ozEQAvqivMsP4SsrnMAj2EU8Uih7vWCl+id1M2hk8i7NnOGJmO72KFAX vNrxbnR0iM7c9ijUGkm6nAwkx4IEqFkBlAJL0brVUx37gRsit57Mm0KhXwr2xaifFqUO AzqiYytamB4l1x6W3EhIsMWptaCncdTn/IbskyKjcjWZAkPhBTCMInKOzqhOfQuXaQVn d/Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=BTWN8TzH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dp15-20020a170906c14f00b0072b83e87339si1893535ejc.208.2022.07.21.01.23.46; Thu, 21 Jul 2022 01:24:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=BTWN8TzH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231524AbiGUIVr (ORCPT + 99 others); Thu, 21 Jul 2022 04:21:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230201AbiGUIVq (ORCPT ); Thu, 21 Jul 2022 04:21:46 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E950C7E002; Thu, 21 Jul 2022 01:21:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1658391697; bh=yNyaWxGVWAkT4VwBbvTqloaCzcp93id9lrdVRLcIzxE=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=BTWN8TzHtxoRGp72P8nurA+lrMmWQUH2h+S2ptppi5YULal1rCWKbG4uE3z2gznC1 Zvy7xWuAg3//NAzYeDQVoZQ8g41z/5BJ0wI07dSR3nA2TXjHNgqR2s6cB72EAd1/TR rdHelyOnGumv0SBr6Ddw61qCKXvoMeY/vvaPYLE0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.130.88]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M4s4r-1oFocI3XN9-0022ti; Thu, 21 Jul 2022 10:21:37 +0200 Message-ID: Date: Thu, 21 Jul 2022 10:21:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] dma-mapping:do not initialise statics to 0. Content-Language: en-US To: Xin Gao Cc: linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220720193941.8261-1-gaoxin@cdjrlc.com> From: Helge Deller In-Reply-To: <20220720193941.8261-1-gaoxin@cdjrlc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:gYTUu6tG0sdhEE85vOo6dYW4wCykQ9sH4QkWJdu7L5837A3aG2D tjytWJg7xk/VJNutSNaAfb5mmapZQ1fLxdmwPXTCD3XGNnI6bTv8MY1arq0dKXzXYzivFod zRfaiZnm+3l4lGLe6o+4u4xmF0Q1FVt07rIM9AQnwfWw2CtABUkP+GtWKc+0FlxnGh9YWX7 kfq1nXlkRqcG5EwlF70Xw== X-UI-Out-Filterresults: notjunk:1;V03:K0:6XwlE23K330=:CiVxwWkTZSFSbTvpYLnU2E U49XW4EdBsn2F+DD1ifHsobWC/8PfpMlvN7QhSbstuc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0fCn X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/20/22 21:39, Xin Gao wrote: > do not initialise statics to 0. > > Signed-off-by: Xin Gao > --- > arch/parisc/kernel/pci-dma.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/parisc/kernel/pci-dma.c b/arch/parisc/kernel/pci-dma.c > index 160996f2198e..ba87f791323b 100644 > --- a/arch/parisc/kernel/pci-dma.c > +++ b/arch/parisc/kernel/pci-dma.c > @@ -36,8 +36,8 @@ > #include /* for purge_tlb_*() macros */ > > static struct proc_dir_entry * proc_gsc_root __read_mostly =3D NULL; While at it, you could remove the "=3D NULL" as well. Helge > -static unsigned long pcxl_used_bytes __read_mostly =3D 0; > -static unsigned long pcxl_used_pages __read_mostly =3D 0; > +static unsigned long pcxl_used_bytes __read_mostly; > +static unsigned long pcxl_used_pages __read_mostly; > > extern unsigned long pcxl_dma_start; /* Start of pcxl dma mapping area = */ > static DEFINE_SPINLOCK(pcxl_res_lock);