Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2733656pxb; Mon, 6 Sep 2021 04:18:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzerBywGi7arUzRonXuj93cup3PIQpccT9FgK0cuJwXkWejTHlOk9kFOOOoOLXrX5EY76xZ X-Received: by 2002:a05:6e02:130e:: with SMTP id g14mr7754226ilr.81.1630927088263; Mon, 06 Sep 2021 04:18:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630927088; cv=none; d=google.com; s=arc-20160816; b=aDy/Iis5a3IvzEGVMbAqM42Q0vHNjmuBblMMLY+jibq/tCCuDfNTKXVOCMOE5F6BBE BNeNhRK6NDxuWHEGS6tANhtx4EpI6JuQo2HcQy3w3c2/HXm5RisptwAB09Wbo6GIjaA4 8+rKAZd/aebsp7VVD/x9HbsKoYJRTj6PT7kppToqTqe2kkEQ/0BoIsNTWyjWJaTx6WkA dweODc7ysPB1lNti17nI2hbJDjPsgtA5bVx4y1Gc8Z3/s2qdk4fkBUy8nH3wAIPSacEN PsiW2PowOhMzAWZ3O232Va2E1TgPwFKnKsj5CgvWTiJwQsOCtQ9J4eI8uRAUxHk76U/B 7PDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=nWqA5bd59m6V4+dZGWJ+NOzVo+wrigoVplO8la78Doo=; b=uEQZK5w9XYNXDqMVIW0RKVGrklFGQX4B7EZou4zqhEjOpaWA4Xrmk4dKcI/HzXGTSg m0EOKGewdLCF+k8G+h9aAy2iMNHFm+q9w1qrC1kMY84MpvzaNhdeRk4uV1stUVVuXlq/ OcyZ5YqQZtaiRdVRiVah6XPr2B6TkQaHkPX7aH7NZF35XjPnF8E2dP/rd1gi9SZxYjoT gaRNJBG2JwU2NLxk73d1Z4DytogQ/hYbWFP9bTKT/Vu4vmJok7FGWoO4XF+XJrAGYkL4 97V5FOpDtxrx3Rgz4IUSszS3lZYA+eCdobS6OC9eJMmKppoFWpnc2swPN+rhJ2YPybbZ 0lKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l39si7356873jac.108.2021.09.06.04.17.52; Mon, 06 Sep 2021 04:18:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241438AbhIFJuL (ORCPT + 99 others); Mon, 6 Sep 2021 05:50:11 -0400 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:34308 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241413AbhIFJuC (ORCPT ); Mon, 6 Sep 2021 05:50:02 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R931e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=alimailimapcm10staff010182156082;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0UnOy8TL_1630921725; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UnOy8TL_1630921725) by smtp.aliyun-inc.com(127.0.0.1); Mon, 06 Sep 2021 17:48:56 +0800 From: Jiapeng Chong To: mike.marciniszyn@cornelisnetworks.com Cc: dennis.dalessandro@cornelisnetworks.com, dledford@redhat.com, jgg@ziepe.ca, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, chongjiapeng Subject: [PATCH] IB/hfi1: make hist static Date: Mon, 6 Sep 2021 17:48:43 +0800 Message-Id: <1630921723-21545-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: chongjiapeng This symbol is not used outside of trace.c, so marks it static. Fix the following sparse warning: drivers/infiniband/hw/hfi1/trace.c:491:23: warning: symbol 'hist' was not declared. Should it be static? Reported-by: Abaci Robot Signed-off-by: chongjiapeng --- drivers/infiniband/hw/hfi1/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/hfi1/trace.c b/drivers/infiniband/hw/hfi1/trace.c index d9b5bbb..8302469 100644 --- a/drivers/infiniband/hw/hfi1/trace.c +++ b/drivers/infiniband/hw/hfi1/trace.c @@ -488,7 +488,7 @@ struct hfi1_ctxt_hist { atomic_t data[255]; }; -struct hfi1_ctxt_hist hist = { +static struct hfi1_ctxt_hist hist = { .count = ATOMIC_INIT(0) }; -- 1.8.3.1