Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1206184pxb; Thu, 28 Jan 2021 10:23:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJy63XNVy/3W96+ubOOxxaIzVPhS12peUfXu4KjfD+1eifqic1pPnxBSP70ztbd9uK6yPwpg X-Received: by 2002:a05:6402:3510:: with SMTP id b16mr970618edd.242.1611858190729; Thu, 28 Jan 2021 10:23:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611858190; cv=none; d=google.com; s=arc-20160816; b=IbutMpaCDLdxtUb/rPmswmKHTGcGcTe//CleiBDXdg6+lEhNAYseqUsoJI5aLWPTFq YTGYIwRkz5+DOY1mepFve2+YYNcufHB5ym0si8CP8LIy2aWuIRBaKFmDZRMG0gi1K0LZ JsaeBZKNzhlr0AUxMWjJWv3KqhfjcYAdZEz6nBbPwQ/hqmrofoQo7AtohNL7Cp5QLNFq xDhismy7Dans7KmT6IpBprRTEPOwZ3iQpQE5MhHwGtdBhZDDaCvZhhdJxbfzsBoUTY8a vQK3si9alK8AaGhY5elY5xWl3KmIUOK4o064yr0s8CW2iADl/2vBP6IHSJSaU49Zhlh6 0sGg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=whdfL/tlLmNfOgTI4yN4C4LjV+sKymW02WfCUP2FJCE=; b=CZpvw2ANdmD2PKhe5Wf24DrWQ1qbUa+wPDVAlo4WWLxv9Dqp0vsdU5FsWtCOh0IPvC qie/inJtqIrZYtN/4R3U50Lhs5kVH9y9fh0/5f0bS4u4BLJ0Q2el5kEGQ81fDnbABzns ntGieeMmTbwXno20ypaI//N1enXZQTo1/9mGlRMu1ZEp5PXx/C4py1XH2WlenmAwpkih C5QF9wXCc8XTQ8loC6tLy/jcjb71PB+bfROOz98J0ZY7JA/hThEm+qOGJ+KdHpCdbUy5 4+FpljreWxtW6hQKTXHYe3ee7+IJhxKIxQ6hYXQMfPDD3LUo8WSOInakH1b2CXejXbtU me5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="hNTZWMk/"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hh14si3082369ejb.457.2021.01.28.10.22.45; Thu, 28 Jan 2021 10:23:10 -0800 (PST) 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=@infradead.org header.s=casper.20170209 header.b="hNTZWMk/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231370AbhA1SVk (ORCPT + 99 others); Thu, 28 Jan 2021 13:21:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231764AbhA1SSI (ORCPT ); Thu, 28 Jan 2021 13:18:08 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89126C0617A7; Thu, 28 Jan 2021 10:16:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=whdfL/tlLmNfOgTI4yN4C4LjV+sKymW02WfCUP2FJCE=; b=hNTZWMk/3xUGs41flRK2WV8tDQ crMXkrqFncwDkVMy4OF1hYfSiHzkIQ7s92N+qTpA6CY0P3QxKZ+/FzY8Yp5pV1D++0JDztsjK+jEo w7WQfn1XPnjpD1x0YoMj7uqWdkRU5kKVoVXm2UpRzBdNLlWl2phVz4lBCpiXIwfenbFXiAIgKJtiR CsJNQcboQpScAo5EsMDZA9H6/bCg95lqfKpZeI9SN5p1Dk2xQJNh43cAt5gGrsXoHr5hoMZRXq7e9 HsFC6dbJvCZMNPlZ+FX6ywMEzlILABpIfizFZn+JWPGPMWCBBLY+uyN6Qc69gKiQEZtjAg9p5pAAj ZjcU0/gg==; Received: from [2001:4bb8:198:6bf4:e052:196b:7e32:37d9] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1l5BpX-008o1i-L5; Thu, 28 Jan 2021 18:15:44 +0000 From: Christoph Hellwig To: Frederic Barrat , Andrew Donnellan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Jessica Yu , Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Petr Mladek , Joe Lawrence Cc: Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, dri-devel@lists.freedesktop.org, live-patching@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: [PATCH 11/13] module: move struct symsearch to module.c Date: Thu, 28 Jan 2021 19:14:19 +0100 Message-Id: <20210128181421.2279-12-hch@lst.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210128181421.2279-1-hch@lst.de> References: <20210128181421.2279-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org struct symsearch is only used inside of module.h, so move the definition out of module.h. Signed-off-by: Christoph Hellwig --- include/linux/module.h | 11 ----------- kernel/module.c | 11 +++++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/linux/module.h b/include/linux/module.h index 0f360c48fe92a6..da0f5966ee80c9 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -587,17 +587,6 @@ static inline bool within_module(unsigned long addr, const struct module *mod) /* Search for module by name: must be in a RCU-sched critical section. */ struct module *find_module(const char *name); -struct symsearch { - const struct kernel_symbol *start, *stop; - const s32 *crcs; - enum mod_license { - NOT_GPL_ONLY, - GPL_ONLY, - WILL_BE_GPL_ONLY, - } license; - bool unused; -}; - /* 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, diff --git a/kernel/module.c b/kernel/module.c index f1441d39c015f5..576c780e79c799 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -433,6 +433,17 @@ extern const s32 __start___kcrctab_unused_gpl[]; #define symversion(base, idx) ((base != NULL) ? ((base) + (idx)) : NULL) #endif +struct symsearch { + const struct kernel_symbol *start, *stop; + const s32 *crcs; + enum mod_license { + NOT_GPL_ONLY, + GPL_ONLY, + WILL_BE_GPL_ONLY, + } license; + bool unused; +}; + struct find_symbol_arg { /* Input */ const char *name; -- 2.29.2