From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C8D55C001DE for ; Fri, 28 Jul 2023 14:06:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236356AbjG1OG3 (ORCPT ); Fri, 28 Jul 2023 10:06:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232825AbjG1OG1 (ORCPT ); Fri, 28 Jul 2023 10:06:27 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1032230E2 for ; Fri, 28 Jul 2023 07:06:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=zfhLlZEY9jrlQ/2kEYtQ+IcpResvxW4Nqgr5z97KTN4=; b=RV1/HdoOOaLQNqjA6/byw1rzTB YtfU6b1OVsO3YHk/qeJ85dCatzu6sFtmWuQNyc+l9tjmmqzcUfeIo60z5go1TammYWptXZwqwb+E5 Hws7Kw/6mANlTUxkWpI6OR0YjVBAdGNnG3epD1niymrzrD9dWSJhv9+GQGGW7uOeN3+jifKy7GUnj Fh/2YF7kE0xcDFgdrsejedNpdINcW3mqKr2e9qaVDOxsXMCKNM5X17VjlU8YOtE/Fu9ph5KGB6SBW 5h7RfSYucQAjZx2BERsNQmnVNEWLGQNroJT3NyzbkyJdwDRXAwadtTZiRj809vVF6lVZdDtiUB5wf JCfK7hzQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qPO5e-008YJz-Fg; Fri, 28 Jul 2023 14:05:10 +0000 Date: Fri, 28 Jul 2023 15:05:10 +0100 From: Matthew Wilcox To: Yongqin Liu Cc: Hugh Dickins , Andrew Morton , Mike Kravetz , Mike Rapoport , "Kirill A. Shutemov" , David Hildenbrand , Suren Baghdasaryan , Qi Zheng , Yang Shi , Mel Gorman , Peter Xu , Peter Zijlstra , Will Deacon , Yu Zhao , Alistair Popple , Ralph Campbell , Ira Weiny , Steven Price , SeongJae Park , Lorenzo Stoakes , Huang Ying , Naoya Horiguchi , Christophe Leroy , Zack Rusin , Jason Gunthorpe , Axel Rasmussen , Anshuman Khandual , Pasha Tatashin , Miaohe Lin , Minchan Kim , Christoph Hellwig , Song Liu , Thomas Hellstrom , Ryan Roberts , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v2 04/32] mm/pgtable: allow pte_offset_map[_lock]() to fail Message-ID: References: <2929bfd-9893-a374-e463-4c3127ff9b9d@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 28, 2023 at 09:53:29PM +0800, Yongqin Liu wrote: > Hi, Hugh > > It seems this change makes pte_offset_map_lock not possible to be > called in out of tree modules, > otherwise it will report error like this: > ERROR: modpost: "__pte_offset_map_lock" > [../omap-modules/android-mainline/pvr/pvrsrvkm.ko] undefined! > > Not sure if you have any idea about it, and any suggestions on how to > resolve it? Please explain why this module needs to map page tables