Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7201261ybi; Mon, 8 Jul 2019 16:48:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyucaopV0hZ9aLJl7OZ9pLfZ6gMHPDFUAoAT3F9Tf8EJdEQrjtQsmNVyqXcu9vBHDXqiAvA X-Received: by 2002:a63:4104:: with SMTP id o4mr27800613pga.345.1562629709428; Mon, 08 Jul 2019 16:48:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562629709; cv=none; d=google.com; s=arc-20160816; b=yg+qTaTNetoUgKsXwphspLfkIFOviGbfC9Fcr1TNe8XgDFlo9eCQiC+QyyYucsmA03 3pYSjscCI3ekqyz6FlkRBD/1ta0cEGg8FX5XAp9WVZKck67JP2x02Vg0zM0KVA/sBKJc H2aqRnZSMByhNJodrJto9nV5DYjiHBQmEHWUC/8v1hxPmtUFYMznE01BDeHgpY4sS7MS 7CyYSWbdfPifjzt2vq+BB8VrL8xKgFXPtacK8uy/llU9lHh800hA5I/37+bNcADJl256 50KsqB8zCSvgxM+E6KQQABT5oMOLPXbj5lLEF/TZmyJ3uzkvzOcraGxCCoL7RdE/Yib6 xzEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=NP0XTkpdRNsU8yeuZ3VtBJVhKsCZrlx16K6st/oppdQ=; b=zaCj0KZOfIaqkQkJedOeWefMIIO19EfPzexTzue8WRLB9CKfiFtSoKbhlqFUpF2VdA gmpRHblxMxJOh9p8UusRiU/e1ylbez54lsqpg0+OUlr3Z0s39nKUNR1BXODMKhQpkPmZ B9lPjR46SoTc1+6BenXobC6c2Qq8zBpKv75nEAS5G2LTbrTOHjVEI9z23yhqWQeWB7OL ge9IUpI5dszurq7EPaUqQbf0gjmFr9sbPFwF7UpJgYW/BTq8uVfuw5exMPw1B/zC9Meo zTolfaGwyEq4PG6zWx9g9xfOdHSBsTnpK6RTTzWPa9M0y/0ez9w0LZC4Kb0zwryjwAYy yRsA== 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 z15si14199496pgl.316.2019.07.08.16.48.14; Mon, 08 Jul 2019 16:48:29 -0700 (PDT) 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 S1727523AbfGHXXb (ORCPT + 99 others); Mon, 8 Jul 2019 19:23:31 -0400 Received: from fieldses.org ([173.255.197.46]:38168 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727154AbfGHXXb (ORCPT ); Mon, 8 Jul 2019 19:23:31 -0400 Received: by fieldses.org (Postfix, from userid 2815) id D396E7CB; Mon, 8 Jul 2019 19:23:30 -0400 (EDT) Date: Mon, 8 Jul 2019 19:23:30 -0400 From: "J. Bruce Fields" To: Denis Efremov Cc: Trond Myklebust , Chuck Lever , Anna Schumaker , "David S. Miller" , linux-nfs@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sunrpc/cache: remove the exporting of cache_seq_next Message-ID: <20190708232330.GA13464@fieldses.org> References: <20190708161423.31006-1-efremov@linux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190708161423.31006-1-efremov@linux.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Makes sense, thanks; apply for 5.3.--b. On Mon, Jul 08, 2019 at 07:14:23PM +0300, Denis Efremov wrote: > 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