Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1686550ybg; Wed, 29 Jul 2020 23:13:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxm8nSeNRP6q0rUmn3AAOoSJFkHDk0WNuStCSx5AmypAH+uB+AY2S5D90Ge2onlfdura9YH X-Received: by 2002:a17:906:4451:: with SMTP id i17mr1150191ejp.259.1596089611522; Wed, 29 Jul 2020 23:13:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596089611; cv=none; d=google.com; s=arc-20160816; b=YbtHGS+DGfYaTv2Sy1HV5FyjXUedoViZrbL2J6lY+BkSfunPTUYsLArkvcgxSCzL3W piURgdCDgDViHYg5kJMeL43DWTfmBlHesWG3lJUV3i6BSd7FqBHJGj3DaXgNdnv5PCnk /uhsSIC28nKBcZEbvN68ssaLqT6lDKh6VeF+BOplZYmF1UO1c65XHnFBlnAQIHjInuC1 SgZp44bNL0TRGkoXoBZHF/iS+po55B7OPvH7y3b1154WFBy2rWuq23B/18yJttPiLtE0 SQLpBE562hzjOB4PbiBaOkfAUPLJy6kUb0kAeGQU2dKezUeNpBEKse6zvRJLoQ/unUPr F2bg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bGuOkLNWGQ9LxT3B//lrGZur5LQfmYsPpu4EyjGJMyo=; b=zxNuqAdJEVKJ1zB/nxXWzDYMWRo/fkyQP4s+BrJyyn//xqt+Z3dP/MP4EDTvSJXwzn J54cAZpsoLQHrvkD61YyQgz4e+hw2JTGWRvB3Ay7Fx4eo67Vly1KHPs7kCPKcVoETbUy cbeWM24J7Cq2Uc9g3bi5dTXXUh7+u2/M6xDtrjT3P5u2EJGY4QRsubMnQQEqK8iqnKxj S3YGpn8NKSOb7iTRPPGWrQlmpw214+yeIctadXjLvJkg5luBqYyI/qJzWZe4Og6nhvy/ r5O2T5dWwI+gtWaeqPzHgR7WiLNvgMWTvm0k5nrJyXoA+6bltUA+X5m/uS0+HsVBmqHv Qsqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=dLvMGyxs; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h14si2566094eja.174.2020.07.29.23.13.09; Wed, 29 Jul 2020 23:13:31 -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; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=dLvMGyxs; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728706AbgG3GKj (ORCPT + 99 others); Thu, 30 Jul 2020 02:10:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725892AbgG3GKi (ORCPT ); Thu, 30 Jul 2020 02:10:38 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E897C0619D2 for ; Wed, 29 Jul 2020 23:10:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=bGuOkLNWGQ9LxT3B//lrGZur5LQfmYsPpu4EyjGJMyo=; b=dLvMGyxsfes/Jk6F2a0+rxFfNd ZKt+nGGoSQ3bNhLC61WMDBAIakv6sw8YEfvbr7Y1aKv7MEwaeBw3HWJGscNLFjcQpbsXQwoH4x0x/ 3mFKAAaFgAfccRLXQLEq2Wl4QO5m0uhniUwXxaRiBw1AIpbAvFTfU3BHbvKq0FXVbgGN2wWRWS84x YNPQueEIQuC5RcJEbItHyQho+LcDOTeA4X4DWsBti9n+dXAISVWxZSdHg2ti2OzoLN7jV38rxAjCw vTozX5PQ7lu8sV+2hYyOSoWhsENOTTfmfNT/Skr1rj26ntkfKUU15aoQfrU5WjZ97fnFKLuqm6Hdi 1gQWri0w==; Received: from 138.57.168.109.cust.ip.kpnqwest.it ([109.168.57.138] helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1k11m0-0007UU-6s; Thu, 30 Jul 2020 06:10:36 +0000 From: Christoph Hellwig To: Jessica Yu Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org (open list) Subject: [PATCH 3/8] modules: mark each_symbol_section static Date: Thu, 30 Jul 2020 08:10:22 +0200 Message-Id: <20200730061027.29472-4-hch@lst.de> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200730061027.29472-1-hch@lst.de> References: <20200730061027.29472-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org each_symbol_section is only used inside of module.c. Signed-off-by: Christoph Hellwig --- include/linux/module.h | 9 --------- kernel/module.c | 3 +-- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/include/linux/module.h b/include/linux/module.h index 90bdc362be3681..b79219eed83c56 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -590,15 +590,6 @@ struct symsearch { bool unused; }; -/* - * Walk the exported symbol table - * - * Must be called with module_mutex held or preemption disabled. - */ -bool each_symbol_section(bool (*fn)(const struct symsearch *arr, - struct module *owner, - void *data), void *data); - /* Returns 0 and fills in value, defined and namebuf, or -ERANGE if symnum out of range. */ int module_get_kallsym(unsigned int symnum, unsigned long *value, char *type, diff --git a/kernel/module.c b/kernel/module.c index 84da96a6d8241c..feeaa9629eb179 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -422,7 +422,7 @@ static bool each_symbol_in_section(const struct symsearch *arr, } /* Returns true as soon as fn returns true, otherwise false. */ -bool each_symbol_section(bool (*fn)(const struct symsearch *arr, +static bool each_symbol_section(bool (*fn)(const struct symsearch *arr, struct module *owner, void *data), void *data) @@ -484,7 +484,6 @@ bool each_symbol_section(bool (*fn)(const struct symsearch *arr, } return false; } -EXPORT_SYMBOL_GPL(each_symbol_section); struct find_symbol_arg { /* Input */ -- 2.27.0