From patchwork Fri Apr 30 19:52:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michel Lespinasse X-Patchwork-Id: 12234157 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37E21C433B4 for ; Fri, 30 Apr 2021 19:52:37 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9C5B2613F8 for ; Fri, 30 Apr 2021 19:52:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9C5B2613F8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=lespinasse.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 140376B0072; Fri, 30 Apr 2021 15:52:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0EF056B0074; Fri, 30 Apr 2021 15:52:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ED0DD6B0073; Fri, 30 Apr 2021 15:52:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0137.hostedemail.com [216.40.44.137]) by kanga.kvack.org (Postfix) with ESMTP id C4CF36B0070 for ; Fri, 30 Apr 2021 15:52:35 -0400 (EDT) Received: from smtpin07.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 820E5180CCDF9 for ; Fri, 30 Apr 2021 19:52:35 +0000 (UTC) X-FDA: 78090080670.07.CD92C06 Received: from server.lespinasse.org (server.lespinasse.org [63.205.204.226]) by imf07.hostedemail.com (Postfix) with ESMTP id 07AD7A0003AF for ; Fri, 30 Apr 2021 19:52:33 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=lespinasse.org; i=@lespinasse.org; q=dns/txt; s=srv-14-ed; t=1619812353; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : from; bh=dcNLsbG8ESP+Ilb2xQiBJzAJk+o/uP7LiOGbYa0CH8k=; b=iJHs7S2FhfzxsM5ZRN/CH8+fjzCuZRuo/hgPczw1mcsHrnYWGrcytzQk4NwGC92fRXUCU uiSidepjrq/aPuGBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lespinasse.org; i=@lespinasse.org; q=dns/txt; s=srv-14-rsa; t=1619812353; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : from; bh=dcNLsbG8ESP+Ilb2xQiBJzAJk+o/uP7LiOGbYa0CH8k=; b=sqVkVXJ54YWrcpEgKimcRpZ3iFRXUGqdiCVvBF7rKz+gE60KC7qjif9ujbBFpfoVFiQD9 nkrCNg1nPyBt6kLu5GjQhXzrZYswefKB5kwcfLnqoKD6JeXsBBhz4m++FtCPxxbXt2MkB0B H4vAE8H4X/yUazmvbq5X5t1k6OSMDnyzb+Qn0GTQqojPRFSwAOfsi7ZRbNQwbQ1rAURWhT2 Wt37f3z59KF3ATgtogcYZt6dQ9JZbsxo8rikFyYLuDzhTSDiAr0jOu1WhRdu6LPgSDLcKqo 3KEYNVWT76EXbKMvU6p1Qalm4p/j7DCJh1E+8KrDqNbbC/+f2cVLunOLzknA== Received: from zeus.lespinasse.org (zeus.lespinasse.org [IPv6:fd00::150:0]) by server.lespinasse.org (Postfix) with ESMTPS id 1F95B16030B; Fri, 30 Apr 2021 12:52:33 -0700 (PDT) Received: by zeus.lespinasse.org (Postfix, from userid 1000) id 0036A19F520; Fri, 30 Apr 2021 12:52:32 -0700 (PDT) From: Michel Lespinasse To: Linux-MM , Linux-Kernel Cc: Laurent Dufour , Peter Zijlstra , Michal Hocko , Matthew Wilcox , Rik van Riel , Paul McKenney , Andrew Morton , Suren Baghdasaryan , Joel Fernandes , Andy Lutomirski , Michel Lespinasse Subject: [PATCH 01/29] mm: export dump_mm Date: Fri, 30 Apr 2021 12:52:02 -0700 Message-Id: <20210430195232.30491-2-michel@lespinasse.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210430195232.30491-1-michel@lespinasse.org> References: <20210430195232.30491-1-michel@lespinasse.org> MIME-Version: 1.0 Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=lespinasse.org header.s=srv-14-ed header.b=iJHs7S2F; dkim=pass header.d=lespinasse.org header.s=srv-14-rsa header.b=sqVkVXJ5; dmarc=pass (policy=none) header.from=lespinasse.org; spf=pass (imf07.hostedemail.com: domain of walken@lespinasse.org designates 63.205.204.226 as permitted sender) smtp.mailfrom=walken@lespinasse.org X-Rspamd-Server: rspam03 X-Stat-Signature: 69maa3ek9rksmodriaos7nnwoekajzf6 X-Rspamd-Queue-Id: 07AD7A0003AF Received-SPF: none (lespinasse.org>: No applicable sender policy available) receiver=imf07; identity=mailfrom; envelope-from=""; helo=server.lespinasse.org; client-ip=63.205.204.226 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1619812353-35459 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: This is necessary in order to allow VM_BUG_ON_MM to be used in modules (I encountered the issue when adding VM_BUG_ON_MM in mmap locking functions). Signed-off-by: Michel Lespinasse --- mm/debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/debug.c b/mm/debug.c index 0bdda8407f71..979d505e2c6d 100644 --- a/mm/debug.c +++ b/mm/debug.c @@ -275,6 +275,7 @@ void dump_mm(const struct mm_struct *mm) mm->def_flags, &mm->def_flags ); } +EXPORT_SYMBOL(dump_mm); static bool page_init_poisoning __read_mostly = true;