Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2454468pxj; Mon, 10 May 2021 03:27:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWwzd1QubBVzy6lpI0hJep3uzie8hzWS90GZ/bwfXhc4Knm1k/AhIIJLJlzGkENvYoLaMc X-Received: by 2002:a17:906:7c45:: with SMTP id g5mr24399790ejp.368.1620642426508; Mon, 10 May 2021 03:27:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620642426; cv=none; d=google.com; s=arc-20160816; b=SHt8DrwNneD1AVpDbgfWnbUFyd0Z/4HClfDg/acw1Rxheg4aqtoJUeQ1rYr8JRXses 2MDtpmw2sY90zrybsA1sY9ZTIgZ63j91qcEEX6ehg5f7rjxMVGw0mRuxGd6hhiEMTg/o e2x+2KJy3T2D9ulQsYc2VqOEqF2e75INzZct6XnPyZRdHooOX3Mdi3yxgSiAoxbHvqGs qUsZgPN64ord9ThSR8S7n6diqSO7+nH25ezs/nA20WaSmTNB0/QYFbG2eNWViKv5KsFD UtDONTKfmS6rrpS9/s4dFweny4Mr1TcyMGNxo0c+ItCAtHoGphBmAJPG4en8jp6B6YlZ +MYA== 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=cs7stMRswLj7bR5uEWAa8n8z0VWekQjcGXNw00DjNBw=; b=oC+n+YyWATXZYgAuaYmS71hhgONz6a05MlyWRKF44O8ZPHtAm/xTiWQIqGWHjQc++d qhaY4zFsMPzi/KmHGFdobqk9++gAXDeQBJCR7o2sWyZDTlY1M3PzhWinj4ZVSqfNAYyc LsILDMIis+jSBSNSSGX6TL8xexbMNSLwfqR6TzXDuf+JnJ/4e7EbB4KUnFUT5Wkwoi7l SvBNQAmECnW+4xRzjqUx00m7wYSusfkRUbKFhvxDQgtPvtjpBDdHDhXq8iB2cXfZQDUi bkhl3jljDc1MdcZtuTHERJ+zjYabjvF6gyrFgVROmwG1ajqhjRpEUDIZ/BiXPYZAtlSL 0Jlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aXxxYjC5; 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 u11si13772015eds.79.2021.05.10.03.26.43; Mon, 10 May 2021 03:27:06 -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=aXxxYjC5; 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 S231393AbhEJK0J (ORCPT + 99 others); Mon, 10 May 2021 06:26:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:58886 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231264AbhEJKZ3 (ORCPT ); Mon, 10 May 2021 06:25:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2C4BE61424; Mon, 10 May 2021 10:24:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620642263; bh=IheVTynqrhnWOYwBtAg8P8RBcLM7UkbYeuJjZqqHlsA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aXxxYjC5/xB55pKFs+GEhJ1xWnhFxaFpgBkzrqTb6M8WooinquqtchuAUpTWFV9vr T5Q0nk1GffZRlKVNRbbLQ9d8LSyc43fHTf/EvraVtX7LHzomEpK3u07Z2ZcJ6EEC9G TVcJDE0wPJsaNzBKEFdhFHapggNV3GXbGmSH3Q/I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christoph Hellwig , Jessica Yu Subject: [PATCH 5.4 025/184] modules: mark find_symbol static Date: Mon, 10 May 2021 12:18:39 +0200 Message-Id: <20210510101951.063353671@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510101950.200777181@linuxfoundation.org> References: <20210510101950.200777181@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 @@ -570,17 +570,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 @@ -583,7 +583,7 @@ static bool find_exported_symbol_in_sect /* Find an exported 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, @@ -606,7 +606,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