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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1CC55C433F5 for ; Sat, 23 Apr 2022 20:45:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 809536B0074; Sat, 23 Apr 2022 16:45:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 791A36B0075; Sat, 23 Apr 2022 16:45:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5E3B86B0078; Sat, 23 Apr 2022 16:45:16 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.25]) by kanga.kvack.org (Postfix) with ESMTP id 47A286B0074 for ; Sat, 23 Apr 2022 16:45:16 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 1A63E262B3 for ; Sat, 23 Apr 2022 20:45:16 +0000 (UTC) X-FDA: 79389323832.08.9134527 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf19.hostedemail.com (Postfix) with ESMTP id BD0001A0032 for ; Sat, 23 Apr 2022 20:45:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650746715; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+xZdG0vJbp56WWzES+8UddWScaHaWfy2Zx+oTSmPxYQ=; b=goIkxW+LuD66KwlwnPbURMzUBc/aL3cWRS4gghTsZ/qh+IeUsPb/YycuMRy5HK55gif8aX wCBpVnZ2VNXDVn4FuIAaqnVmfRlmBNPVH2eQFGAOLgIu36CbKtdklEksxbSzRviicgWnTi uXbrSbXwNv4rbzePi1d61T5U84/hc3A= Received: from mail-io1-f71.google.com (mail-io1-f71.google.com [209.85.166.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-663-LNKH_uNPM46UcUQhUPaRnw-1; Sat, 23 Apr 2022 16:45:13 -0400 X-MC-Unique: LNKH_uNPM46UcUQhUPaRnw-1 Received: by mail-io1-f71.google.com with SMTP id r17-20020a0566022b9100b00654b99e71dbso8246003iov.3 for ; Sat, 23 Apr 2022 13:45:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=AEv2l+KrcW7s+z4goaVl/o0xxJEkgJii/XTjLh84G3E=; b=txzMpjR2V6yx5/RrooGBLFNWRWTv8eSzryxCls4RuwoUYf+C/S83tcWTjvJnWF7Jbd 7WzttBOYA3Xu8nQPPhcjLlBMAetPzwaO79QwQri+GtvdGMf7XHkZ/jS3eB3TtpWGfxmr H81OgufnhoWJX1xMHIhHwg0lYZHB1BpG/JXkuGOqG0/rK9yuWmqczikIaMsyb1D+OoRc OsbVG7uPMOo2nY7A++2r83vzz6Dw/j81CzJP+A8I8Q7sTGgVIZrHoQV6SjXFs35nvwS8 0oATor7RBS9HtsR2LvX3EehYl/8MoOd/iYTMUy/DXGAmIHnkxPsz9Uz/C62MyG1hHHN5 OkJg== X-Gm-Message-State: AOAM533OdPgxLf6v88Z0BNfrKxF2EhxE8EvwvLjPe4+xuxfj/basv+H+ 9GQ37ASVukGUkNKoKZ1yaAODZqaeCvOssQG0GOvnBbII1bNE0D7bsCEWHCYJrGCq400V5Ny5BmX HXvHF6uB7XHA= X-Received: by 2002:a05:6602:1c6:b0:657:2c41:7d0 with SMTP id w6-20020a05660201c600b006572c4107d0mr4350768iot.31.1650746712901; Sat, 23 Apr 2022 13:45:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/crg8VMgKYQa30iHFkGYkHr8UdpJMPftXqoAdJLwozP2XvZACoCUztCSeZQEL1gtYWFctWQ== X-Received: by 2002:a05:6602:1c6:b0:657:2c41:7d0 with SMTP id w6-20020a05660201c600b006572c4107d0mr4350761iot.31.1650746712555; Sat, 23 Apr 2022 13:45:12 -0700 (PDT) Received: from xz-m1.local (cpec09435e3e0ee-cmc09435e3e0ec.cpe.net.cable.rogers.com. [99.241.198.116]) by smtp.gmail.com with ESMTPSA id p66-20020a6bbf45000000b006499925f1f1sm4364427iof.19.2022.04.23.13.45.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Apr 2022 13:45:11 -0700 (PDT) Date: Sat, 23 Apr 2022 16:45:10 -0400 From: Peter Xu To: kernel test robot Cc: kbuild-all@lists.01.org, Linux Memory Management List , Andrew Morton Subject: Re: [linux-next:master 5085/5845] fs/userfaultfd.c:337:13: error: implicit declaration of function 'pte_none_mostly' Message-ID: References: <202204240320.TGDuGcsL-lkp@intel.com> MIME-Version: 1.0 In-Reply-To: <202204240320.TGDuGcsL-lkp@intel.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/mixed; boundary="6ledlY1dphdeDxUO" Content-Disposition: inline X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: BD0001A0032 X-Stat-Signature: 3jjwty1ncrnkdb6oxi6pubnb178e4dib Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=goIkxW+L; dmarc=pass (policy=none) header.from=redhat.com; spf=none (imf19.hostedemail.com: domain of peterx@redhat.com has no SPF policy when checking 170.10.129.124) smtp.mailfrom=peterx@redhat.com X-Rspam-User: X-HE-Tag: 1650746712-350594 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: --6ledlY1dphdeDxUO Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On Sun, Apr 24, 2022 at 03:23:23AM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: e7d6987e09a328d4a949701db40ef63fbb970670 > commit: 70a8da53f7cb7368776f9d2790ecbb4f8bc53ba5 [5085/5845] mm: teach core mm about pte markers > config: x86_64-randconfig-a002-20210928 (https://download.01.org/0day-ci/archive/20220424/202204240320.TGDuGcsL-lkp@intel.com/config) > compiler: gcc-11 (Debian 11.2.0-20) 11.2.0 > reproduce (this is a W=1 build): > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=70a8da53f7cb7368776f9d2790ecbb4f8bc53ba5 > git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > git fetch --no-tags linux-next master > git checkout 70a8da53f7cb7368776f9d2790ecbb4f8bc53ba5 > # save the config file > mkdir build_dir && cp config build_dir/.config > make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > Note: the linux-next/master HEAD e7d6987e09a328d4a949701db40ef63fbb970670 builds fine. > It may have been fixed somewhere. > > All errors (new ones prefixed by >>): > > fs/userfaultfd.c: In function 'userfaultfd_must_wait': > >> fs/userfaultfd.c:337:13: error: implicit declaration of function 'pte_none_mostly' [-Werror=implicit-function-declaration] > 337 | if (pte_none_mostly(*pte)) > | ^~~~~~~~~~~~~~~ > cc1: some warnings being treated as errors Ah, userfaultfd.c may need explicit inclusion for swapops.h now.. Expected fix attached to be squashed into "mm: Teach core mm about pte markers", I think. Thanks, -- Peter Xu --6ledlY1dphdeDxUO Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-fixup-mm-Teach-core-mm-about-pte-markers.patch" >From 009572e59f7d72c5085676b0506f0b269f9ef334 Mon Sep 17 00:00:00 2001 From: Peter Xu Date: Sat, 23 Apr 2022 16:39:15 -0400 Subject: [PATCH] fixup! mm: Teach core mm about pte markers Content-type: text/plain Signed-off-by: Peter Xu --- fs/userfaultfd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/userfaultfd.c b/fs/userfaultfd.c index fb45522a2b44..e943370107d0 100644 --- a/fs/userfaultfd.c +++ b/fs/userfaultfd.c @@ -29,6 +29,7 @@ #include #include #include +#include int sysctl_unprivileged_userfaultfd __read_mostly; -- 2.32.0 --6ledlY1dphdeDxUO--