Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp306600pxj; Thu, 20 May 2021 09:44:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeL+O8qGu99W76/fpXvNU9JTfssmQHarIF6qIrkELg6Ff01D7PMh+4WAFvDKhNVNeNb5L0 X-Received: by 2002:a17:907:98e6:: with SMTP id ke6mr5518127ejc.107.1621529095719; Thu, 20 May 2021 09:44:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621529095; cv=none; d=google.com; s=arc-20160816; b=Ht7btKp7Jsh+XSi0j97tWBOjucXEQExs86jvhCEfN3qFUOg3tKAJMrwNQheHeV4Tqk 8U/KHZNvWFjEqIgFcmdRZhGD/74BlG3US0WdtKUTllKkE7NDDJ7L01UKZ9i9IsNfcrhT 54LrIQthNrgEyWadzGGGhPLbCDbtKPdjrYltI8bju8s6oTx/luNUUm6Tj5UDuWH3RXqQ KPeMKUdrg5bORzelk6lbLSCs9VYBnIkEWYKeegDpoVupkD04qICZC5hJO+9R/UIu0Ehn mrcWaHK3iCeU3MC4u6k5mGkMJNjLrfl9maYrWleB8Ai2D299J7Y/aBE7X43rPO+HNEvR 3QsQ== 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=jpnfhT7LfJFrLJwJMgr7klwZ49c3UYbrwiJxfy7PfdU=; b=LGX/MvJp9lo64vY5ScRYCMLmPN3u26N74/pc3lS9ensjmE3poyErOltbQMujm7ziBx YjGZ7Uo5zKjR1IR7uQgEMoahuyBYmyB70ZThOZXnfOaOVGYOS+hTJo/KcvscogK9bE7g 7auG6vALYzPbJMvngOAux9LKzsjpr0oKBkIjhTtb6h+Q5/DG+FdtVrfI2OIbN6SCQVeT uV8sR4TiWrw+JJpEELwDQ7+/Ba1Zsl6djXHwUY6ElbAeJrohIqJkHsbABPMAZPBQ2/G2 e6FQyWoAh8t8KOyUB+rTm+3FtFhxfTFk2XgmoI1wK34NAhJAyTL6B51kAO0erfWL0p64 eG8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ohfRxvEK; 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 j5si3080663ejd.355.2021.05.20.09.44.30; Thu, 20 May 2021 09:44:55 -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=ohfRxvEK; 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 S233984AbhETJsE (ORCPT + 99 others); Thu, 20 May 2021 05:48:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:46618 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233209AbhETJpX (ORCPT ); Thu, 20 May 2021 05:45:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 383CE613D4; Thu, 20 May 2021 09:33:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503212; bh=jlHOIqEnKSZfx+DKjSDVsODchpEeE+sFQmL6i7It2I0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ohfRxvEKu4Dfjg+LeOPkiBnQiRBZGhja9u2gX8aAkqUIXVK+ftPYBgaVraOaAIWeL ShhR/wVVdRr5OMJucyVQIULIn0kQk0r+H1sNf25skygsoyxSjnor3eN6O1KkEQbyGZ 8DT6B8LgLyQ0ukU7mIzpjfbIWDUAiYtix2rUxDSM= 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 120/425] modules: mark find_symbol static Date: Thu, 20 May 2021 11:18:09 +0200 Message-Id: <20210520092135.383802887@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 773110470e2fa3839523384ae014f8a723c4d178 upstream. find_symbol is only used in module.c. Signed-off-by: Christoph Hellwig Signed-off-by: Jessica Yu Signed-off-by: Greg Kroah-Hartman --- include/linux/module.h | 11 ----------- kernel/module.c | 3 +-- 2 files changed, 1 insertion(+), 13 deletions(-) --- a/include/linux/module.h +++ b/include/linux/module.h @@ -538,17 +538,6 @@ struct symsearch { }; /* - * Search for an exported symbol by name. - * - * Must be called with module_mutex held or preemption disabled. - */ -const struct kernel_symbol *find_symbol(const char *name, - struct module **owner, - const s32 **crc, - bool gplok, - bool warn); - -/* * Walk the exported symbol table * * Must be called with module_mutex held or preemption disabled. --- a/kernel/module.c +++ b/kernel/module.c @@ -568,7 +568,7 @@ static bool find_symbol_in_section(const /* Find a symbol and return it, along with, (optional) crc and * (optional) module which owns it. Needs preempt disabled or module_mutex. */ -const struct kernel_symbol *find_symbol(const char *name, +static const struct kernel_symbol *find_symbol(const char *name, struct module **owner, const s32 **crc, bool gplok, @@ -591,7 +591,6 @@ const struct kernel_symbol *find_symbol( pr_debug("Failed to find symbol %s\n", name); return NULL; } -EXPORT_SYMBOL_GPL(find_symbol); /* * Search for module by name: must hold module_mutex (or preempt disabled