Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5796315imw; Wed, 20 Jul 2022 12:44:46 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uivmRk4v+1maS+6ilbTeJ7O+IRBjgWjCppv6j+oTKA2bCJb85bBFlMBAr2Jc251yO9bDa8 X-Received: by 2002:a17:902:720b:b0:16d:2c4c:b52a with SMTP id ba11-20020a170902720b00b0016d2c4cb52amr2071895plb.155.1658346286012; Wed, 20 Jul 2022 12:44:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658346286; cv=none; d=google.com; s=arc-20160816; b=YZDMGz7EBcR6QjVf+X/8+7gweMuB0CxM6oZ3eGqEy7nDdb/LBGdXWKD/DC/2McPPiD 7Op446X6P+vgZdgdSvcTjjJ8Pp4EbTGoOiH8onMPXC9nkoUwcvRZkm304HaSiyFMoLXI U6AAJ+ZKxNuL1GVc9zxG76lQGKClqvto2+rEyumcrlPH0DjNaRmTYWKoE8wqvTHZf6jS nDx0ATxsSKvTKiiNUz2aSgoj3vTmeSYJyrNZXLxnalXyTM/v/KuUQrZ3DY8KNFe4+BnS ilqVen86xweNBFIFrdmiYJE1ngs2ONFYg2Z7oS24eJdtlfOu1ORgP2BJbiSd45N7YX5q mDyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=Za6u+H6tKFK97XHc5om46kye3ad5CVymML89HFNLOWQ=; b=wfIET/TyLt5iRl7NdbWArz/TPluVK1s5FRGgG2FPzm1Ji6HPhKFV1BXe/SZ7Hr05r+ oc8n8XFa5ARaA4uznxboSImqP03b2BtOE89VxFj9DzkuM5hVAM90k2veti3bC/wVSDO3 31ahQgLR0zxJeBTuSyTTDHrw0300B2mZROGUfhevFQPz2F5psA0Ja1I1BZtU0gBn1D4s ZWW7kUpuaSSCH/HYS/JBhFxkKUM/h+h32RK04+jrLeRG3gCvWIng2I8Ao4RWyf9Pk1Fu pGNGJu2K6/j7yzo5TLT2IMP9TSxi/2Z0tEePiyz8OzhqBYh84DD9raEIEFW8tLsmHRkw Hv3Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u11-20020a056a00158b00b0052acaf4a3c0si128067pfk.17.2022.07.20.12.44.31; Wed, 20 Jul 2022 12:44:46 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232838AbiGTTkJ (ORCPT + 99 others); Wed, 20 Jul 2022 15:40:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229570AbiGTTkI (ORCPT ); Wed, 20 Jul 2022 15:40:08 -0400 Received: from smtpbg.qq.com (biz-43-154-54-12.mail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FD1565D4A; Wed, 20 Jul 2022 12:40:02 -0700 (PDT) X-QQ-mid: bizesmtp91t1658345995to035zp2 Received: from harry-jrlc.. ( [125.70.163.183]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 21 Jul 2022 03:39:43 +0800 (CST) X-QQ-SSF: 0100000000200030C000C00A0000020 X-QQ-FEAT: +bXiSo2NuBeKioPucw27azFzSN7FKN7KqmpjEqbFFM0StNhYLSCZB7gZB64hp Mrbc+QPsqLWG1ZxJmJ0GmLM6JOHIdY7zPZsRak1+247BDVvvyXgKZu84vZqYxmzE1KMmlwP ITwh7ZFK/zDWEKxC4S4bxEvmYJ6FwnATDKXTp3vf32SzVqfmm11SiGnj5acrIs9PlOJXLOa +ooV4XJrMIOEke6MaMHLs+Eu6UAi9S74yDs8kAlsvBLph8MVvmSW4vQYMTPfI+f+1E34N3n CcYrYKXJRVshGzLvu+A7PDGEr43d+hSX0CNUtAqpZwelYmldqckvKQ1DUJnp7rPyNqBFypW r6gyyLxTCTeGtwaKc/QIKLH2xLMR9CKjrJ6c/toUexu00hw1VCaooFi2rzr6w== X-QQ-GoodBg: 0 From: Xin Gao To: James.Bottomley@HansenPartnership.com, deller@gmx.de Cc: linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org, Xin Gao Subject: [PATCH] dma-mapping:do not initialise statics to 0. Date: Thu, 21 Jul 2022 03:39:41 +0800 Message-Id: <20220720193941.8261-1-gaoxin@cdjrlc.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybglogicsvr:qybglogicsvr6 X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,RDNS_DYNAMIC, SPF_PASS,T_SPF_HELO_TEMPERROR autolearn=no 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 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 = NULL; -static unsigned long pcxl_used_bytes __read_mostly = 0; -static unsigned long pcxl_used_pages __read_mostly = 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); -- 2.30.2