From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6BC691D54F for ; Thu, 30 Nov 2023 06:12:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="cptWe97x" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701324761; x=1732860761; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=u0lzqFNGH1pQbtyiichPSEQ3Abw+poW5TWWcQsVa+vs=; b=cptWe97xzjRHT8sVMOy8ukkVnDFlRMrC/UE1Rqh1uxiyIhq/BUMCt6Q8 uDN4GhZEXDbV6tK0R1PsHIELHlrPgDQPKcG4c26Wk7igUAvh8SzaeODd3 D8VPVZgJgXuRDOR3AaOGDC8qdogP7jVFb1KmW8AWXw8jf/2ARmsyeZqac 4b5JRiPvIV2exPXNdupHGg4je5JQcxv+oHhtJKwghsLq3hqnvDDaNdZy7 IlnHeYJSL8s+TGAKGZ1lsFzHZ14Ah6rOkTnjRU8/RV8rs9NGs/qQDe93U lBuP5s/1mnWVukr5Xz8mLJx/HWh2ookMN0JxI7yMAyG7KyCdgVqHtjhBx A==; X-IronPort-AV: E=McAfee;i="6600,9927,10909"; a="378298464" X-IronPort-AV: E=Sophos;i="6.04,237,1695711600"; d="scan'208";a="378298464" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2023 22:12:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10909"; a="745516648" X-IronPort-AV: E=Sophos;i="6.04,237,1695711600"; d="scan'208";a="745516648" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 29 Nov 2023 22:12:28 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1r8aHh-0001QQ-30; Thu, 30 Nov 2023 06:12:25 +0000 Date: Thu, 30 Nov 2023 14:11:28 +0800 From: kernel test robot To: Robin Murphy , Joerg Roedel , Christoph Hellwig Cc: oe-kbuild-all@lists.linux.dev, Vineet Gupta , Russell King , Catalin Marinas , Will Deacon , Huacai Chen , WANG Xuerui , Thomas Bogendoerfer , Paul Walmsley , Palmer Dabbelt , Albert Ou , Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Suravee Suthikulpanit , David Woodhouse , Lu Baolu , Niklas Schnelle , Matthew Rosato , Gerald Schaefer , Jean-Philippe Brucker , Rob Herring , Frank Rowand , Marek Szyprowski , Jason Gunthorpe Subject: Re: [PATCH 4/7] dma-mapping: Add helpers for dma_range_map bounds Message-ID: <202311301330.dGAhHx17-lkp@intel.com> References: Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi Robin, kernel test robot noticed the following build warnings: [auto build test WARNING on rafael-pm/linux-next] [also build test WARNING on rafael-pm/acpi-bus linus/master rafael-pm/devprop v6.7-rc3 next-20231129] [cannot apply to joro-iommu/next] [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/Robin-Murphy/OF-Simplify-DMA-range-calculations/20231130-024624 base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next patch link: https://lore.kernel.org/r/b6626985d97ddc33a23b4b9fafa881b35001547e.1701268753.git.robin.murphy%40arm.com patch subject: [PATCH 4/7] dma-mapping: Add helpers for dma_range_map bounds config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20231130/202311301330.dGAhHx17-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231130/202311301330.dGAhHx17-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/202311301330.dGAhHx17-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/thread_info.h:12, from include/asm-generic/preempt.h:5, from ./arch/arm/include/generated/asm/preempt.h:1, from include/linux/preempt.h:79, from include/linux/spinlock.h:56, from include/linux/mmzone.h:8, from include/linux/gfp.h:7, from include/linux/mm.h:7, from include/linux/memblock.h:12, from kernel/dma/mapping.c:8: include/linux/dma-direct.h: In function 'dma_range_map_min': >> include/linux/limits.h:25:25: warning: conversion from 'long long unsigned int' to 'dma_addr_t' {aka 'unsigned int'} changes value from '18446744073709551615' to '4294967295' [-Woverflow] 25 | #define U64_MAX ((u64)~0ULL) | ^ include/linux/dma-direct.h:54:26: note: in expansion of macro 'U64_MAX' 54 | dma_addr_t ret = U64_MAX; | ^~~~~~~ vim +25 include/linux/limits.h 3c9d017cc283df Andy Shevchenko 2023-08-04 14 54d50897d544c8 Masahiro Yamada 2019-03-07 15 #define U8_MAX ((u8)~0U) 54d50897d544c8 Masahiro Yamada 2019-03-07 16 #define S8_MAX ((s8)(U8_MAX >> 1)) 54d50897d544c8 Masahiro Yamada 2019-03-07 17 #define S8_MIN ((s8)(-S8_MAX - 1)) 54d50897d544c8 Masahiro Yamada 2019-03-07 18 #define U16_MAX ((u16)~0U) 54d50897d544c8 Masahiro Yamada 2019-03-07 19 #define S16_MAX ((s16)(U16_MAX >> 1)) 54d50897d544c8 Masahiro Yamada 2019-03-07 20 #define S16_MIN ((s16)(-S16_MAX - 1)) 54d50897d544c8 Masahiro Yamada 2019-03-07 21 #define U32_MAX ((u32)~0U) 3f50f132d8400e John Fastabend 2020-03-30 22 #define U32_MIN ((u32)0) 54d50897d544c8 Masahiro Yamada 2019-03-07 23 #define S32_MAX ((s32)(U32_MAX >> 1)) 54d50897d544c8 Masahiro Yamada 2019-03-07 24 #define S32_MIN ((s32)(-S32_MAX - 1)) 54d50897d544c8 Masahiro Yamada 2019-03-07 @25 #define U64_MAX ((u64)~0ULL) 54d50897d544c8 Masahiro Yamada 2019-03-07 26 #define S64_MAX ((s64)(U64_MAX >> 1)) 54d50897d544c8 Masahiro Yamada 2019-03-07 27 #define S64_MIN ((s64)(-S64_MAX - 1)) 54d50897d544c8 Masahiro Yamada 2019-03-07 28 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki