Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp249005pxb; Tue, 2 Feb 2021 04:20:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJx//eGqdUjgM5QAzGlF/gIgOmbJ5pKvk44qY3KqDX9i8+Qc1I8+ql/zfUAW24qDwifopYat X-Received: by 2002:a05:6402:206c:: with SMTP id bd12mr23614367edb.10.1612268426273; Tue, 02 Feb 2021 04:20:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612268426; cv=none; d=google.com; s=arc-20160816; b=OH1t5CIdaTx/KvWLpxvHcQxB6r6xbgkIUQfHZgKAPnyMf6UDOwdbCDx88d0MnBbLvC by6G/jKXLf5/tp85Pm3zQMdVu+3rmXLpuEj/Y3l/sLxAyXepA8FxCbdybrD3HEnzyop2 QlMLAB4ZfQk7g5zjRjsNQTQVEUpAecw1l05LQxQiiuG+tPM0rcxdwKthDlbaroykYWUz YDe7uPlCIcYpH2DwNKxDcsvyNnHnOyyos4O3xOfBqmH32W76XPO/5KB/Y4Hf0jkx0iBk neQakZXBVxcVSJfxGGTk29T+gu7WpiPkuy1VLhBpS8KDhMxAmN/yM9s2cBNaYiMrON4o expQ== 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=xtOBHx8u/yIi0h5QA3AKNqpliwP+YVemoVRuq3Ek/8o=; b=uTYHXvUZPc2lL9j0LSuAVcxh5xMYFU8UNzLyqZw1fsxudTSBb9mx6vwATx9iIdZTiw +67MXj4mG5YD8kMzI5soJXbj6wwu75ePXyH/R4XBNUQdaQM4LRy+EITJV8zIH4pyk/1D g9nbdvYubfeYB7k2+KgVYAzR1c12+TA/8Ieo6IP7jy8O5GjsvhZ98hQgFnZh9gAoA5q5 UpX6g+BDVJU0UjeDkb5VQhgrYJFUecvUUuzWh5zMTaX4nE/zPwnQQI9jrxB7vB0jKHBz s9iA5J4HXDXdGAokn5AHp8Hj8N19JDBSMGYUNRudna75MY3JMdqbu35a0gK/6f5m6y8J 8OGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Px22+N3Z; 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 t14si13080981edd.161.2021.02.02.04.20.01; Tue, 02 Feb 2021 04:20:26 -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=Px22+N3Z; 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 S231465AbhBBMQW (ORCPT + 99 others); Tue, 2 Feb 2021 07:16:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230527AbhBBMP0 (ORCPT ); Tue, 2 Feb 2021 07:15:26 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8A30C061797; Tue, 2 Feb 2021 04:14:26 -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=xtOBHx8u/yIi0h5QA3AKNqpliwP+YVemoVRuq3Ek/8o=; b=Px22+N3ZKzyz9x77FQBhRCZGqX S1YwbXLHPbMYYe8n3loAymRJDpw49O8TCW77f12htkWSE1WgJZi+MDZaQjlrAm4Xfp0ayrdgLfYY3 udyLpJTNWDUYtWOMgEtNoeBhlFVkwHRdP9f7J8hVQ/bpvtrlKyd8zCinCDri4udXTlFRfnuYDUkP+ wI08k43KEKZ71rMkqGxPwIDjt2g5OQFmpgaW1GCrHwnAWPzPEdSWGYrJMA40P51yUBGpRP3mv+jvH AcF4HUQLtuz47iCxAao9JbUf42q14lxqkTnA3C5woO8wIgh8MpfUAglt4o8LeYAs5tO0+cRYGYcOx hj22v0iQ==; Received: from [2001:4bb8:198:6bf4:7f38:755e:a6e0:73e9] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1l6uZI-00FANT-Fx; Tue, 02 Feb 2021 12:14:05 +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: Tue, 2 Feb 2021 13:13:32 +0100 Message-Id: <20210202121334.1361503-12-hch@lst.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210202121334.1361503-1-hch@lst.de> References: <20210202121334.1361503-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 02d1dd9bfc0a90..7a4bce8507b96f 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -428,6 +428,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