Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3435550ybv; Sun, 9 Feb 2020 23:25:18 -0800 (PST) X-Google-Smtp-Source: APXvYqzxN2qq3AW/E4thAXSmK+HAISJM1cfwPyUCkGZddYo4JAm0l6E+EWFMNdmcu9eGTx/Vu4Vr X-Received: by 2002:a9d:51c1:: with SMTP id d1mr106006oth.136.1581319518638; Sun, 09 Feb 2020 23:25:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581319518; cv=none; d=google.com; s=arc-20160816; b=k4lBETH8gvQbL5+9xZG8ahcHZHBcLmyjjTRqgae7UL9HiwYUwp7oqSLfGkmNIWB4w+ EUrQSRfEMfChrd04igCvInuPlmt/OaNB70sUe9IF7aslvING188wNiI0ve7yPiTnkhQ5 0NwZYrkv8EjDBlDanoVdvJjcs0r8X0HFtMN2d2UnhlE409QLnaxGefnRFb6BYxR2ftXx ByFkknyyx0le/I846Hvfb1UTGCvHgKER+77gB1nHLnzdZqovbvkC22mIgvq0hUG9IAUD Y4uvxlGFzx/kgIVj0y9yItZ2lSo9bOryPtis+0fiT5XAs8t/ZKPxb0l2e7C6n0I3UaT3 IUJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=dQI/rCCNxhCU+moc3jYhndHVxTVxg+m377pYEn8hINU=; b=JjYn4lbscWNqKVGdciLLyvW6s2uPtD8qwG6IKpLcGWj0Zw5sWlcRXO4jbQL8o3Zg42 QaC2Lh4LHnR9Sqwt8gl1fzUgN4t1fByBFBh6ne/OYdQQAH8jtfk9J/9t9kVcmJ9SZ02m UAiAQQeFZoapgOIkC5X74AQPOOoraBa9PmxHcjwfuppskpqwBUijZJ01nWGMbAEy2VE8 9Et3UpprQWr+opSJvf9LOsocmokzxsWwTQcoxlqA5BjXyXziG/9AMSrBnP6/isJWNZni cKUPetWyJUmuVzq1xoN+Hfi+O14oNLg1/BFTd+29puH6lGLMEZShhrS5XIJQSC9Fwg6S Mt2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a22si7967941oii.98.2020.02.09.23.25.05; Sun, 09 Feb 2020 23:25:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727420AbgBJHZB (ORCPT + 99 others); Mon, 10 Feb 2020 02:25:01 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:47342 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726118AbgBJHZB (ORCPT ); Mon, 10 Feb 2020 02:25:01 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id BDF7FB350DFE91E5EC80; Mon, 10 Feb 2020 15:24:48 +0800 (CST) Received: from euler.huawei.com (10.175.104.193) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Mon, 10 Feb 2020 15:24:40 +0800 From: Chen Wandun To: , , , , , , , , CC: Subject: [PATCH next] xprtrdma: make the symbol 'xprt_rdma_slot_table_entries' static Date: Mon, 10 Feb 2020 15:39:27 +0800 Message-ID: <20200210073927.8769-1-chenwandun@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.104.193] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: net/sunrpc/xprtrdma/transport.c:71:14: warning: symbol 'xprt_rdma_slot_table_entries' was not declared. Should it be static? Fixes: 86c4ccd9b92b ("xprtrdma: Eliminate struct rpcrdma_create_data_internal") Signed-off-by: Chen Wandun --- net/sunrpc/xprtrdma/transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sunrpc/xprtrdma/transport.c b/net/sunrpc/xprtrdma/transport.c index 3cfeba68ee9a..14c2a852d2a1 100644 --- a/net/sunrpc/xprtrdma/transport.c +++ b/net/sunrpc/xprtrdma/transport.c @@ -68,7 +68,7 @@ * tunables */ -unsigned int xprt_rdma_slot_table_entries = RPCRDMA_DEF_SLOT_TABLE; +static unsigned int xprt_rdma_slot_table_entries = RPCRDMA_DEF_SLOT_TABLE; unsigned int xprt_rdma_max_inline_read = RPCRDMA_DEF_INLINE; unsigned int xprt_rdma_max_inline_write = RPCRDMA_DEF_INLINE; unsigned int xprt_rdma_memreg_strategy = RPCRDMA_FRWR; -- 2.17.1