Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp2108805lkv; Thu, 20 May 2021 03:37:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5Nu2V3xo24pRTiLK5hrtV3uFsNaZYOvX4mhSwsaiSrheNaSVdiU2y/m3tasPmDtKzgoDz X-Received: by 2002:a92:6b05:: with SMTP id g5mr4378985ilc.40.1621507023586; Thu, 20 May 2021 03:37:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621507023; cv=none; d=google.com; s=arc-20160816; b=ObjGvOiLj7DuHjgb4tIXtiVILM5rZdmSQLMVpuvPEV4mzqqdQ3bzkZXxeFzmEMqOls +0IeoKPnMsm1l0/GsovzbNgZgGVzG+msnU4wsbbqUuvc8rfrDLSkPvNC4TuLpy0xrtm0 84y6SN1h7GkJJtEYbNpMHfW3/0WcZYNbyVpXE9UFZUJ8r9q3/P9UeqiHvlHEOCPbS8pS UtszUWu27/sNlHU2HQNkiLkOXFfXJQSwK0mcbFqLGkJg9Ic4PrhfGbXMv2sCxwM0YOOc J+0nku2U3eIi75YQV4GtXi61h1MeQHMxJWGhELuI0Z6RZOHfi01sQN3OOxqfz5GKJoaG X3xQ== 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=TGEBRnclKH6/tcCqTCuwgBR0OzZeBsGjREMl9fVVelk=; b=cH6bsR5n9wwypSEtF57tfK6rd8ZMyRHYi0DtdyECRtjrGrhf/hU31MS2pe8IGvST86 aIxvC1XfpJASuuHoKOAYGyo+UzSg9SyHcbFTCSCL9DC+dvNj7ui1C2XE2fPL+aMgE1Zt 12qK73Ceu+mjEOkYcoGVKHeMO1gUizqOGnqUGs4/BhXlPwxAW9o82mwj15y/QQjRgrEU AS75c9Y687GbM0HYdX8vYZeTLPly3wj/un/Pq4Hluu9JPXskIvrHCQqY8Fs6+W0t1dWe cDsxx+QM2jkahPEQjBzIi0IbEMVX9D0oHYvytzrUXh7SSftM+qJdU/iJ/sPvn87mb5qz PkFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CqIqzIDN; 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 y19si1730357jap.30.2021.05.20.03.36.51; Thu, 20 May 2021 03:37:03 -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=CqIqzIDN; 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 S232746AbhETKgZ (ORCPT + 99 others); Thu, 20 May 2021 06:36:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:52000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236338AbhETKXd (ORCPT ); Thu, 20 May 2021 06:23:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9F47661A14; Thu, 20 May 2021 09:48:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504125; bh=1sAY6warIVpNnQHB6Q3Ae0vjhKmsWmSTVzVe2UOmWJI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CqIqzIDNjbn4Kh5q4X2BdbAbWlzgWGWBOFBj6B0waZ+PLTLz2XDEjCEt1/qwwSsK/ 6P7OYs+IkX/KhityZOAS9w9dC44g7lxngvjKskYLI+y2/SKloK3qUcAyMBICl2eKsP ykk0xdZJeBHtQAc3EO1pFDS1OwAv73cPtTjogkrI= 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 104/323] modules: mark find_symbol static Date: Thu, 20 May 2021 11:19:56 +0200 Message-Id: <20210520092123.663767668@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 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 @@ -531,17 +531,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 @@ -565,7 +565,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, @@ -588,7 +588,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