Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp2108719lkv; Thu, 20 May 2021 03:36:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4NaVCdePzxmnEtDkw1IefzY+kx+/b+0+/ePdy7hhSkJYR/ZkaGzKKc5Q1410/qjCSwC2H X-Received: by 2002:a02:a316:: with SMTP id q22mr5083169jai.26.1621507016079; Thu, 20 May 2021 03:36:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621507016; cv=none; d=google.com; s=arc-20160816; b=f94SSWVPWDmmcZHe9dSszUT9TsYTGO3vVrFZ2sll0G6xrHmXG5tIhE2OaCMU44xXxj K5UUzSD5gbHh4Iyp6VvTkfVlmu61yEvzHceoxQg2o4+ntXE1K3vKS9XzwGAdOeFQfUwk 0P+bzxEUQvmuhdrpslK8fne1La038JKth2Mvzj60XVvErr78kmQg6tSCfQmCx19+Jp46 g/psIH5FR9YDBBM6RpG8m8DLNHaZCR6ehfu1EDtSkepNp8fPYo9bOGn0QV9l1hzIIymz 0iul2PgnJQq7dt7VwBAtkSM8yBqoOGC+qbVC1SqeOOnCF11MT0MNbDftez7E60Ns5w4s fTOA== 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=dSY+gO68OJOCZUE+qrx5SEZajBn4dRqENkYvn8y3qpc=; b=VU47Jw70FOBPnGXijZUhLIBMWR5Yi09mAWF6d8JS5VM+X30NcK+3zom5gnCVIELJLI Mh9mLP+1WJbo6s2A20OPlg/54DLCN26QZfjfdms59jpnuKszLx3ZancikXg0PAZIXLGX jptSW65sOewdDybXcPH9OBr1pTO63kn4kx2KR/bfxTeOHGux163Jgt01MejH5qB+s3/j tqqIHheN17kezFv70ffVdKw+JCUiaUkb+UZ/WimaHS5KpoSgGyfiIsnG5jIYlE+0lWkE 95d7gS6HnoyRhSPRbooWi+RYnBzm6yv4cDZy3iYnLy7cDtYtoGynjT9Ifuyqz4aQ8bjI xSjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cTiZeUZ8; 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 h127si1780388iof.102.2021.05.20.03.36.43; Thu, 20 May 2021 03:36:56 -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=cTiZeUZ8; 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 S238015AbhETKgO (ORCPT + 99 others); Thu, 20 May 2021 06:36:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:51994 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234974AbhETKXb (ORCPT ); Thu, 20 May 2021 06:23:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6EBC661A13; Thu, 20 May 2021 09:48:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504122; bh=RG4v/wlVitSLVQk1sTkYyzTmq/0GmHoCWdtA1dAytkc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cTiZeUZ8JmGjT7zbhs8D7us/b2l8TuwBNt2GFbxmKDBs3yV97hEGr11S609nfRU0j UwaHJKHrbJE+6yJJTkO8OW0uDWnbMU7+SPyRDBi5wqMXPcSCFukFmcb+z663X3uipl gxaHGxXsCgAHxVqmu6/C2m5vZjVJuowNBlDwSlDI= 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 103/323] modules: mark ref_module static Date: Thu, 20 May 2021 11:19:55 +0200 Message-Id: <20210520092123.631404940@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 7ef5264de773279b9f23b6cc8afb5addb30e970b upstream. ref_module isn't used anywhere outside of module.c. Signed-off-by: Christoph Hellwig Signed-off-by: Jessica Yu Signed-off-by: Greg Kroah-Hartman --- include/linux/module.h | 1 - kernel/module.c | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) --- a/include/linux/module.h +++ b/include/linux/module.h @@ -597,7 +597,6 @@ static inline void __module_get(struct m #define symbol_put_addr(p) do { } while (0) #endif /* CONFIG_MODULE_UNLOAD */ -int ref_module(struct module *a, struct module *b); /* This is a #define so the string doesn't get put in every .o file */ #define module_name(mod) \ --- a/kernel/module.c +++ b/kernel/module.c @@ -850,7 +850,7 @@ static int add_module_usage(struct modul } /* Module a uses b: caller needs module_mutex() */ -int ref_module(struct module *a, struct module *b) +static int ref_module(struct module *a, struct module *b) { int err; @@ -869,7 +869,6 @@ int ref_module(struct module *a, struct } return 0; } -EXPORT_SYMBOL_GPL(ref_module); /* Clear the unload stuff of the module. */ static void module_unload_free(struct module *mod) @@ -1150,11 +1149,10 @@ static inline void module_unload_free(st { } -int ref_module(struct module *a, struct module *b) +static int ref_module(struct module *a, struct module *b) { return strong_try_module_get(b); } -EXPORT_SYMBOL_GPL(ref_module); static inline int module_unload_init(struct module *mod) {