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 006C5C7EE31 for ; Fri, 27 Jun 2025 08:06:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7F1AA6B00AA; Fri, 27 Jun 2025 04:06:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 778C96B00AB; Fri, 27 Jun 2025 04:06:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6412F6B00AC; Fri, 27 Jun 2025 04:06:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 430826B00AA for ; Fri, 27 Jun 2025 04:06:37 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id B29D01405C8 for ; Fri, 27 Jun 2025 08:06:36 +0000 (UTC) X-FDA: 83600448792.04.113B680 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) by imf12.hostedemail.com (Postfix) with ESMTP id 494D24000C for ; Fri, 27 Jun 2025 08:06:34 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=KNW+FhzM; spf=pass (imf12.hostedemail.com: domain of lkp@intel.com designates 192.198.163.15 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=1751011594; 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: references:dkim-signature; bh=MK/kesdBNTkZsfGV6Avz/CDT1Zwq4t7EHFBYJ/BTPuU=; b=EQ8pLYuTqEXkcy0Ssi1vNXlJ9ELPs4iki9+u2i87PY68++CPRtsNugMRMk6VBcsDMCXAfq qFau/exMdEsyFbqxeTytj7f7V06DDmdP3bhGW7PEtqunbWuEmUGGe53URp8SSbo+6kvBmL CMtUAJGB6YwcHKnIzkD7FMs50xOFbks= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=KNW+FhzM; spf=pass (imf12.hostedemail.com: domain of lkp@intel.com designates 192.198.163.15 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=1751011594; a=rsa-sha256; cv=none; b=sxElCwhG9+Ec046NtFtV1KCtBc3BNUs4cruQQ3p+b1h7HyfoZYmIsIcbEDgcZkcUxnrmLz ThFf8AbZkwMgcgpUR7y1ftS0sgF37ckSJ5Kais3A44BqnEqzHKEwj5NZT5MVRaoQlke40z 1pWQK473QdK5cCPbf93V3vhHfM3dvxY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751011594; x=1782547594; h=date:from:to:cc:subject:message-id:mime-version; bh=Fd/B71Ay1n6YVW8By1kBNB5aLOrWe2WdwbwtZmI38kA=; b=KNW+FhzMWH5iVy/mlgTaq1wyhT0MAG3z5d2y/GQ47ky3k171UZ3Tdh77 ygJRSEsI1M/BIBvH0LMIf3AeUqzEGfpxMBooBdPzxNAGPH40XiU2Pg4Hk g8Pga4yJ/Kox7Z/tDHmb1ivssyBpl2MymAXIw+TyZShcQa9A9x2Ttyv1F yHAgqK/OGFL4pqqo+pQEU3wNzOM4ztwirJWLd54/GUnwy+d2AwMubMcxO LYjXXExe6LcuYFQu1ryuyyJbHI6mqfGW5VVOO6k6Y1rGnWCUEsdDuG2oM N2Nh4XRCh7eyZOT6Ql9KJ2zNxV11tu+yaIO3NCwPrCd1gDX8rgwShz3xJ A==; X-CSE-ConnectionGUID: DAyy6uK0SaGl/yLsAS293g== X-CSE-MsgGUID: 2qbKnj0iR/iCTdIF2OTEyA== X-IronPort-AV: E=McAfee;i="6800,10657,11476"; a="53467788" X-IronPort-AV: E=Sophos;i="6.16,270,1744095600"; d="scan'208";a="53467788" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jun 2025 01:06:33 -0700 X-CSE-ConnectionGUID: F3t9TbshTvixij/xrIJ3mQ== X-CSE-MsgGUID: uF8MnP8ZQCi2tufOsfTPmQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,270,1744095600"; d="scan'208";a="176421304" Received: from igk-lkp-server01.igk.intel.com (HELO e588e990b675) ([10.91.175.65]) by fmviesa002.fm.intel.com with ESMTP; 27 Jun 2025 01:06:31 -0700 Received: from kbuild by e588e990b675 with local (Exim 4.96) (envelope-from ) id 1uV46P-0000dX-1F; Fri, 27 Jun 2025 08:06:29 +0000 Date: Fri, 27 Jun 2025 10:05:30 +0200 From: kernel test robot To: Huang Ying Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List Subject: kernel/resource.c:1838:43: warning: implicit conversion from 'unsigned long long' to 'resource_size_t' (aka 'unsigned int') changes value from 68719476735 to 4294967295 Message-ID: <202506271014.vuMnyMSa-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam11 X-Rspam-User: X-Rspamd-Queue-Id: 494D24000C X-Stat-Signature: cg568bqecuhmwoteru1g35feyoe8ciyk X-HE-Tag: 1751011594-54301 X-HE-Meta: U2FsdGVkX19fI9Yc0wg7jd/CHo5msR5KgTCeKgcDAz2Dv7cNrXyh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iBxDLz28b5H1Ds3oyllrAlBZ/Gi7hSykgqPGtAIqpEnV/vn+jJLPe18ZTKmIIJxiALVZI4mQxGXyXkN3rHErLTelRRuxSXXar4zOojYB5eHcKoG4KUTTHoft2rJTYCYCi0icuziB+UeBkhRrHKom5qFkRBbO9EAMcEJi/u4A3hCBXIHl2g+tWLz6Fku9/rxvufBIFcugmlHt4fyvSGHf8C3K69MI6UOA8El0EkUU/FxNlieL87+hzMAwhp+g77kem/jcg== 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 6f2a71a99ebd5dfaa7948a2e9c59eae94b741bd8 commit: 99185c10d5d9214d0d0c8b7866660203e344ee3b resource, kunit: add test case for region_intersects() date: 9 months ago config: arm-randconfig-2006-20250627 (https://download.01.org/0day-ci/archive/20250627/202506271014.vuMnyMSa-lkp@intel.com/config) compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250627/202506271014.vuMnyMSa-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/202506271014.vuMnyMSa-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from kernel/resource.c:21: In file included from include/linux/pseudo_fs.h:4: In file included from include/linux/fs_context.h:14: In file included from include/linux/security.h:33: In file included from include/linux/mm.h:2198: include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ >> kernel/resource.c:1838:43: warning: implicit conversion from 'unsigned long long' to 'resource_size_t' (aka 'unsigned int') changes value from 68719476735 to 4294967295 [-Wconstant-conversion] 1838 | end = min_t(resource_size_t, base->end, MAX_PHYS_ADDR); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ kernel/resource.c:1827:52: note: expanded from macro 'MAX_PHYS_ADDR' 1827 | #define MAX_PHYS_ADDR ((1ULL << MAX_PHYSMEM_BITS) - 1) | ^ include/linux/minmax.h:213:52: note: expanded from macro 'min_t' 213 | #define min_t(type, x, y) __cmp_once(min, type, x, y) | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ include/linux/minmax.h:96:33: note: expanded from macro '__cmp_once' 96 | __cmp_once_unique(op, type, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:93:31: note: expanded from macro '__cmp_once_unique' 93 | ({ type ux = (x); type uy = (y); __cmp(op, ux, uy); }) | ~~ ^ kernel/resource.c:1855:45: warning: implicit conversion from 'unsigned long long' to 'resource_size_t' (aka 'unsigned int') changes value from 68719476735 to 4294967295 [-Wconstant-conversion] 1855 | addr <= min_t(resource_size_t, base->end, MAX_PHYS_ADDR); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ kernel/resource.c:1827:52: note: expanded from macro 'MAX_PHYS_ADDR' 1827 | #define MAX_PHYS_ADDR ((1ULL << MAX_PHYSMEM_BITS) - 1) | ^ include/linux/minmax.h:213:52: note: expanded from macro 'min_t' 213 | #define min_t(type, x, y) __cmp_once(min, type, x, y) | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ include/linux/minmax.h:96:33: note: expanded from macro '__cmp_once' 96 | __cmp_once_unique(op, type, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:93:31: note: expanded from macro '__cmp_once_unique' 93 | ({ type ux = (x); type uy = (y); __cmp(op, ux, uy); }) | ~~ ^ 3 warnings generated. vim +1838 kernel/resource.c 1831 1832 static resource_size_t gfr_start(struct resource *base, resource_size_t size, 1833 resource_size_t align, unsigned long flags) 1834 { 1835 if (flags & GFR_DESCENDING) { 1836 resource_size_t end; 1837 > 1838 end = min_t(resource_size_t, base->end, MAX_PHYS_ADDR); 1839 return end - size + 1; 1840 } 1841 1842 return ALIGN(max(base->start, align), align); 1843 } 1844 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki