From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B9C942F21 for ; Sun, 6 Feb 2022 14:03:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644156214; x=1675692214; h=date:from:to:cc:subject:message-id:mime-version; bh=kl0Maq1jQ8KUFPBzFBnyMvoq2+n3J0MybHWFYCT9rvM=; b=LcLJbSQr/Lw4Gr+BwIFUEN0qMUKzOPiHUI2m5UgmqGfTfx9e0S7vvxyL ba98VAcxjH3tQEaaW0cjVcD1n/3t1S7slnwXniSZswJvJNKcYsGyBQ/dM OCbShGhlCfaKke6wv6cDddMSNuIoCrBYylkiajyJFuq1CQPR4LPMHa/po kjS9m5Typ18lQ3oV52gFbPZ968SA84yM2zb3UOvB/ZUXDyO6ytLPk/jJ2 fgUp1VZCLx3l5jT0v2/caK93wy0lvOXX2p3/0ChzHFvDlDPWSFNZ9DKPW 39YndN05ph9Jmt2TGHPOYmJJbuT1HcvQMKT3+fHJPAgcDOMLmUxPWVoy6 w==; X-IronPort-AV: E=McAfee;i="6200,9189,10249"; a="248795153" X-IronPort-AV: E=Sophos;i="5.88,347,1635231600"; d="scan'208";a="248795153" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Feb 2022 06:03:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,347,1635231600"; d="scan'208";a="524830003" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by orsmga007.jf.intel.com with ESMTP; 06 Feb 2022 06:03:32 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nGi8Z-000aMr-LM; Sun, 06 Feb 2022 14:03:31 +0000 Date: Sun, 6 Feb 2022 22:03:14 +0800 From: kernel test robot To: "Matthew Wilcox (Oracle)" Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [willy-pagecache:for-next 47/75] mm/folio-compat.c:175:2: error: implicit declaration of function 'mlock_vma_folio' Message-ID: <202202062155.OVQV4Ld0-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) tree: git://git.infradead.org/users/willy/pagecache for-next head: b1ccdc7664f5af97629b33fedf382af350edecf4 commit: be786528e1696e375cb475e935828b8236525ecc [47/75] mm/mlock: Turn mlock_vma_page() into mlock_vma_folio() config: riscv-allnoconfig (https://download.01.org/0day-ci/archive/20220206/202202062155.OVQV4Ld0-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 6daaf5a44925592c764c59219b0024ee06317028) 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 riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu git remote add willy-pagecache git://git.infradead.org/users/willy/pagecache git fetch --no-tags willy-pagecache for-next git checkout be786528e1696e375cb475e935828b8236525ecc # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash 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 mm/folio-compat.c:7: In file included from include/linux/migrate.h:6: In file included from include/linux/mempolicy.h:15: In file included from include/linux/pagemap.h:11: In file included from include/linux/highmem.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/include/generated/asm/hardirq.h:1: 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/riscv/include/asm/io.h:136: 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/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/folio-compat.c:7: In file included from include/linux/migrate.h:6: In file included from include/linux/mempolicy.h:15: In file included from include/linux/pagemap.h:11: In file included from include/linux/highmem.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/include/generated/asm/hardirq.h:1: 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/riscv/include/asm/io.h:136: 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/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/folio-compat.c:7: In file included from include/linux/migrate.h:6: In file included from include/linux/mempolicy.h:15: In file included from include/linux/pagemap.h:11: In file included from include/linux/highmem.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/include/generated/asm/hardirq.h:1: 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/riscv/include/asm/io.h:136: 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:1024:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ mm/folio-compat.c:168:6: warning: no previous prototype for function 'clear_page_mlock' [-Wmissing-prototypes] void clear_page_mlock(struct page *page) ^ mm/folio-compat.c:168:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void clear_page_mlock(struct page *page) ^ static mm/folio-compat.c:173:6: error: redefinition of 'mlock_vma_page' void mlock_vma_page(struct page *page) ^ mm/internal.h:499:20: note: previous definition is here static inline void mlock_vma_page(struct page *page) { } ^ >> mm/folio-compat.c:175:2: error: implicit declaration of function 'mlock_vma_folio' [-Werror,-Wimplicit-function-declaration] mlock_vma_folio(page_folio(page)); ^ mm/folio-compat.c:175:2: note: did you mean 'mlock_vma_page'? mm/folio-compat.c:173:6: note: 'mlock_vma_page' declared here void mlock_vma_page(struct page *page) ^ 8 warnings and 2 errors generated. vim +/mlock_vma_folio +175 mm/folio-compat.c 172 > 173 void mlock_vma_page(struct page *page) 174 { > 175 mlock_vma_folio(page_folio(page)); --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org