Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1369154rwb; Fri, 28 Jul 2023 08:27:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlFVbbnUQU5DQobJfwdLMOpUi0IKt9S1/jn4GJJi6r5Q4i0aYttoeCq0SUrMx59FlyBWyjAs X-Received: by 2002:a05:6a21:4988:b0:12d:f1ac:e2cd with SMTP id ax8-20020a056a21498800b0012df1ace2cdmr1760895pzc.32.1690558055304; Fri, 28 Jul 2023 08:27:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690558055; cv=none; d=google.com; s=arc-20160816; b=rL9oLzgJLU/hdoFQYxnYbGjNPvW62rFS/Nw7/mcyWnXExF4Wlx76OC6KF9LuWTi/K4 YFmV/gx2aOcDgcC0kJPHO8olyi96Dn3waC+Bl7DpbrdKh3c1MqxtfauU//bX0PVnEGZM xbKO9KSqyUqyr4RVj+mRAZAszVawpjQsYsvLZ43qfTCK2al0KNgos65VxR9m6J1Xt3Z2 w3wg0+9KmJbry5RgvTpjShxEGdD+i/jUeyXU0kKuS1zMeKy1e6x7o0sFrpx4dDxkzm56 FyRqOygDiS8FoJ/TDB8VR32s89/0GZQcP+UIrFc2uEwvHUAV3S/XFt+qEgdKCfnTsQQ+ 7Wiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zfhLlZEY9jrlQ/2kEYtQ+IcpResvxW4Nqgr5z97KTN4=; fh=PbbzuU0e43zMddBi/K7ELe7WjJwzpFqSOyGBSoYWyAU=; b=pKc11mfDoSmrvCw8HuauzBiGFNSjlS6u9PW0tVWghsw7CnoWx4c7Cpwu7EbVSlafBi zlWuTOHv41UbDqYHS5lVdAlrymHh0ZY9BJP5Nlv2yVuvnykc2wfmsN4SGX+QCnTSCTLr jon3dEeX0w5ODXnVuOdAzLpP32sFTfVigHpGEfg5JrfF3PcxQ5HOjqR/G4svP4ZLrFR+ 7f54ZyY3N4Q0SjZm8y2ZrZxA9MfydIasP99pFANUA5K25zrAQMyapgUJNlTEJP3ea9r2 OwimPgJNWxEDRrjvnvuzJlQZvF/Lq3QmmFcDBiKcAfB2KKZUuUDZxeCLzwJgGztM6GQO vtcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="RV1/HdoO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y7-20020a056a00180700b00666acab17acsi3388031pfa.318.2023.07.28.08.27.23; Fri, 28 Jul 2023 08:27:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="RV1/HdoO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236282AbjG1OG2 (ORCPT + 99 others); Fri, 28 Jul 2023 10:06:28 -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: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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