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 X-Spam-Level: X-Spam-Status: No, score=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_NONE, USER_IN_DEF_DKIM_WL 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 08A6DC4363E for ; Wed, 12 May 2021 16:19:49 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 0D0E261D79 for ; Wed, 12 May 2021 16:19:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0D0E261D79 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 71C646B006C; Wed, 12 May 2021 12:19:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6F3216B006E; Wed, 12 May 2021 12:19:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5940D6B0070; Wed, 12 May 2021 12:19:47 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0046.hostedemail.com [216.40.44.46]) by kanga.kvack.org (Postfix) with ESMTP id 1CE3D6B006C for ; Wed, 12 May 2021 12:19:47 -0400 (EDT) Received: from smtpin28.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id B179BA2AC for ; Wed, 12 May 2021 16:19:46 +0000 (UTC) X-FDA: 78133089972.28.2F682F8 Received: from mail-io1-f46.google.com (mail-io1-f46.google.com [209.85.166.46]) by imf07.hostedemail.com (Postfix) with ESMTP id E42DAA003842 for ; Wed, 12 May 2021 16:19:42 +0000 (UTC) Received: by mail-io1-f46.google.com with SMTP id l21so22238538iob.1 for ; Wed, 12 May 2021 09:19:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZEGh4Ta48WPm6GEyyNecSufYvgNHvOStlAYh8KcAcgM=; b=kTuOdwpp3zsiYD15oyglwwCChH0LCIJ4lM0x2lvQkOCBBErbcreyB+m2zK3F27m0c4 hfh1SCK7E83yU3hN9V4SVn+dJNzKZbOFlL2fgGos3sIwNW1VVW4oqv+EI8fMmAAeM9P2 HjdwnN3CzMAY9GjRTuA/RvzxQKV0WlOSUD5kgXZRKLbWfJTN4W3knHiihZIjqqJgZSpS SsYSQ7ZLvnW7zjmtc2KG120YObqdDB/pqBiIY32GFSABtPVP4lpLP9Z+kZBK75tLgDO5 Tm1HkkYSTAqol1RqjTJX2zPlmIFNVPreLXvd5/38+6b7HbqUI/ICVAF0oL3JpaXVKiNe hteA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZEGh4Ta48WPm6GEyyNecSufYvgNHvOStlAYh8KcAcgM=; b=YtMd43AkbA1eObTohAswf0xR7h5iSQT8b0mhcnehh9oTvIO3YPVJkCiXiWe3qwIREn kpKyhD+NU2x+2+m0+MAqWJWVYGjoEdBj0W/IOzHzFEKjRuqxrSPNk4MvaOJ2Fr8AvY2t WlQiThJD1KKpKT+OOAw3bK+Q18+n6X06a2INI0nTTdv44fLow1WC9HGY1ZGjYsdqqcea LTv/Qj7q65C6m8Xb5xeA2++OWlSEP7uhminKpELJLkHRAjGtpN6NPk/se5Gu5o+FGtbe q/KRU/243s5obrt44vWtDpY3S3VzzhouUo9Zb3lfwpem5ITKSXw+hugcQ8nxA7CZ92vR UFWg== X-Gm-Message-State: AOAM530AAJb/GoMEj7R5h3/jmCrYGLty18FWTczqLDHSr5idCt0VRSeq BR160PkgpE7lm/edllUEcmEkworRXWjUuPowC5s7TA== X-Google-Smtp-Source: ABdhPJyzg0hcokD2vMjbyYU1Mn05JBN50M2HXhfL+v3mav6RCmZiYReLc0ZfHZGoNyZ7k5rBTSdYMvSjPgTyfWFmtK4= X-Received: by 2002:a6b:b409:: with SMTP id d9mr26146135iof.57.1620836385345; Wed, 12 May 2021 09:19:45 -0700 (PDT) MIME-Version: 1.0 References: <202105122224.mJzg3ncL-lkp@intel.com> In-Reply-To: <202105122224.mJzg3ncL-lkp@intel.com> From: Axel Rasmussen Date: Wed, 12 May 2021 09:19:10 -0700 Message-ID: Subject: Re: [linux-next:master 2078/2633] include/linux/hugetlb.h:340:30: error: variable has incomplete type 'enum mcopy_atomic_mode' To: kernel test robot Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com, Linux Memory Management List , Peter Xu , Andrew Morton , Hugh Dickins Content-Type: text/plain; charset="UTF-8" Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=google.com header.s=20161025 header.b=kTuOdwpp; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf07.hostedemail.com: domain of axelrasmussen@google.com designates 209.85.166.46 as permitted sender) smtp.mailfrom=axelrasmussen@google.com X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: E42DAA003842 X-Stat-Signature: pxxygcouuqm6dmjafuu76b63z35c9brd Received-SPF: none (google.com>: No applicable sender policy available) receiver=imf07; identity=mailfrom; envelope-from=""; helo=mail-io1-f46.google.com; client-ip=209.85.166.46 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1620836382-950905 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: Andrew, the straightforward fix is just to drop this commit, which is currently in the mm tree (not in v5.13-rc1): 09ff184a3eb1c9 userfaultfd/hugetlbfs: avoid including userfaultfd_k.h in hugetlb.h (Happy to send a revert patch, but I suspect it's easier for you to drop than to revert + squash later?) Adding Hugh as well, since he suggested this cleanup and might prefer doing something else instead. On Wed, May 12, 2021 at 7:45 AM kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: ec85c95b0c90a17413901b018e8ade7b9eae7cad > commit: 09ff184a3eb1c9cb42f64325ca4a51e36206f4f5 [2078/2633] userfaultfd/hugetlbfs: avoid including userfaultfd_k.h in hugetlb.h > config: s390-randconfig-r023-20210512 (attached as .config) > compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a0fed635fe1701470062495a6ffee1c608f3f1bc) > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # install s390 cross compiling tool for clang build > # apt-get install binutils-s390x-linux-gnu > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=09ff184a3eb1c9cb42f64325ca4a51e36206f4f5 > 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 09ff184a3eb1c9cb42f64325ca4a51e36206f4f5 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=s390 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > In file included from arch/s390/mm/fault.c:33: > >> include/linux/hugetlb.h:340:30: error: variable has incomplete type 'enum mcopy_atomic_mode' > enum mcopy_atomic_mode mode, > ^ > include/linux/hugetlb.h:18:6: note: forward declaration of 'enum mcopy_atomic_mode' > enum mcopy_atomic_mode; > ^ > In file included from arch/s390/mm/fault.c:35: > In file included from arch/s390/include/asm/diag.h:12: > In file included from include/linux/if_ether.h:19: > In file included from include/linux/skbuff.h:31: > In file included from include/linux/dma-mapping.h:10: > In file included from include/linux/scatterlist.h:9: > In file included from arch/s390/include/asm/io.h:75: > include/asm-generic/io.h:464:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > val = __raw_readb(PCI_IOBASE + addr); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); > ~~~~~~~~~~ ^ > include/uapi/linux/byteorder/big_endian.h:36:59: note: expanded from macro '__le16_to_cpu' > #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x)) > ^ > include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16' > #define __swab16(x) (__u16)__builtin_bswap16((__u16)(x)) > ^ > In file included from arch/s390/mm/fault.c:35: > In file included from arch/s390/include/asm/diag.h:12: > In file included from include/linux/if_ether.h:19: > In file included from include/linux/skbuff.h:31: > In file included from include/linux/dma-mapping.h:10: > In file included from include/linux/scatterlist.h:9: > In file included from arch/s390/include/asm/io.h:75: > include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); > ~~~~~~~~~~ ^ > include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' > #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) > ^ > include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32' > #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x)) > ^ > In file included from arch/s390/mm/fault.c:35: > In file included from arch/s390/include/asm/diag.h:12: > In file included from include/linux/if_ether.h:19: > In file included from include/linux/skbuff.h:31: > In file included from include/linux/dma-mapping.h:10: > In file included from include/linux/scatterlist.h:9: > In file included from arch/s390/include/asm/io.h:75: > include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > __raw_writeb(value, PCI_IOBASE + addr); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > readsb(PCI_IOBASE + addr, buffer, count); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > readsw(PCI_IOBASE + addr, buffer, count); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > readsl(PCI_IOBASE + addr, buffer, count); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > writesb(PCI_IOBASE + addr, buffer, count); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > writesw(PCI_IOBASE + addr, buffer, count); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > writesl(PCI_IOBASE + addr, buffer, count); > ~~~~~~~~~~ ^ > 12 warnings and 1 error generated. > -- > In file included from arch/s390/mm/vmem.c:8: > In file included from include/linux/memblock.h:14: > In file included from arch/s390/include/asm/dma.h:5: > In file included from arch/s390/include/asm/io.h:75: > include/asm-generic/io.h:464:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > val = __raw_readb(PCI_IOBASE + addr); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); > ~~~~~~~~~~ ^ > include/uapi/linux/byteorder/big_endian.h:36:59: note: expanded from macro '__le16_to_cpu' > #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x)) > ^ > include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16' > #define __swab16(x) (__u16)__builtin_bswap16((__u16)(x)) > ^ > In file included from arch/s390/mm/vmem.c:8: > In file included from include/linux/memblock.h:14: > In file included from arch/s390/include/asm/dma.h:5: > In file included from arch/s390/include/asm/io.h:75: > include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); > ~~~~~~~~~~ ^ > include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' > #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) > ^ > include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32' > #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x)) > ^ > In file included from arch/s390/mm/vmem.c:8: > In file included from include/linux/memblock.h:14: > In file included from arch/s390/include/asm/dma.h:5: > In file included from arch/s390/include/asm/io.h:75: > include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > __raw_writeb(value, PCI_IOBASE + addr); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > readsb(PCI_IOBASE + addr, buffer, count); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > readsw(PCI_IOBASE + addr, buffer, count); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > readsl(PCI_IOBASE + addr, buffer, count); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > writesb(PCI_IOBASE + addr, buffer, count); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > writesw(PCI_IOBASE + addr, buffer, count); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > writesl(PCI_IOBASE + addr, buffer, count); > ~~~~~~~~~~ ^ > In file included from arch/s390/mm/vmem.c:13: > >> include/linux/hugetlb.h:340:30: error: variable has incomplete type 'enum mcopy_atomic_mode' > enum mcopy_atomic_mode mode, > ^ > include/linux/hugetlb.h:18:6: note: forward declaration of 'enum mcopy_atomic_mode' > enum mcopy_atomic_mode; > ^ > arch/s390/mm/vmem.c:521:6: warning: no previous prototype for function 'vmemmap_free' [-Wmissing-prototypes] > void vmemmap_free(unsigned long start, unsigned long end, > ^ > arch/s390/mm/vmem.c:521:1: note: declare 'static' if the function is not intended to be used outside of this translation unit > void vmemmap_free(unsigned long start, unsigned long end, > ^ > static > 13 warnings and 1 error generated. > -- > In file included from arch/s390/mm/pageattr.c:6: > >> include/linux/hugetlb.h:340:30: error: variable has incomplete type 'enum mcopy_atomic_mode' > enum mcopy_atomic_mode mode, > ^ > include/linux/hugetlb.h:18:6: note: forward declaration of 'enum mcopy_atomic_mode' > enum mcopy_atomic_mode; > ^ > 1 error generated. > -- > In file included from arch/s390/kernel/setup.c:25: > In file included from include/linux/memblock.h:14: > In file included from arch/s390/include/asm/dma.h:5: > In file included from arch/s390/include/asm/io.h:75: > include/asm-generic/io.h:464:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > val = __raw_readb(PCI_IOBASE + addr); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); > ~~~~~~~~~~ ^ > include/uapi/linux/byteorder/big_endian.h:36:59: note: expanded from macro '__le16_to_cpu' > #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x)) > ^ > include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16' > #define __swab16(x) (__u16)__builtin_bswap16((__u16)(x)) > ^ > In file included from arch/s390/kernel/setup.c:25: > In file included from include/linux/memblock.h:14: > In file included from arch/s390/include/asm/dma.h:5: > In file included from arch/s390/include/asm/io.h:75: > include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); > ~~~~~~~~~~ ^ > include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' > #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) > ^ > include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32' > #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x)) > ^ > In file included from arch/s390/kernel/setup.c:25: > In file included from include/linux/memblock.h:14: > In file included from arch/s390/include/asm/dma.h:5: > In file included from arch/s390/include/asm/io.h:75: > include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > __raw_writeb(value, PCI_IOBASE + addr); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > readsb(PCI_IOBASE + addr, buffer, count); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > readsw(PCI_IOBASE + addr, buffer, count); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > readsl(PCI_IOBASE + addr, buffer, count); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > writesb(PCI_IOBASE + addr, buffer, count); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > writesw(PCI_IOBASE + addr, buffer, count); > ~~~~~~~~~~ ^ > include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] > writesl(PCI_IOBASE + addr, buffer, count); > ~~~~~~~~~~ ^ > In file included from arch/s390/kernel/setup.c:52: > >> include/linux/hugetlb.h:340:30: error: variable has incomplete type 'enum mcopy_atomic_mode' > enum mcopy_atomic_mode mode, > ^ > include/linux/hugetlb.h:18:6: note: forward declaration of 'enum mcopy_atomic_mode' > enum mcopy_atomic_mode; > ^ > 12 warnings and 1 error generated. > > > vim +340 include/linux/hugetlb.h > > 1f9dccb25b8fb4 Mike Kravetz 2019-11-30 333 > 714c189108244f Axel Rasmussen 2021-05-04 334 #ifdef CONFIG_USERFAULTFD > 1f9dccb25b8fb4 Mike Kravetz 2019-11-30 335 static inline int hugetlb_mcopy_atomic_pte(struct mm_struct *dst_mm, > 1f9dccb25b8fb4 Mike Kravetz 2019-11-30 336 pte_t *dst_pte, > 1f9dccb25b8fb4 Mike Kravetz 2019-11-30 337 struct vm_area_struct *dst_vma, > 1f9dccb25b8fb4 Mike Kravetz 2019-11-30 338 unsigned long dst_addr, > 1f9dccb25b8fb4 Mike Kravetz 2019-11-30 339 unsigned long src_addr, > f619147104c8ea Axel Rasmussen 2021-05-04 @340 enum mcopy_atomic_mode mode, > 1f9dccb25b8fb4 Mike Kravetz 2019-11-30 341 struct page **pagep) > 1f9dccb25b8fb4 Mike Kravetz 2019-11-30 342 { > 1f9dccb25b8fb4 Mike Kravetz 2019-11-30 343 BUG(); > 1f9dccb25b8fb4 Mike Kravetz 2019-11-30 344 return 0; > 1f9dccb25b8fb4 Mike Kravetz 2019-11-30 345 } > 714c189108244f Axel Rasmussen 2021-05-04 346 #endif /* CONFIG_USERFAULTFD */ > 1f9dccb25b8fb4 Mike Kravetz 2019-11-30 347 > > :::::: The code at line 340 was first introduced by commit > :::::: f619147104c8ea71e120e4936d2b68ec11a1e527 userfaultfd: add UFFDIO_CONTINUE ioctl > > :::::: TO: Axel Rasmussen > :::::: CC: Linus Torvalds > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org