Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp307206pxj; Thu, 20 May 2021 09:45:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynPZ2vWDrGbjsLlMnkzfMAQNGPT+iQVU2JNq6QL0RX5C+S6rIRE6hFv+ViucblvZ0etaHQ X-Received: by 2002:aa7:c542:: with SMTP id s2mr5828761edr.288.1621529142381; Thu, 20 May 2021 09:45:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621529142; cv=none; d=google.com; s=arc-20160816; b=PH+dLEUbDd5yP0QZVqkixJnFVBiK4xwtTjBFAg36CLZSUe+9HYVT4CnLTd9fzX9tGW h94YE8a84PFNai0yD2s34YpKiP0HQ0nZtG6XYI/aGIYSgvsRCU1hRqi0HYQpEFEg4ojQ WEHKnkjXU0D4CTqd23ynyjO18wbs3ydTuIJu6MbRlS5/lMzrLH4maEKAZfmempB9ZXXT ytv1xQ3E3BGbVKNx1xlWvQCTV9g4ar8gg2vzhRnPXfwM7q+YLYul3oAtUcc7MVZ8pxHo hrrTqeK7JI0xZiR/InS0XjmDaHzEd3DUiF4ktO0V5L3H8oCvxip6T/YSPDDSl2iaDVHE YVkQ== 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=+7phKk4tI/nzYVP9/8ORdkh+T3CGRubUn5m92WoQPLk=; b=IxZcbyuQP2wuf8VWVOV+H8Myw8vWcgn3sEGALABJusKLmqOH2bdR1kPqXbhgNhVniN sS/JwFb1c8Y6kaV9Z5NTXUkzbn1nyYjGel0fB+bRLU9JAmBDVodGtkODNgpump6CvyQx exKofu0biO7uL1YhBf+52LXPpqV+VbnPSrPI/GWBFbGxKapOGWGsFHexa09wkNRgwY/o ZYMMAD1aRAw8kGVE6XC2S5qxGq+r7njwr0hrLJl9XVWAxGsQ5Siii3DTr3v/2S0OXRw9 xx6nOTHiJ0PI60wEtp9g/ePnwodRGoIzLA7p5IbgOKAJ/7bZ/Rkavpv6vKKghpAyCmJP wnpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FAHqpSQJ; 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 o21si2776737ejg.525.2021.05.20.09.45.16; Thu, 20 May 2021 09:45:42 -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=FAHqpSQJ; 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 S234092AbhETJsG (ORCPT + 99 others); Thu, 20 May 2021 05:48:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:48672 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233147AbhETJp1 (ORCPT ); Thu, 20 May 2021 05:45:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6BF3D61455; Thu, 20 May 2021 09:33:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503214; bh=AnK2O5MtKC736R/1fqopfArhNgbm8iz7LT8UI2k9E8Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FAHqpSQJzPr7PHoDAzW/pm3jXMry3fSeYxUa3Xx25Erb9e5OgpvTCPurspVd4W5Zi tbIPZzMfkaD5i+TIJBFjM1TikgZT6K0W2DTpbIbFrC4HdX+9ZfpcvfAqqhtRG3FyyB HSY1x7xAhkiS/1PSeFSQv+oC4s/M/6FPPXv7u1Gw= 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.19 121/425] modules: mark each_symbol_section static Date: Thu, 20 May 2021 11:18:10 +0200 Message-Id: <20210520092135.415136122@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092131.308959589@linuxfoundation.org> References: <20210520092131.308959589@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 @@ -537,15 +537,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 @@ -415,7 +415,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) @@ -476,7 +476,6 @@ bool each_symbol_section(bool (*fn)(cons } return false; } -EXPORT_SYMBOL_GPL(each_symbol_section); struct find_symbol_arg { /* Input */