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 28EDFC3DA6F for ; Wed, 23 Aug 2023 22:52:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9069E280097; Wed, 23 Aug 2023 18:52:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8B6FF280096; Wed, 23 Aug 2023 18:52:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 77E58280097; Wed, 23 Aug 2023 18:52:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 687FF280096 for ; Wed, 23 Aug 2023 18:52:11 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 40D59160125 for ; Wed, 23 Aug 2023 22:52:11 +0000 (UTC) X-FDA: 81156869262.14.E1C3AA1 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by imf21.hostedemail.com (Postfix) with ESMTP id 08B2F1C0008 for ; Wed, 23 Aug 2023 22:52:08 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=YwAEnXfL; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf21.hostedemail.com: domain of lkp@intel.com designates 134.134.136.126 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1692831129; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=uCMHCDbqx5B52d9KM+ko9+8YsFzGLPnNhhGmxVlJNZM=; b=pF3cDDu5dIywRD07StJn04q3HYYlkA9JOZoPsDGJk5GP1q8F/SvY+4iOb3+BzxqxDi6QVV y1LNi/mubqJo4lIPHqUcCGJfe9WJmgYd9JoWNlgLORHrhNX/bDb+cJQZombPciXVlPcdPr CwciXijsp+T6dvWJecsbqF/LLOqA27Y= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=YwAEnXfL; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf21.hostedemail.com: domain of lkp@intel.com designates 134.134.136.126 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1692831129; a=rsa-sha256; cv=none; b=tN3/CJdvWVc3S1Wr2yl7Dytp0Y0H7uDY1cg1XkdVvx6epAOMDKrJL61HPLW+lpyTXt4dEx 0XSs5EEbwha3Gs+uXzxRRiPTL8g0VVU0s/BGm5DHsVMsVmXsfgXryaYJ2YRCuBjGpKTJaX 6B4WWoXtaBdzLHSwAt3QQva8O45IKtA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692831129; x=1724367129; h=date:from:to:cc:subject:message-id:mime-version; bh=AbeS99VugIUEPB9d0Z+Be9wVHLljiYqMEsBSAflYgd8=; b=YwAEnXfL/rdb39axHfqZ1MsCdvE0jbbW7FZxS3ruLdp6eVLhTUG2bEBO 7LJANc7otrKnAFpXLe7ALNez0L3CBMfGs6kz9qZh+qGbfo4zMwTzCi0OS 9E811n7rW6FZtRX7HLR9pF3+pyF0jBvRdJg+1XNgUYJdP9QtvZM2Z78f4 4hTXiKeNMqheRnOKw3e7l1PxiwbAS4Gh1uxU/56VfB3sRt0TnT64eO6/c 4olitnpXvN5vhTXy25tZ2lbuE22DYPbZt1KKSDnw3aCXTssgyO/SKYeY1 uYo1aQYymqwzaz5B+S9vYvxOGlnbI5jrrG9/+7m+jS+ffc7MM5qW1A3cs w==; X-IronPort-AV: E=McAfee;i="6600,9927,10811"; a="359275906" X-IronPort-AV: E=Sophos;i="6.01,195,1684825200"; d="scan'208";a="359275906" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2023 15:52:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10811"; a="802309090" X-IronPort-AV: E=Sophos;i="6.01,195,1684825200"; d="scan'208";a="802309090" Received: from lkp-server02.sh.intel.com (HELO daf8bb0a381d) ([10.239.97.151]) by fmsmga008.fm.intel.com with ESMTP; 23 Aug 2023 15:51:59 -0700 Received: from kbuild by daf8bb0a381d with local (Exim 4.96) (envelope-from ) id 1qYwhi-0001Yy-0p; Wed, 23 Aug 2023 22:51:58 +0000 Date: Thu, 24 Aug 2023 06:51:10 +0800 From: kernel test robot To: "Matthew Wilcox (Oracle)" Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Andrew Morton Subject: [linux-next:master 11462/12208] mm/internal.h:709:3: error: implicit declaration of function 'release_fault_lock' is invalid in C99 Message-ID: <202308240613.DrqV4VT4-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 08B2F1C0008 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: w66u48w4hgaenbeit1ffgzwda1itbixs X-HE-Tag: 1692831128-542215 X-HE-Meta: U2FsdGVkX1+PHXfMJXJrHlvihe2z111ZAhUmaWx7jTa6KaetmLfkbl7UBWyvYnuHbI79Rps4m8oYcCKhPcONlovN/CrfKPq2ongJ77Dkesn21i2wyAWpWN20AtQuRxEH0uT0clNUYYLN0BEFWHaaeqQ+D8r7Vwl9P1Ef00yPdbdlUrWJFg5YzKsCTbIdLuV2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CYi/HsMa4t1pdqhCI7R7gY1od4wwMXQR1WLz9bv0tAt3j22LWjzqaO/PtToSed1BgSOQn 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: e3f80d3eae76c3557b3c9b5938ad01c0e6cf25ec commit: 0790e1e2b1b71ba357e89e779451efe79dff28e6 [11462/12208] mm: allow fault_dirty_shared_page() to be called under the VMA lock config: um-allyesconfig (https://download.01.org/0day-ci/archive/20230824/202308240613.DrqV4VT4-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce: (https://download.01.org/0day-ci/archive/20230824/202308240613.DrqV4VT4-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202308240613.DrqV4VT4-lkp@intel.com/ Note: the linux-next/master HEAD e3f80d3eae76c3557b3c9b5938ad01c0e6cf25ec builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>): In file included from mm/filemap.c:20: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from arch/um/include/asm/hardirq.h:5: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:547: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:560: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/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from mm/filemap.c:20: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from arch/um/include/asm/hardirq.h:5: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:573: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/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from mm/filemap.c:20: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from arch/um/include/asm/hardirq.h:5: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:584: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:594: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:604: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:692: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:700: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:708: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:717: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:726: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:735: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 mm/filemap.c:50: >> mm/internal.h:709:3: error: implicit declaration of function 'release_fault_lock' is invalid in C99 [-Werror,-Wimplicit-function-declaration] release_fault_lock(vmf); ^ 12 warnings and 1 error generated. -- In file included from lib/vsprintf.c:36: In file included from include/linux/rtc.h:17: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from arch/um/include/asm/hardirq.h:5: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:547: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:560: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/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from lib/vsprintf.c:36: In file included from include/linux/rtc.h:17: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from arch/um/include/asm/hardirq.h:5: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:573: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/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from lib/vsprintf.c:36: In file included from include/linux/rtc.h:17: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from arch/um/include/asm/hardirq.h:5: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:584: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:594: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:604: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:692: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:700: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:708: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:717: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:726: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:735: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 lib/vsprintf.c:49: >> lib/../mm/internal.h:709:3: error: implicit declaration of function 'release_fault_lock' is invalid in C99 [-Werror,-Wimplicit-function-declaration] release_fault_lock(vmf); ^ 12 warnings and 1 error generated. vim +/release_fault_lock +709 mm/internal.h 692 693 static inline struct file *maybe_unlock_mmap_for_io(struct vm_fault *vmf, 694 struct file *fpin) 695 { 696 int flags = vmf->flags; 697 698 if (fpin) 699 return fpin; 700 701 /* 702 * FAULT_FLAG_RETRY_NOWAIT means we don't want to wait on page locks or 703 * anything, so we only pin the file and drop the mmap_lock if only 704 * FAULT_FLAG_ALLOW_RETRY is set, while this is the first attempt. 705 */ 706 if (fault_flag_allow_retry_first(flags) && 707 !(flags & FAULT_FLAG_RETRY_NOWAIT)) { 708 fpin = get_file(vmf->vma->vm_file); > 709 release_fault_lock(vmf); 710 } 711 return fpin; 712 } 713 #else /* !CONFIG_MMU */ 714 static inline void unmap_mapping_folio(struct folio *folio) { } 715 static inline void mlock_new_folio(struct folio *folio) { } 716 static inline bool need_mlock_drain(int cpu) { return false; } 717 static inline void mlock_drain_local(void) { } 718 static inline void mlock_drain_remote(int cpu) { } 719 static inline void vunmap_range_noflush(unsigned long start, unsigned long end) 720 { 721 } 722 #endif /* !CONFIG_MMU */ 723 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki