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 EA72FC48BC4 for ; Sat, 17 Feb 2024 17:28:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C86FA6B009E; Sat, 17 Feb 2024 12:28:55 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C0D296B009F; Sat, 17 Feb 2024 12:28:55 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AAECA6B00A0; Sat, 17 Feb 2024 12:28:55 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 945776B009E for ; Sat, 17 Feb 2024 12:28:55 -0500 (EST) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 435B3A0286 for ; Sat, 17 Feb 2024 17:28:55 +0000 (UTC) X-FDA: 81801981030.21.BDFFE90 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by imf01.hostedemail.com (Postfix) with ESMTP id A4AE94000D for ; Sat, 17 Feb 2024 17:28:52 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=fmXepWPx; spf=pass (imf01.hostedemail.com: domain of lkp@intel.com designates 192.198.163.18 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1708190933; 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=qLIfPEDXefLK7+S0YW2/5HOXamI8sgMiyWV+jwy45l8=; b=rtg65/BfvMS1mIIolLzJFfAKuevL6FunitA3gfwcf3CtN+moW9H7dfh8aPEVyLnHy+sVMx 2vdZbvwg856jAZ3vFt5ymVDbk++2vwE2D43H15bcSSxdZ4gY/Y52fN9TLnsado1UKw1NTK 3FJoZwJkagvogcAl0f8etCLTYw1qxZ8= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=fmXepWPx; spf=pass (imf01.hostedemail.com: domain of lkp@intel.com designates 192.198.163.18 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708190933; a=rsa-sha256; cv=none; b=cj7L5Aa1zaCdgdWsIxDZg8hAa0NS7ybxo1y8UD7n9gaazXDkrBXUCrB+ggrILdoUAPWkxb t5cWlmjpC/3uEjqYCdznoZT/9fVqXbppnALr617In7SJZ2y/ljy9qfeYga6atUajqG1CWm Ky2nsOY5CnmahH7VinQdfye3NarFW0w= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708190932; x=1739726932; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=XoMAutHoxVHHbRXYGtOfCJCOlfzu7clxXNV9Rrq01Uo=; b=fmXepWPxK53ouoJuLPyyc3OZxA1FeXU2g4rSCiJcvQJqTAk2VO347Rtg /KNrhhf6KK/5/9cVFF8JPjKnQmDMdkbb1xFD67K3ua+Tr+ev9vqDBvlUy ZN6QQ6cn7MAv3Ypfz8ysPZT+QfMQZUAJWJ1clS9jx3NSv66r+iES+Nh+2 nlZ8ZixGtUIBFlkOp64LabzxRRPRc5ho9yOezNEDF57t4JXEtabySgYuZ ZMXBV8rA5Zj/+e2JKmgL7tY73JkXtRKhM4AkhNrjak6DPryCAarDGh+10 yRra30tTupd8+VeTa5YPDwxXRnuHBgIG2jV1bgp4UBciE6p9iUMIbY7xO w==; X-IronPort-AV: E=McAfee;i="6600,9927,10987"; a="2182390" X-IronPort-AV: E=Sophos;i="6.06,166,1705392000"; d="scan'208";a="2182390" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2024 09:28:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,166,1705392000"; d="scan'208";a="34902595" Received: from lkp-server02.sh.intel.com (HELO 3c78fa4d504c) ([10.239.97.151]) by orviesa002.jf.intel.com with ESMTP; 17 Feb 2024 09:28:48 -0800 Received: from kbuild by 3c78fa4d504c with local (Exim 4.96) (envelope-from ) id 1rbOUY-0002L2-0d; Sat, 17 Feb 2024 17:28:46 +0000 Date: Sun, 18 Feb 2024 01:27:46 +0800 From: kernel test robot To: Max Kellermann , akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Max Kellermann Subject: Re: [PATCH v1 14/14] include: reduce dependencies on linux/mm.h Message-ID: <202402180115.xH2WHdhd-lkp@intel.com> References: <20240215145602.1371274-15-max.kellermann@ionos.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240215145602.1371274-15-max.kellermann@ionos.com> X-Rspamd-Queue-Id: A4AE94000D X-Rspam-User: X-Stat-Signature: ocsr6twt3abuqtru4nwht4xmtzdcit3b X-Rspamd-Server: rspam01 X-HE-Tag: 1708190932-352326 X-HE-Meta: U2FsdGVkX19FK3FsyDp8ZzjSonEi1Yi2QTZAa0r2icDNyREO6jmTtrm1AqJfoFTmFIUdxrLyeLTLpI+YY2gsSBXjEoLAcv8jU7SykwJTx9/k6P8MjmRXe/YMrCaYSEZX4v6XNowA8d5H4Dp+GNg2NelJm70OuGgRY8yNC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sX0xwYswP8fSVNwzOW45gcoQQ0MkA+iHWtav01k8XdDOBB0zvn5P30wYQrcVvZjnWRuVm8eEkgsqsakxn9kCuL34LwL8Vxl0THz4k0o6VD2NTLaK1grsJVv9pfl/WEQS4l+jVYG3D/UvjquvCZ2bhbF+srEDD/mc6d4n0w= 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 Max, kernel test robot noticed the following build errors: [auto build test ERROR on next-20240215] [cannot apply to akpm-mm/mm-everything char-misc/char-misc-testing char-misc/char-misc-next char-misc/char-misc-linus powerpc/next powerpc/fixes linus/master v6.8-rc4 v6.8-rc3 v6.8-rc2 v6.8-rc4] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Max-Kellermann/drivers-add-missing-includes-on-linux-mm-h-and-others/20240215-225853 base: next-20240215 patch link: https://lore.kernel.org/r/20240215145602.1371274-15-max.kellermann%40ionos.com patch subject: [PATCH v1 14/14] include: reduce dependencies on linux/mm.h config: hexagon-allnoconfig (https://download.01.org/0day-ci/archive/20240218/202402180115.xH2WHdhd-lkp@intel.com/config) compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 36adfec155de366d722f2bac8ff9162289dcf06c) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240218/202402180115.xH2WHdhd-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/202402180115.xH2WHdhd-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from lib/scatterlist.c:9: In file included from include/linux/scatterlist.h:9: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 547 | 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] 560 | 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' 37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) | ^ In file included from lib/scatterlist.c:9: In file included from include/linux/scatterlist.h:9: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 573 | 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' 35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) | ^ In file included from lib/scatterlist.c:9: In file included from include/linux/scatterlist.h:9: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 584 | __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] 594 | __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] 604 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ >> lib/scatterlist.c:739:9: error: call to undeclared function 'PAGE_ALIGN'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 739 | return PAGE_ALIGN(sg->offset + sg->length) >> PAGE_SHIFT; | ^ lib/scatterlist.c:763:9: error: call to undeclared function 'PAGE_ALIGN'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 763 | return PAGE_ALIGN(sg->offset + sg_dma_len(sg)) >> PAGE_SHIFT; | ^ >> lib/scatterlist.c:1153:3: error: call to undeclared function 'unpin_user_page'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1153 | unpin_user_page(sg_page(&sgtable->sgl[--sgtable->nents])); | ^ >> lib/scatterlist.c:1239:8: error: call to undeclared function 'is_vmalloc_or_module_addr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1239 | if (is_vmalloc_or_module_addr((void *)kaddr)) | ^ >> lib/scatterlist.c:1240:12: error: call to undeclared function 'vmalloc_to_page'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1240 | page = vmalloc_to_page((void *)kaddr); | ^ lib/scatterlist.c:1240:12: note: did you mean 'vmalloc_nr_pages'? include/linux/vmalloc.h:135:22: note: 'vmalloc_nr_pages' declared here 135 | extern unsigned long vmalloc_nr_pages(void); | ^ >> lib/scatterlist.c:1240:10: error: incompatible integer to pointer conversion assigning to 'struct page *' from 'int' [-Wint-conversion] 1240 | page = vmalloc_to_page((void *)kaddr); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 6 warnings and 6 errors generated. vim +/PAGE_ALIGN +739 lib/scatterlist.c a321e91b6d73ed Imre Deak 2013-02-27 736 a321e91b6d73ed Imre Deak 2013-02-27 737 static int sg_page_count(struct scatterlist *sg) a321e91b6d73ed Imre Deak 2013-02-27 738 { a321e91b6d73ed Imre Deak 2013-02-27 @739 return PAGE_ALIGN(sg->offset + sg->length) >> PAGE_SHIFT; a321e91b6d73ed Imre Deak 2013-02-27 740 } a321e91b6d73ed Imre Deak 2013-02-27 741 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki