Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2727075pxb; Mon, 31 Jan 2022 03:02:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJz2oqmjraBaqzSguZvLMTq7Bj1StgYIun+KWDnI566yf7UTvlhe2UXVniu+k+A/T7iTChyb X-Received: by 2002:a17:906:794c:: with SMTP id l12mr17479847ejo.292.1643626950902; Mon, 31 Jan 2022 03:02:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643626950; cv=none; d=google.com; s=arc-20160816; b=SYq6d1Fh3krMwUS62SiyXlTCYg5m0QXhXzhXJgdy2caJy+vgH2CMmjCovOmFt0Js3G /fJfmRuGU5pVXKYCXZh6MHkTundp1jshCqhwkxLVtEP+fedS7s4dQn6UW/IZbgcWp2T4 L8PR172eXdz9f+IpmVq+AIh4krYSWRGhZMLCNCEvnBSXTrJUG6W5xYKla3HGlrfHPVhQ oD2bQkfzKv6XNW6ZPpbpilqZtbOesg+iWsisPoxzVPNb0aQkAAUIOJANY31Z7JadUgZz VkBDi/fFDO0dRZpMKO2wEcyHczTvpffatHeYfh/HtVy30bqh7CS0P3ZYJPHTwdfJJ2h2 xbgA== 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:dkim-signature; bh=60KVsRSybg58S5Bq7/6VWRR0Ob54Rjhy19T2JOiOHJE=; b=N70bapMnIdW+hfTUFyK1Zuq/YLbxH33LwzMqTluhNYaQ8J4ucKMB05drdAe8t/bRVf ktAfFM2mk/UnO5XDwoOIlj5HDrxouLK1nVY8KNZicfP92ukJN061lZCv5vaKZviO34iw +3EIPWSq4cvi+8vEPVv3d/Lt7zRI81n8MNBQSxybVwDc89nRYyYPD1LMKDgXO0egcqRY zZq22qtgOy8UX7ApUAEp1SO+twwC+yhwmaRV5uIqMZXwqmvXFOtHQ5FfncxghpHZL6Ro qMy2u9jitCZc3OQI9BoWXODqE8+UoPZnLkThY+DARScgpvCEcN6lyFTPMwFqohyh+xoa smhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (no key) header.i=@lespinasse.org header.b=M7pzfh5Z; dkim=pass (test mode) header.i=@lespinasse.org header.s=srv-52-rsa header.b=hH+5ulWn; 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=lespinasse.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i11si9055399edb.485.2022.01.31.03.01.59; Mon, 31 Jan 2022 03:02:30 -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=neutral (no key) header.i=@lespinasse.org header.b=M7pzfh5Z; dkim=pass (test mode) header.i=@lespinasse.org header.s=srv-52-rsa header.b=hH+5ulWn; 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=lespinasse.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348776AbiA1NTL (ORCPT + 99 others); Fri, 28 Jan 2022 08:19:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244833AbiA1NTI (ORCPT ); Fri, 28 Jan 2022 08:19:08 -0500 X-Greylist: delayed 539 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 28 Jan 2022 05:19:07 PST Received: from server.lespinasse.org (server.lespinasse.org [IPv6:2001:470:82ab::100:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7193C061714 for ; Fri, 28 Jan 2022 05:19:07 -0800 (PST) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=lespinasse.org; i=@lespinasse.org; q=dns/txt; s=srv-52-ed; t=1643375406; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : from; bh=60KVsRSybg58S5Bq7/6VWRR0Ob54Rjhy19T2JOiOHJE=; b=M7pzfh5ZrllwylgwXDFgMgUOxk+x0CQXf6B5IVcHP6kNbiwFEwwKpkHsAzgcdMs6ciQ+K 40+M0hVJhJPDMYlCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lespinasse.org; i=@lespinasse.org; q=dns/txt; s=srv-52-rsa; t=1643375406; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : from; bh=60KVsRSybg58S5Bq7/6VWRR0Ob54Rjhy19T2JOiOHJE=; b=hH+5ulWntN/qZ08GjZofRdKqO2OeOaAGUxe42j5ciL7Bjfd4AWn2kXvECpD0Tk1kLuQim pXNlIDBs0nLbih3vTu1Xmftjg+LmMrBFYRCGmnBJXw+5vZdhI3IEbAvdi8t/VIWjDGOIWvb VK/0trH9WTTtLQsjBsY0lG/KIFr00ZEXA0HIUrpP7HHkEFIFaJjWppZIzD16uxbHJw/3rti LymDIcnLEYmmKHELb7Bb3LM2Q3tDBAZ1TqK6ebvJCW9rjIgkV5aWyrvSy/xo6LiJO1+KsYu PgxAcY2i2izS6gADabfEHywhVuqppThEPWfhOrm+GR6Sg4NMiy43Uk41aLmA== Received: from zeus.lespinasse.org (zeus.lespinasse.org [10.0.0.150]) by server.lespinasse.org (Postfix) with ESMTPS id CEF33160942; Fri, 28 Jan 2022 05:10:06 -0800 (PST) Received: by zeus.lespinasse.org (Postfix, from userid 1000) id C2D5D1FF74; Fri, 28 Jan 2022 05:10:06 -0800 (PST) From: Michel Lespinasse To: Linux-MM , linux-kernel@vger.kernel.org, Andrew Morton Cc: kernel-team@fb.com, Laurent Dufour , Jerome Glisse , Peter Zijlstra , Michal Hocko , Vlastimil Babka , Davidlohr Bueso , Matthew Wilcox , Liam Howlett , Rik van Riel , Paul McKenney , Song Liu , Suren Baghdasaryan , Minchan Kim , Joel Fernandes , David Rientjes , Axel Rasmussen , Andy Lutomirski , Michel Lespinasse Subject: [PATCH v2 01/35] mm: export dump_mm Date: Fri, 28 Jan 2022 05:09:32 -0800 Message-Id: <20220128131006.67712-2-michel@lespinasse.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220128131006.67712-1-michel@lespinasse.org> References: <20220128131006.67712-1-michel@lespinasse.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 bc9ac87f0e08..40d3f358b75c 100644 --- a/mm/debug.c +++ b/mm/debug.c @@ -220,6 +220,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; -- 2.20.1