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 51756C7EE25 for ; Fri, 9 Jun 2023 09:13:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DC3B38E0002; Fri, 9 Jun 2023 05:13:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D748D8E0001; Fri, 9 Jun 2023 05:13:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C632F8E0002; Fri, 9 Jun 2023 05:13:07 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id B57F18E0001 for ; Fri, 9 Jun 2023 05:13:07 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 7F95CA018A for ; Fri, 9 Jun 2023 09:13:07 +0000 (UTC) X-FDA: 80882645214.28.C93B6CE Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by imf07.hostedemail.com (Postfix) with ESMTP id 3C0584001D for ; Fri, 9 Jun 2023 09:13:05 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=QC2zOPAA; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 134.134.136.126 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=1686301985; 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=RRV0+EmB3Bk4zP5itTdjLDEZSwkqndfWyO+JGzTgJlY=; b=Qc+lmhgUDJ7nnYnf6VqMDvFBLBkUbQmzDBbVUwDEI+rUh9GnNKDaEj5WFOcwgrAFM6wYmo NXD3b1IrREWBd2M0pM3gveH9SynmWMl5Tbgpu8kpiMx20BpdIthIzLz4fj7cDzfjPLW0r6 IwX6rskveY3/95Ngm3vA006m22yiiQc= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1686301985; a=rsa-sha256; cv=none; b=jZlX9L0V4uKQYwhyxYEXMDKYrU9Wy6BCxQfx2Mxl5AepevVwAuW4zbsZ0jWAs+zBMPvfgH mTXobekj5hUDOuFWUmI+Rk1gtjO0fGUaNMVtaxmqrN95+ee2zKcmM8NlnvJXwoR84QudWx gMRuloln8ECo5wVh5i5yALLYNzYUSn4= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=QC2zOPAA; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 134.134.136.126 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686301985; x=1717837985; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=YMSJQYLZcFlQidja6+TL7FQW+z4zUcAIo2OjQ8VSXfQ=; b=QC2zOPAAHq8hpkTukE/UBJuqrsfMy9wlu1nTY8del6UTmHOqxeVTvpxe Jo+xFDPafqx6KM5etCMnRFQc/Y9CvuSXQAKfsNfyUnpP53rOV6nSdmuQ3 VtESmBSvIJs64S+R8uLTYrUeBomaQkoaI5ycA9P1hfUZs/3IiTeihBASE QOYoNmLTlp6cmRP9ER+8hQ+5zGExZkTXbdf0OXYQOomOJUrQtX7pQCIh+ zo87S8vlP1rxLk6cJEmt7NzR33XX/cLBIx56Laai5Dm4mxkQjIWgsSuw2 uHoUI//tz5+tPUKTVspr3rI9evUDurDF8URAWv6FciMSCHATbHsymoSSt w==; X-IronPort-AV: E=McAfee;i="6600,9927,10735"; a="342231071" X-IronPort-AV: E=Sophos;i="6.00,228,1681196400"; d="scan'208";a="342231071" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2023 02:13:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10735"; a="1040434678" X-IronPort-AV: E=Sophos;i="6.00,228,1681196400"; d="scan'208";a="1040434678" Received: from lkp-server01.sh.intel.com (HELO 15ab08e44a81) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 09 Jun 2023 02:13:00 -0700 Received: from kbuild by 15ab08e44a81 with local (Exim 4.96) (envelope-from ) id 1q7YB1-0008si-1n; Fri, 09 Jun 2023 09:12:59 +0000 Date: Fri, 9 Jun 2023 17:12:43 +0800 From: kernel test robot To: Lu Hongfei , Andrew Morton , Uladzislau Rezki , Christoph Hellwig , Lorenzo Stoakes , open list Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , opensource.kernel@vivo.com, luhongfei@vivo.com Subject: Re: [PATCH] mm/vmalloc: Replace the ternary conditional operator with min() Message-ID: <202306091704.nUl4tysX-lkp@intel.com> References: <20230609061309.42453-1-luhongfei@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230609061309.42453-1-luhongfei@vivo.com> X-Rspamd-Queue-Id: 3C0584001D X-Rspam-User: X-Stat-Signature: kdrwcmmiyc8eqoupombfjedpd5qeoi64 X-Rspamd-Server: rspam03 X-HE-Tag: 1686301984-790197 X-HE-Meta: U2FsdGVkX18fhZj5ZPzNCkNRw09Cq+M+et510Av3z88pSIedqkFsxFnpXmrjVlT/aJC/VVDlcHT4OL4gUB36+yOMIlsv2AoXQ3wR0BGlP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sFl6kjIHmkMOrRzBLWBg717iV4+cX5wPK92cVU8rEbRSliw4QIHfmasJ+39ee6pPq/U6ciIcpwKDuMjec32Rln+rEcDWeG/4gxWQVHAuoVZemLSHIzicauw9JCu7E4miG89XpStguebGbyyPHcbVj3fpPDpT2GnduvYwPOczy4GKQ7A6+jNbE1Ok/SDQQuDhEBaW8mL06ioXOIo25k260JMo6/Ffuqkk8OjelhqWiy2w== 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 Lu, kernel test robot noticed the following build warnings: [auto build test WARNING on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Lu-Hongfei/mm-vmalloc-Replace-the-ternary-conditional-operator-with-min/20230609-141417 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20230609061309.42453-1-luhongfei%40vivo.com patch subject: [PATCH] mm/vmalloc: Replace the ternary conditional operator with min() config: arc-randconfig-s032-20230609 (https://download.01.org/0day-ci/archive/20230609/202306091704.nUl4tysX-lkp@intel.com/config) compiler: arc-elf-gcc (GCC) 12.3.0 reproduce: mkdir -p ~/bin wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://github.com/intel-lab-lkp/linux/commit/a85ea29b355934c588aeb97faf6846b76d512a6d git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Lu-Hongfei/mm-vmalloc-Replace-the-ternary-conditional-operator-with-min/20230609-141417 git checkout a85ea29b355934c588aeb97faf6846b76d512a6d # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arc SHELL=/bin/bash 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/202306091704.nUl4tysX-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> mm/vmalloc.c:3574:23: sparse: sparse: incompatible types in comparison expression (different type sizes): >> mm/vmalloc.c:3574:23: sparse: unsigned int * >> mm/vmalloc.c:3574:23: sparse: unsigned long * mm/vmalloc.c:4291:13: sparse: sparse: context imbalance in 's_start' - wrong count at exit mm/vmalloc.c:4306:13: sparse: sparse: context imbalance in 's_stop' - wrong count at exit vim +3574 mm/vmalloc.c 3561 3562 /* 3563 * Atomically zero bytes in the iterator. 3564 * 3565 * Returns the number of zeroed bytes. 3566 */ 3567 static size_t zero_iter(struct iov_iter *iter, size_t count) 3568 { 3569 size_t remains = count; 3570 3571 while (remains > 0) { 3572 size_t num, copied; 3573 > 3574 num = min(remains, PAGE_SIZE); 3575 copied = copy_page_to_iter_nofault(ZERO_PAGE(0), 0, num, iter); 3576 remains -= copied; 3577 3578 if (copied < num) 3579 break; 3580 } 3581 3582 return count - remains; 3583 } 3584 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki