Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7153186ybi; Mon, 8 Jul 2019 15:43:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxsX7uQSD+3d6HsKzoRymtxO9BPVE4jiquA4CcXTRSV7owiMhJQ2jS4tb44e8WGVpgtypkf X-Received: by 2002:a63:fc52:: with SMTP id r18mr26358354pgk.378.1562625805406; Mon, 08 Jul 2019 15:43:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562625805; cv=none; d=google.com; s=arc-20160816; b=dtXcw34SxJYN8JRcbAUR3Bfnl97n62R349yGh6s3l3dunR1X0KILIu83WFNchCMD22 cToaRgR8AJHFtMdbCAsJwJfG1pinPNx5igO2JQj7w8sFKmrFF/+TZoKR/moUw0Lq9OOB WX6XkkiKf7hTcufwGw2s3LOr2QBC6lSoYdVg4L1TFTjK51LJg22LaGVQBPzsKY9CWQvV E2hk6N5jzYuZM/A5xnotkEdA9Bu6G7XPVoi7MeSDqDCkjdsnoRnxhYy56lBVtmqgcmda ASkaZh+zElABkwprYcMMS5bLCKC57IeJ8DRpsoDDo0M+TGDf2q2DnzUU6KHPDljiU1TM DuOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=kzl7ySO00ACxBfoVjtfqCQyIPbur8JdXCvOsOSkfwVs=; b=A667rprOHE9GAoQFZzj8f4fPajW+On8aE0Jf1xNWe8u/13SISNctbngpjgsgL728k9 +sdBldOR0oQqQPgSMCH90rlM3ZMqSMqBGqZz9bi+r4fdgBrveDYyU3fz5UfyxZwi6EnX zIsS6e/EuN8KWiGFYcrGI+t9SVh+IILEZgSxt4nJpZKANzG1EGoVUqRcUxT+RnIyG/Nc ITQVbnkFh467mIgDQ1OH+iDkYfTcapo+RzHzrtEPRgAmVr4gLoEiOCoNuLcHpDqYuW5q 4WeJGGdqF/l0HYAndlpD2QlEn1HKuQ5Cdky9r6Ut3rS2A3MnEtygyky/lUXUGoUO8UmC cSuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-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 p93si709593pjp.66.2019.07.08.15.43.11; Mon, 08 Jul 2019 15:43:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-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-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729700AbfGHQOg (ORCPT + 99 others); Mon, 8 Jul 2019 12:14:36 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:38979 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728082AbfGHQOg (ORCPT ); Mon, 8 Jul 2019 12:14:36 -0400 Received: by mail-wr1-f65.google.com with SMTP id x4so17782905wrt.6; Mon, 08 Jul 2019 09:14:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kzl7ySO00ACxBfoVjtfqCQyIPbur8JdXCvOsOSkfwVs=; b=Eh1ANWy7KSHIGVPL/JqTDcjXii2sbzTOw7liXbRyQZ6f2Oiy/EmB1AqsNVlaIhFhFz d5Ysddn9EMdoOSFpYrChGWdqh8q+u5tfB6rhrk/gTVWsv5Rq3NUJ4GpEJeB4Yvgu4OBg OB867U6Y7RP1BsxaeKFym0eMgU+5u+8AEwXs1bNObMDO5EXUSMBGYIeHQn6T7fjrOeN3 J5ZOQbRayBqKFN2kN3avmH8+AS6Qgn3bO/aOO067tHBhoYWqI3kNCKDES+pywUUwAwUt jS6+tkxfcYlkE0hpPA+IciIOmAzc/bJA02fr7ABwOQs+DT/qhzGMBLnp1ChQIpAx9hGE HlgQ== X-Gm-Message-State: APjAAAXWRX5BiO5nHJS1yy5/QL9P7bvVq6sTYIv7IYmUcZbgwOaE4PB3 xpeJUMcenUSPY3NxvO6/MKk= X-Received: by 2002:a5d:620d:: with SMTP id y13mr20519604wru.243.1562602474041; Mon, 08 Jul 2019 09:14:34 -0700 (PDT) Received: from green.intra.ispras.ru (bran.ispras.ru. [83.149.199.196]) by smtp.googlemail.com with ESMTPSA id 15sm13468wmk.34.2019.07.08.09.14.32 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 08 Jul 2019 09:14:33 -0700 (PDT) From: Denis Efremov To: Trond Myklebust Cc: Denis Efremov , "J. Bruce Fields" , Chuck Lever , Anna Schumaker , "David S. Miller" , linux-nfs@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] sunrpc/cache: remove the exporting of cache_seq_next Date: Mon, 8 Jul 2019 19:14:23 +0300 Message-Id: <20190708161423.31006-1-efremov@linux.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org The function cache_seq_next is declared static and marked EXPORT_SYMBOL_GPL, which is at best an odd combination. Because the function is not used outside of the net/sunrpc/cache.c file it is defined in, this commit removes the EXPORT_SYMBOL_GPL() marking. Fixes: d48cf356a130 ("SUNRPC: Remove non-RCU protected lookup") Signed-off-by: Denis Efremov --- net/sunrpc/cache.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c index 66fbb9d2fba7..6f1528f271ee 100644 --- a/net/sunrpc/cache.c +++ b/net/sunrpc/cache.c @@ -1375,7 +1375,6 @@ static void *cache_seq_next(struct seq_file *m, void *p, loff_t *pos) hlist_first_rcu(&cd->hash_table[hash])), struct cache_head, cache_list); } -EXPORT_SYMBOL_GPL(cache_seq_next); void *cache_seq_start_rcu(struct seq_file *m, loff_t *pos) __acquires(RCU) -- 2.21.0