From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (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 CD8CC32E68E; Tue, 21 Oct 2025 11:39:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761046773; cv=none; b=GmvVLNVZGmdReziCnZ7wwzX25Cjizz6QfEAJnes0U35Fe7/1mvCWNDlxvhd1SB06aeEaabRtY+SAD5Db4uyWiJZnTKzXjczAenUOyS5kSlPCyzmrm6mo8KF0Qfn65fGgowOS+rr+YQ3pNGGM8N5t3YWE06oWuwhCFZjGdQrAWQE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761046773; c=relaxed/simple; bh=xz/tDN+yPZVBPbH2r+TgaMdFHP9mm8qxk6gUQVmMafY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uNbi0/xMyNX7MEoGVOvZ9ENLPn6r+0W9KNRw8/aVXfQia8ljomp+Sht0Tgi7lWP3Glcch5IPskeTJmvRvkgAiKk92xv23fv75uoLSngpnuLTWSvWWsl5nLIZblTmvQB7ToXWI6L+cglOxdJfo1O+H2hiP2xqaGRlo6g9+pTosJQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=kL9vmEQX; arc=none smtp.client-ip=192.198.163.19 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="kL9vmEQX" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1761046772; x=1792582772; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=xz/tDN+yPZVBPbH2r+TgaMdFHP9mm8qxk6gUQVmMafY=; b=kL9vmEQXVjD8ioe09bBhLt9zxGj7hMrqnbODwSHMHJdPAibTTdm83OLh pBYhLDTn4KNetObG8HDYdY3kzijVmybsu+gU1zV+WbfKPNv/uNm5kQprf y5vYlIlrWjT/qzA6A73BHRsiUc7a9GA91xQtH5LR+EHx0ZzYZ9Zuq+A94 TsBXmnvW9U+CcP1G8XT2p9DnK/U4Tqyeufn1NoM9AOSB3NOG2D03ZSAZt e/xZZGObFVq9KX7WJgppqpzUBxRQsDrpJUmGlCM52HdRu9PtLg3ka/yYL KKEip2Z2GLAArKhD+Qs8lodCsIXfrVCG+3rbNt+DVVWCl0d6i171/C15G g==; X-CSE-ConnectionGUID: CND1X+q0T+SKFoa7feiaBA== X-CSE-MsgGUID: yjBMkFSaS22rhYF1irlWQw== X-IronPort-AV: E=McAfee;i="6800,10657,11586"; a="62200920" X-IronPort-AV: E=Sophos;i="6.19,244,1754982000"; d="scan'208";a="62200920" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Oct 2025 04:39:31 -0700 X-CSE-ConnectionGUID: VfWszDUCQn+u64i4HQ/nHg== X-CSE-MsgGUID: GyUtjuDpR4+bmGSr0f3T0g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,244,1754982000"; d="scan'208";a="183970757" Received: from lkp-server02.sh.intel.com (HELO 66d7546c76b2) ([10.239.97.151]) by fmviesa008.fm.intel.com with ESMTP; 21 Oct 2025 04:39:27 -0700 Received: from kbuild by 66d7546c76b2 with local (Exim 4.96) (envelope-from ) id 1vBAha-000Amr-27; Tue, 21 Oct 2025 11:39:02 +0000 Date: Tue, 21 Oct 2025 19:38:03 +0800 From: kernel test robot To: Aditya Dutt , Jonathan Cameron , David Lechner , Nuno =?iso-8859-1?Q?S=E1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , Frank Zago Cc: oe-kbuild-all@lists.linux.dev, Aditya Dutt , linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH 2/2] iio: position: Add support for ams AS5600 angle sensor Message-ID: <202510211921.F1RPF3gj-lkp@intel.com> References: <20251020201653.86181-3-duttaditya18@gmail.com> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251020201653.86181-3-duttaditya18@gmail.com> Hi Aditya, kernel test robot noticed the following build warnings: [auto build test WARNING on jic23-iio/togreg] [also build test WARNING on robh/for-next linus/master v6.18-rc2 next-20251021] [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/Aditya-Dutt/dt-bindings-iio-position-Add-ams-AS5600-Position-Sensor/20251021-042001 base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg patch link: https://lore.kernel.org/r/20251020201653.86181-3-duttaditya18%40gmail.com patch subject: [PATCH 2/2] iio: position: Add support for ams AS5600 angle sensor config: loongarch-allyesconfig (https://download.01.org/0day-ci/archive/20251021/202510211921.F1RPF3gj-lkp@intel.com/config) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 754ebc6ebb9fb9fbee7aef33478c74ea74949853) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251021/202510211921.F1RPF3gj-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/202510211921.F1RPF3gj-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/iio/position/as5600.c:127:12: warning: implicit conversion from 'long' to 'int' changes value from 4096000000 to -198967296 [-Wconstant-conversion] 127 | *val2 = 4096000000; | ~ ^~~~~~~~~~ 1 warning generated. vim +127 drivers/iio/position/as5600.c 93 94 static int as5600_read_raw(struct iio_dev *indio_dev, 95 struct iio_chan_spec const *chan, 96 int *val, int *val2, long mask) 97 { 98 struct as5600_priv *priv = iio_priv(indio_dev); 99 u16 bitmask; 100 s32 ret; 101 u16 reg; 102 103 switch (mask) { 104 case IIO_CHAN_INFO_RAW: 105 if (chan->channel == 0) { 106 reg = AS5600_REG_RAW_ANGLE; 107 bitmask = AS5600_FIELD_RAW_ANGLE; 108 } else { 109 reg = AS5600_REG_ANGLE; 110 bitmask = AS5600_FIELD_ANGLE; 111 } 112 ret = i2c_smbus_read_word_swapped(priv->client, reg); 113 114 if (ret < 0) 115 return ret; 116 *val = ret & bitmask; 117 118 return IIO_VAL_INT; 119 120 case IIO_CHAN_INFO_SCALE: 121 /* Always 4096 steps, but angle range varies between 122 * 18 and 360 degrees. 123 */ 124 if (chan->channel == 0) { 125 /* Whole angle range = 2*pi / 4096 */ 126 *val = 2 * 3141592; > 127 *val2 = 4096000000; 128 } else { 129 s32 range; 130 131 /* MPOS - ZPOS defines the active angle selection */ 132 /* Partial angle = (range / 4096) * (2*pi / 4096) */ 133 mutex_lock(&priv->lock); 134 range = priv->mpos - priv->zpos; 135 mutex_unlock(&priv->lock); 136 if (range <= 0) 137 range += 4096; 138 139 *val = range * 2 * 314159; 140 *val /= 4096; 141 *val2 = 409600000; 142 } 143 144 return IIO_VAL_FRACTIONAL; 145 146 default: 147 return -EINVAL; 148 } 149 } 150 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki