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 26E08EB64D9 for ; Wed, 14 Jun 2023 18:38:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 65E366B0074; Wed, 14 Jun 2023 14:38:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 60D866B0075; Wed, 14 Jun 2023 14:38:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4AE0B8E0001; Wed, 14 Jun 2023 14:38:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 35D646B0074 for ; Wed, 14 Jun 2023 14:38:32 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id A6AC51C8621 for ; Wed, 14 Jun 2023 18:38:31 +0000 (UTC) X-FDA: 80902214022.20.657DA30 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by imf30.hostedemail.com (Postfix) with ESMTP id E62A280004 for ; Wed, 14 Jun 2023 18:38:28 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Mvm4PZNq; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf30.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=1686767909; 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=QIwzjeCQZ113T9DdPwDCHYobjr24IesRphqOKA6W160=; b=38q+croz9ixu50RpZ2AFOHyS2hHQPmWLYBxx0pG95NQFGOucXTQo9W4m6nj3tHws9txfZw fHhZ183aq/A5dYQcF8lWlhN2SHv1R9jvXGNk8cWm1mAAearU9tvGyeBK9ImrFor7u8YtqN fu4kZ8KnUJ+cpKl7/juTQoVSiWRHtiI= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Mvm4PZNq; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf30.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=1686767909; a=rsa-sha256; cv=none; b=tttS+a/RC3PBgfRNZRdB7U8dxjSzKvtIpqZhpilyp/krLCEK+K3TqMwcxX2NneS3j7BtLk wPt3ixMTbmI96GXBB8PDZw54XonPJk9RCvqgCuulP5Zl0pvCkSoZNAvEBTro2xsXiTWPtI qLB802O/Le8mw2qxsJtNHEZv4IYWldU= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686767909; x=1718303909; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=3juP/zZ0es/YUkn6xSx1QP7m7ZntPvgv8l4V1a11fWs=; b=Mvm4PZNqxpw5FbtOGLpBMzmA/iVdqpexTWtQKc8n/pnQL5netpzMGCDc v/vwcIylAExggg30GsqRfcbot4MFq/4CiPIxZGuiLCErJVuCeGh9Ausal qLRxQWoUrzCDVRVnXSKs1FNeYI4XQfCt8TXhwGo/2FKUdHokawYZeaRAr alYXp034UAgplmEzzBpouHQ4XN5Of2p4AXSomp0hHpuJ3jv7iGhmEYRtk Ldid2KO6iKhLee8DUUKFSjpJl+A/Xg0nbZnnEgXa9O2zWcYYSQkV8JzAr afwoZIg53RSY7Fqq1Ap1p1NqAC51c18TKAroX1phLKD8XFYK3vW63uKnT Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="356195112" X-IronPort-AV: E=Sophos;i="6.00,243,1681196400"; d="scan'208";a="356195112" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2023 11:38:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="745184233" X-IronPort-AV: E=Sophos;i="6.00,243,1681196400"; d="scan'208";a="745184233" Received: from lkp-server02.sh.intel.com (HELO d59cacf64e9e) ([10.239.97.151]) by orsmga001.jf.intel.com with ESMTP; 14 Jun 2023 11:38:24 -0700 Received: from kbuild by d59cacf64e9e with local (Exim 4.96) (envelope-from ) id 1q9VNv-0000xH-1O; Wed, 14 Jun 2023 18:38:23 +0000 Date: Thu, 15 Jun 2023 02:38:08 +0800 From: kernel test robot To: "Matthew Wilcox (Oracle)" , Hannes Reinecke Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, "Matthew Wilcox (Oracle)" , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, Andrew Morton , Linux Memory Management List , Christoph Hellwig , Luis Chamberlain Subject: Re: [PATCH 1/2] highmem: Add memcpy_to_folio() Message-ID: <202306150241.f2mNsWXE-lkp@intel.com> References: <20230614134853.1521439-1-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230614134853.1521439-1-willy@infradead.org> X-Rspamd-Queue-Id: E62A280004 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: mmgngahccsfres8iraic8919rua6bni8 X-HE-Tag: 1686767908-602310 X-HE-Meta: U2FsdGVkX1/bKYbigC7GDXo8P/ipTyoH8xasC7hXFFiN+mBN+IDLbiEhZdb3GaBO3TlSBR7qnFfE6M55dg4hRv6rb9qkX74DtfLZY66rpjlEEaUaAlGl37R1T6WUzK+WT0KLImA7+RXunGiOSYYySfdrXolJ2HjtMrI6l7d5bOV97g0fFNUzqMY3EAdvym3+BK/DmqHr5BDY7Jn+hcCxV7lSfe0KDlYFyoFGTeScMgWb4cNQ1r0FKqDdVRW9/0+G5n4whdPaTlTUr5/4azwQmHTeemreDpOvtPf7RTFwn0R8dDaizTRF6UId4x9nvgADTdgG0uLRRWX2kWhplfwOkq+B3CGsQrG7U3eTNEVjkQgo+FyJxuA5tnmrKFB1BN/0jUVugYjM+Wb5r40p8Vw1owo+9kUwQrZTVqAOmhNFuK/JFLoHyl3i6Gbf3vJWvI1oYPk9QT3RV4fgQJq673AwfigXLAXlFDXJzT59jl1/a6LFeL/49vgYPV0I397es7U8Fvz4ifLrm3Gl2DA+GFVB0KWZDBQyxvDqqqqJc/qxRfqaE1+UnPQTW+BHFuWmFKpLoc4pV5f6i6ZrwtwtieyAArGiUDxvXgCfAHfU8crkmXvjTYvc9J++4/+LodUaZ+zkpL3mSzXHe99IGS7un7+HH6sxGPQYme0zgP/cRxSl/blgPTDyMJZw7oRFJFbZ9dtH6qzkdP/0VsQYmqF2L3gQjW9MuffoKa3Wz/Z/1IUqksqgdlYIBCDoJjhw2SBET9FL8WFq7WkREWpPOxU89z/9QD5iG9AEzHbw7WfbLGUh3mJ0h48BBlWy/OoAQVevj6FfDuC/WC0V7KJHKwVFqFcMzIdEiB7QFbBz96kvLno17QAnhhhBNtyslNBMo7wfCVZXT9WMgO7q7rjpLvXlC1b3ItEBl58TCIbs5a4QuWYU1+fqsZCHKD8otQz/srmyxF04TqPvHvZqCFcEKauu+72 znFVhG4H FqnlA8gqwAW2BsKrJZ9I0GzETz8X7EvAcpYXOVZ1CgUTkbfgwL4QlIf2QW8OikNxmGu6vBWpRUy7s3G6DfQ3k0BzRIfm0kL/MzxOOM54ImL7gCZZVjyhqJqzLNQf7mwoi23k6x4/sdIQbhuUNd18e5h84+y2d3GIZLS7beYmVebWqBdy34JI0svXX6aYwsn1M+iKZcFM+R9Ir+6DVX4tAmknj8ojcZtTiMqcNeklmPc6lw+Vv7j6zQ4tdeW8QX4arRaBWamJAv4TMkkE4QJoetlrCxdzpXuNV6sBp2YaYdoINuKvOpzI6Ze2m5Yjn+vWQCaWXmHAVUOhJDoaJk2aghfQ0z/KZ8NOvWdSNlV/dD+3ubpruow0omtPWpPAxKJEmLoBwmtSdPiieOlsIVJXaQJsUNXjXUhgyu3sqrXQmMrctz+CM5a7AxYQTafKoa4iwSe0g69qwVhBrGmDzr2ry8cd0ClrKISfbdhPgKF+U8ChvUDE2eM/u2+CEVZK6OW/hf2RFS2Qw9qB2h7l81tm4o01pLNUt1kx8U9RM 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: Hi Matthew, kernel test robot noticed the following build warnings: [auto build test WARNING on akpm-mm/mm-everything] [also build test WARNING on linus/master v6.4-rc6] [cannot apply to next-20230614] [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/Matthew-Wilcox-Oracle/highmem-Add-memcpy_from_folio/20230614-215150 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20230614134853.1521439-1-willy%40infradead.org patch subject: [PATCH 1/2] highmem: Add memcpy_to_folio() config: hexagon-randconfig-r015-20230614 (https://download.01.org/0day-ci/archive/20230615/202306150241.f2mNsWXE-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce (this is a W=1 build): mkdir -p ~/bin wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git remote add akpm-mm https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git git fetch akpm-mm mm-everything git checkout akpm-mm/mm-everything b4 shazam https://lore.kernel.org/r/20230614134853.1521439-1-willy@infradead.org # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=hexagon olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/nvme/target/ 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/202306150241.f2mNsWXE-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from drivers/nvme/target/fc.c:8: In file included from include/linux/blk-mq.h:5: In file included from include/linux/blkdev.h:9: In file included from include/linux/blk_types.h:10: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/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/hexagon/include/asm/io.h:334: 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 drivers/nvme/target/fc.c:8: In file included from include/linux/blk-mq.h:5: In file included from include/linux/blkdev.h:9: In file included from include/linux/blk_types.h:10: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/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/hexagon/include/asm/io.h:334: 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 drivers/nvme/target/fc.c:8: In file included from include/linux/blk-mq.h:5: In file included from include/linux/blkdev.h:9: In file included from include/linux/blk_types.h:10: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/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/hexagon/include/asm/io.h:334: 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); | ~~~~~~~~~~ ^ In file included from drivers/nvme/target/fc.c:8: In file included from include/linux/blk-mq.h:5: In file included from include/linux/blkdev.h:9: In file included from include/linux/blk_types.h:10: In file included from include/linux/bvec.h:10: >> include/linux/highmem.h:525:7: warning: comparison of distinct pointer types ('typeof (len) *' (aka 'unsigned int *') and 'typeof ((1UL << 12) - ((unsigned long)(offset) & ~(~((1 << 12) - 1)))) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types] 525 | n = min(len, PAGE_SIZE - offset_in_page(offset)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:67:19: note: expanded from macro 'min' 67 | #define min(x, y) __careful_cmp(x, y, <) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp' 36 | __builtin_choose_expr(__safe_cmp(x, y), \ | ^~~~~~~~~~~~~~~~ include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp' 26 | (__typecheck(x, y) && __no_side_effects(x, y)) | ^~~~~~~~~~~~~~~~~ include/linux/minmax.h:20:28: note: expanded from macro '__typecheck' 20 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ In file included from drivers/nvme/target/fc.c:8: In file included from include/linux/blk-mq.h:5: In file included from include/linux/blkdev.h:9: In file included from include/linux/blk_types.h:10: In file included from include/linux/bvec.h:10: >> include/linux/highmem.h:534:7: warning: comparison of distinct pointer types ('typeof (len) *' (aka 'unsigned int *') and 'typeof ((1UL << 12)) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types] 534 | n = min(len, PAGE_SIZE); | ^~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:67:19: note: expanded from macro 'min' 67 | #define min(x, y) __careful_cmp(x, y, <) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp' 36 | __builtin_choose_expr(__safe_cmp(x, y), \ | ^~~~~~~~~~~~~~~~ include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp' 26 | (__typecheck(x, y) && __no_side_effects(x, y)) | ^~~~~~~~~~~~~~~~~ include/linux/minmax.h:20:28: note: expanded from macro '__typecheck' 20 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ drivers/nvme/target/fc.c:176:1: warning: unused function 'nvmet_fc_iodnum' [-Wunused-function] 176 | nvmet_fc_iodnum(struct nvmet_fc_ls_iod *iodptr) | ^ drivers/nvme/target/fc.c:182:1: warning: unused function 'nvmet_fc_fodnum' [-Wunused-function] 182 | nvmet_fc_fodnum(struct nvmet_fc_fcp_iod *fodptr) | ^ 10 warnings generated. -- In file included from drivers/nvme/target/loop.c:7: In file included from include/linux/scatterlist.h:9: In file included from arch/hexagon/include/asm/io.h:334: 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 drivers/nvme/target/loop.c:7: In file included from include/linux/scatterlist.h:9: In file included from arch/hexagon/include/asm/io.h:334: 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 drivers/nvme/target/loop.c:7: In file included from include/linux/scatterlist.h:9: In file included from arch/hexagon/include/asm/io.h:334: 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); | ~~~~~~~~~~ ^ In file included from drivers/nvme/target/loop.c:8: In file included from include/linux/blk-mq.h:5: In file included from include/linux/blkdev.h:9: In file included from include/linux/blk_types.h:10: In file included from include/linux/bvec.h:10: >> include/linux/highmem.h:525:7: warning: comparison of distinct pointer types ('typeof (len) *' (aka 'unsigned int *') and 'typeof ((1UL << 12) - ((unsigned long)(offset) & ~(~((1 << 12) - 1)))) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types] 525 | n = min(len, PAGE_SIZE - offset_in_page(offset)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:67:19: note: expanded from macro 'min' 67 | #define min(x, y) __careful_cmp(x, y, <) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp' 36 | __builtin_choose_expr(__safe_cmp(x, y), \ | ^~~~~~~~~~~~~~~~ include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp' 26 | (__typecheck(x, y) && __no_side_effects(x, y)) | ^~~~~~~~~~~~~~~~~ include/linux/minmax.h:20:28: note: expanded from macro '__typecheck' 20 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ In file included from drivers/nvme/target/loop.c:8: In file included from include/linux/blk-mq.h:5: In file included from include/linux/blkdev.h:9: In file included from include/linux/blk_types.h:10: In file included from include/linux/bvec.h:10: >> include/linux/highmem.h:534:7: warning: comparison of distinct pointer types ('typeof (len) *' (aka 'unsigned int *') and 'typeof ((1UL << 12)) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types] 534 | n = min(len, PAGE_SIZE); | ^~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:67:19: note: expanded from macro 'min' 67 | #define min(x, y) __careful_cmp(x, y, <) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp' 36 | __builtin_choose_expr(__safe_cmp(x, y), \ | ^~~~~~~~~~~~~~~~ include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp' 26 | (__typecheck(x, y) && __no_side_effects(x, y)) | ^~~~~~~~~~~~~~~~~ include/linux/minmax.h:20:28: note: expanded from macro '__typecheck' 20 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ 8 warnings generated. vim +525 include/linux/highmem.h 509 510 /** 511 * memcpy_to_folio - Copy a range of bytes to a folio 512 * @folio: The folio to write to. 513 * @offset: The first byte in the folio to store to. 514 * @from: The memory to copy from. 515 * @len: The number of bytes to copy. 516 */ 517 static inline void memcpy_to_folio(struct folio *folio, size_t offset, 518 const char *from, size_t len) 519 { 520 size_t n = len; 521 522 VM_BUG_ON(offset + len > folio_size(folio)); 523 524 if (folio_test_highmem(folio)) > 525 n = min(len, PAGE_SIZE - offset_in_page(offset)); 526 for (;;) { 527 char *to = kmap_local_folio(folio, offset); 528 memcpy(to, from, n); 529 kunmap_local(to); 530 if (!folio_test_highmem(folio) || n == len) 531 break; 532 offset += n; 533 len -= n; > 534 n = min(len, PAGE_SIZE); 535 } 536 flush_dcache_folio(folio); 537 } 538 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki