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 425C8C4167D for ; Tue, 7 Nov 2023 03:34:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 730B080007; Mon, 6 Nov 2023 22:34:20 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6E1CB8E0002; Mon, 6 Nov 2023 22:34:20 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 581AB80007; Mon, 6 Nov 2023 22:34:20 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 478818E0002 for ; Mon, 6 Nov 2023 22:34:20 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 195FDB5A19 for ; Tue, 7 Nov 2023 03:34:20 +0000 (UTC) X-FDA: 81429740280.16.2D33776 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by imf18.hostedemail.com (Postfix) with ESMTP id 78F241C0008 for ; Tue, 7 Nov 2023 03:34:17 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="UM/aXexw"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 192.55.52.93 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=1699328058; 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:in-reply-to:references:references:dkim-signature; bh=xKXzJkF7blGvyGpjCmWYUVvxim/M/QErtnW7VsBlog8=; b=a3yaTjGVsnobnPdyOmYe7lIKRwhWFT7d5u0QZiJ4fYcNp6jfiG2NLSb1Mu/E/wbMhxj2Ui CwymdSR8YPoZcufxTM4WDjGmJEZu/xLcaiRZXrjEbD+mae2wA7WmK7AiSohsTks3TFdPed +/NwD6RlgHFi+SCz01EkWsWebajVWl4= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="UM/aXexw"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1699328058; a=rsa-sha256; cv=none; b=POauoWzS45PDLRjkgu/RuapDNcEKz7nREkl33WgQfa1emPw/tFHhX8qqqZo/BvFk+ZKxp7 nDoA7gFW6QptMOf9WTh1tZopan41C9uLT4r65YtgQ2Ea+57u3pbh9oCwGdoG5adZfutAg1 RLkbtK6EVgUebAnKhCslO/EjlrtyIws= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699328057; x=1730864057; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=dHRLiDownStx5s36gC5p8cL07CF6Lv06KgLGUQMtKfU=; b=UM/aXexwe7OLTlhq7ig1XFiVzTk/k1pXt+nodF69fGjOm2RBDBB6MSeE TDVkjE8IcZBxdisyHrDjljQXCBUHsMOwGr4L/JguhUgBv+Dei5/pe5k9L EBxqF7V3RVUFIegLVjTn7YZLOndU6k6vU0VbhjyV9W9ug2IRZnP9tugaC JUQXnlM4jKPzVZhNewl2xQBPr301niWJ58fea/Q2xUPESrqYXW5j+ieeM RjSJOcqUSHN63Ec4gWZidXmImPtHDYRl9fFdnIj6445ffXZAhkZK9Y7Fz vOTzcECvG4sRsHASMOPEMjuKjpjlx4WhSDnbVtHz4XNg9mDFAtpFiCYe6 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10886"; a="386594648" X-IronPort-AV: E=Sophos;i="6.03,282,1694761200"; d="scan'208";a="386594648" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2023 19:34:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10886"; a="936001874" X-IronPort-AV: E=Sophos;i="6.03,282,1694761200"; d="scan'208";a="936001874" Received: from lkp-server01.sh.intel.com (HELO 17d9e85e5079) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 06 Nov 2023 19:34:11 -0800 Received: from kbuild by 17d9e85e5079 with local (Exim 4.96) (envelope-from ) id 1r0Cqu-0006vA-39; Tue, 07 Nov 2023 03:34:08 +0000 Date: Tue, 7 Nov 2023 11:33:33 +0800 From: kernel test robot To: Vivek Kasireddy , dri-devel@lists.freedesktop.org, linux-mm@kvack.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Vivek Kasireddy , David Hildenbrand , Daniel Vetter , Mike Kravetz , Hugh Dickins , Peter Xu , Gerd Hoffmann , Dongwon Kim , Junxiao Chang , Jason Gunthorpe Subject: Re: [PATCH v2 1/3] mm/gup: Introduce pin_user_pages_fd() for pinning shmem/hugetlbfs file pages (v2) Message-ID: <202311071110.ZGF6P4zc-lkp@intel.com> References: <20231106061541.507116-2-vivek.kasireddy@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231106061541.507116-2-vivek.kasireddy@intel.com> X-Rspamd-Queue-Id: 78F241C0008 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: qjsww7dnxih7y3ioaqy1m9da91jxk1nt X-HE-Tag: 1699328057-861927 X-HE-Meta: U2FsdGVkX1/zw/FOFlWeqJEsJG6Roeb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9ezFwDtEJim3bq4ore5wELArVCna4hvn0Hn/ezbgJ7xmkH4KDAOCd/7Hu5EtehP3DSSmwKU2p4yKxxO1saTgtt77D1a38N5n5rgNjDYAnqckhVSFXMAgiGTkA4xNPYtFKyeQA7mJ2aoTm/dZqVLqGHsVT9xi55av/uEYQyjrbTaPw2zO4h6IoMHLrJSzSU4JzxKmcbAfVHDWykGOXRGQzUGo4pvKNiMixNLLwvM9u 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: List-Subscribe: List-Unsubscribe: Hi Vivek, kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Vivek-Kasireddy/mm-gup-Introduce-pin_user_pages_fd-for-pinning-shmem-hugetlbfs-file-pages-v2/20231106-141954 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20231106061541.507116-2-vivek.kasireddy%40intel.com patch subject: [PATCH v2 1/3] mm/gup: Introduce pin_user_pages_fd() for pinning shmem/hugetlbfs file pages (v2) config: um-allyesconfig (https://download.01.org/0day-ci/archive/20231107/202311071110.ZGF6P4zc-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231107/202311071110.ZGF6P4zc-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/202311071110.ZGF6P4zc-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from mm/gup.c:9: In file included from include/linux/pagemap.h:11: In file included from include/linux/highmem.h:12: 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/gup.c:9: In file included from include/linux/pagemap.h:11: In file included from include/linux/highmem.h:12: 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/gup.c:9: In file included from include/linux/pagemap.h:11: In file included from include/linux/highmem.h:12: 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); ~~~~~~~~~~ ^ >> mm/gup.c:3419:9: error: implicit declaration of function 'hugetlb_add_to_page_cache' is invalid in C99 [-Werror,-Wimplicit-function-declaration] err = hugetlb_add_to_page_cache(folio, file->f_mapping, idx); ^ 12 warnings and 1 error generated. vim +/hugetlb_add_to_page_cache +3419 mm/gup.c 3403 3404 static struct page *alloc_file_page(struct file *file, pgoff_t idx) 3405 { 3406 struct page *page = ERR_PTR(-ENOMEM); 3407 struct folio *folio; 3408 int err; 3409 3410 if (shmem_file(file)) 3411 return shmem_read_mapping_page(file->f_mapping, idx); 3412 3413 folio = alloc_hugetlb_folio_nodemask(hstate_file(file), 3414 NUMA_NO_NODE, 3415 NULL, 3416 GFP_USER); 3417 if (folio && folio_try_get(folio)) { 3418 page = &folio->page; > 3419 err = hugetlb_add_to_page_cache(folio, file->f_mapping, idx); 3420 if (err) { 3421 folio_put(folio); 3422 free_huge_folio(folio); 3423 page = ERR_PTR(err); 3424 } 3425 } 3426 3427 return page; 3428 } 3429 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki