Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp2108898lkv; Thu, 20 May 2021 03:37:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzE7FOVNhi5VLsdis8CgLAtv5qpbfgUwVhpZLUj73sU7AYuvv/l/S6YfjPq9hHf5q3GAXl5 X-Received: by 2002:a05:6602:2289:: with SMTP id d9mr4794491iod.198.1621507031777; Thu, 20 May 2021 03:37:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621507031; cv=none; d=google.com; s=arc-20160816; b=mgBykzyoeJKuAdwczsivqGGpEAaFl2kORePSoLRviLClvZD8f0fdQxwW4g1IRXTyPI nW2YCw9Ype1OuSTea6tDPM1zZnHl+DCSdqCp20/cdacHi13MezXky37Cj/oCSjhYqvLR FLr+6jDSKTEHBkNheTCW/wfV0Ln22azDDC0is9fDPHBaG/IJ5NNkxZZzMDJ7LqCgi7Vx 5Cr7mRCUjABburfIogNU4GMfI8/+pDZIqXetIAzRv2LVOf57LfjpA2MlqgE2SXKup7b/ ZjK+vJHJ+UXzaHqQj4Pv8qp4ooUDU15sSSFW179O+W8FdedCSsJkVt1NlEXp3MI8VVKq NnyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=TwNQFS3jpSevaq4pBBT8vv3MsqVzVikUgkWtYhJCbAc=; b=KsW8a3FuD1p6GLlK9q6dd4RfIuTkmWwHhng9acP4yCB4WIVh7JXe0mfzNlX+w+AIqv 0hxTYOzGwwQ2EcQdUp1bGYeMX94pFy3VbCUNy1f5hc4CGQ7rGyo/k9RNu5qWpNpagW1/ iuLRKz2fnd+uoUyoPx0tcJH4E5yN1zUUmrJ0K92C242n6ygru+YatcgNn+gToeGYLXgR 7chd4lv3abOTilLdIi/U+OsIDgJFq+L/utiUib7kOw1skcpJQGtxw85aEnVgxVp3nyyz RIu1NCkiXb8YX7y0zjfu6lBKtRepNIiKJwiXV39MBMKpjM/5YN+lmvpYbARQxL6oNIt/ VQ5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PjM+n+Hg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si2240122ilh.102.2021.05.20.03.36.59; Thu, 20 May 2021 03:37:11 -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=pass header.i=@linuxfoundation.org header.s=korg header.b=PjM+n+Hg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235872AbhETKg2 (ORCPT + 99 others); Thu, 20 May 2021 06:36:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:54246 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235534AbhETKXc (ORCPT ); Thu, 20 May 2021 06:23:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D3624613FC; Thu, 20 May 2021 09:48:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504127; bh=imkrRNpHPT9319ALNjIqK0doJwrQywERK3aPwXUzPVs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PjM+n+Hglghum5FyaVO8JmSXO+yTDjTGNVwKb+TokF7vc9G9bNzcZzJ5LC0sraU+c d21yTxqzOZVWBkrM2nreSrn2cGk1XwwCgQ63UFWeXG3a/49Lf7qs3D+OM1+sM4025M 1bpqFnQhREyriwbWjiEddFMPxQIeMiLOb6BORp0o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christoph Hellwig , Jessica Yu Subject: [PATCH 4.14 105/323] modules: mark each_symbol_section static Date: Thu, 20 May 2021 11:19:57 +0200 Message-Id: <20210520092123.699096710@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christoph Hellwig commit a54e04914c211b5678602a46b3ede5d82ec1327d upstream. each_symbol_section is only used inside of module.c. Signed-off-by: Christoph Hellwig Signed-off-by: Jessica Yu Signed-off-by: Greg Kroah-Hartman --- include/linux/module.h | 9 --------- kernel/module.c | 3 +-- 2 files changed, 1 insertion(+), 11 deletions(-) --- a/include/linux/module.h +++ b/include/linux/module.h @@ -530,15 +530,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, --- a/kernel/module.c +++ b/kernel/module.c @@ -430,7 +430,7 @@ static bool each_symbol_in_section(const } /* 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) @@ -491,7 +491,6 @@ bool each_symbol_section(bool (*fn)(cons } return false; } -EXPORT_SYMBOL_GPL(each_symbol_section); struct find_symbol_arg { /* Input */