Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1456483rdb; Sat, 18 Nov 2023 18:20:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGOnbmZ8hxr/qe9lSMwDGKdpl4jtkKRTb7+BZBganWSPgPlNK5bb8qY5MvnbjYMTF9y36E6 X-Received: by 2002:a0d:db15:0:b0:59b:14ca:4316 with SMTP id d21-20020a0ddb15000000b0059b14ca4316mr3481093ywe.43.1700360411275; Sat, 18 Nov 2023 18:20:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700360411; cv=none; d=google.com; s=arc-20160816; b=nmuoIJ8IYtCP1RHpT4rriOiDXfrrZQJ/1vU+Q8ETkL/CD47HWtwNRkdEl3KVCGAvPh cF93jVCCI5H7F5s2SyPpLjqk89ccKN8Zgvg6gY3idHFh3d+dyeT1BDPqrYZadE+iTP+s +a/ubz82wx1k2CcqEpBRMwGABtc7EXi31PwAAUUE7DDGlsympeYNoWClnCgzY2yc7M/W EFXt7Haw2gxTfcQvp0y7Nf7E+7CYgVY+sl/dt7uclpn8WBW5Jorr66ij+oOnFqMicRsY 43c7E6czb5OCOOG6206f/a8+Im8L9qUaUGHQUvVIOnERxpc+UcvQDw59LAzxKCWBcQEp hs2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OCaB/M6wlc8SC6vkliKdZP3BADCDoL3AvC+nL2kzVDA=; fh=9aS+5PcmIw3WatNHIJYgdADUIu4MwrhCl6fkQMchW78=; b=kmPEOFpAoN0sVe2dvrnqmaiZW0zNEnp5s5jJnW22HhwSkfHw2+BdYJABUWE5TSCIG3 sbWFa/cDTjD630G76N4crUeXTVET5NnqqJfMl5LsztWpkiy9vp9gfT3qcxR0hZty+i6H OghgaedC3yxKTBhgtl7uZi5uCQ2HYI7PEZtGT7HwDGiYsF9mjeD2E3LESeVBUNV/u1zJ vKeSU5iwenz5H/EySR383AHsDplPsXq6qQUt/McMEbD+RUtCe0xyDRtcODdncyz9HjGm AWUSgI5dXXobq22SkVs11HREcSi6O64bSRLreslVf82d3WroQPGqg1wihZOqMh4LEHvo 2vUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=G7mlOkGb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id z5-20020a056a00240500b006933caa6f03si5434361pfh.165.2023.11.18.18.20.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 18:20:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=G7mlOkGb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 4D8908054B42; Sat, 18 Nov 2023 18:20:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229776AbjKSCI6 (ORCPT + 99 others); Sat, 18 Nov 2023 21:08:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbjKSCI5 (ORCPT ); Sat, 18 Nov 2023 21:08:57 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5397B9; Sat, 18 Nov 2023 18:08:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700359734; x=1731895734; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=iL57WeLHJ6iHCTgU+X14uMPm3VyxY0+gO4K+uTWc0tA=; b=G7mlOkGbS17qxvfDq4N4O9BFhf2WeiHglcaO48pDwDkkwHQStaZ2nRtJ nhnjFXirgkUwH8daSaUSMO01JGv8uYRS2fT6+6TDTWVPhO+fUmYwdnA6+ /7UEiLDpjUypDypbG50GEXFyX8gKuaWyHiKAa7dnx1vZSG202cT0k4Ggj rINJM8LI2JcCzrGDRan4ivCvkFajlUZM6NZxabGgwQvTnyDpgdwVGiy7z 55Tkzqrdk3VBcwrMO9SmP6FdVIveeYrKEJS48meMfZMiHwSuM68dpM/FU /4QaPw+IIi301eOxoi7dBYVyeDXhsEdnC4yQg5KWjzThrnJp5xTjjghSG A==; X-IronPort-AV: E=McAfee;i="6600,9927,10898"; a="381855781" X-IronPort-AV: E=Sophos;i="6.04,209,1695711600"; d="scan'208";a="381855781" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Nov 2023 18:08:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10898"; a="883506687" X-IronPort-AV: E=Sophos;i="6.04,209,1695711600"; d="scan'208";a="883506687" Received: from lkp-server02.sh.intel.com (HELO b8de5498638e) ([10.239.97.151]) by fmsmga002.fm.intel.com with ESMTP; 18 Nov 2023 18:08:50 -0800 Received: from kbuild by b8de5498638e with local (Exim 4.96) (envelope-from ) id 1r4XEt-0004X3-27; Sun, 19 Nov 2023 02:08:47 +0000 Date: Sun, 19 Nov 2023 10:08:01 +0800 From: kernel test robot To: Anshul Dalal , linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Anshul Dalal , Conor Dooley , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , linux-kernel-mentees@lists.linuxfoundation.org, Jonathan Cameron , Shuah Khan Subject: Re: [PATCH 2/2] iio: dac: driver for MCP4821 Message-ID: <202311190944.LgtvolpG-lkp@intel.com> References: <20231117073040.685860-2-anshulusr@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231117073040.685860-2-anshulusr@gmail.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sat, 18 Nov 2023 18:20:07 -0800 (PST) Hi Anshul, 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.7-rc1 next-20231117] [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/Anshul-Dalal/iio-dac-driver-for-MCP4821/20231117-153451 base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg patch link: https://lore.kernel.org/r/20231117073040.685860-2-anshulusr%40gmail.com patch subject: [PATCH 2/2] iio: dac: driver for MCP4821 config: i386-randconfig-061-20231119 (https://download.01.org/0day-ci/archive/20231119/202311190944.LgtvolpG-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231119/202311190944.LgtvolpG-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/202311190944.LgtvolpG-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/iio/dac/mcp4821.c:120:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] write_val @@ got unsigned long @@ drivers/iio/dac/mcp4821.c:120:27: sparse: expected restricted __be16 [usertype] write_val drivers/iio/dac/mcp4821.c:120:27: sparse: got unsigned long >> drivers/iio/dac/mcp4821.c:122:35: sparse: sparse: invalid assignment: |= >> drivers/iio/dac/mcp4821.c:122:35: sparse: left side has type restricted __be16 >> drivers/iio/dac/mcp4821.c:122:35: sparse: right side has type unsigned long >> drivers/iio/dac/mcp4821.c:123:36: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] val @@ got restricted __be16 [usertype] write_val @@ drivers/iio/dac/mcp4821.c:123:36: sparse: expected unsigned short [usertype] val drivers/iio/dac/mcp4821.c:123:36: sparse: got restricted __be16 [usertype] write_val drivers/iio/dac/mcp4821.c: note: in included file (through include/linux/rculist.h, include/linux/pid.h, include/linux/sched.h, ...): include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true vim +120 drivers/iio/dac/mcp4821.c 106 107 static int mcp4821_write_raw(struct iio_dev *indio_dev, 108 struct iio_chan_spec const *chan, int val, 109 int val2, long mask) 110 { 111 struct mcp4821_state *state; 112 __be16 write_val; 113 u8 write_buffer[2]; 114 int ret; 115 bool is_value_valid = val >= 0 && val < BIT(chan->scan_type.realbits) && 116 val2 == 0; 117 if (mask == IIO_CHAN_INFO_RAW && is_value_valid) { 118 state = iio_priv(indio_dev); 119 > 120 write_val = MCP4821_ACTIVE_MODE | val << chan->scan_type.shift; 121 if (chan->channel) > 122 write_val |= MCP4802_SECOND_CHAN; > 123 put_unaligned_be16(write_val, write_buffer); 124 ret = spi_write(state->spi, write_buffer, sizeof(write_buffer)); 125 if (ret) { 126 dev_err(&state->spi->dev, 127 "Failed to write to device: %d", ret); 128 return ret; 129 } 130 131 mutex_lock(&state->lock); 132 state->dac_value[chan->channel] = val; 133 mutex_unlock(&state->lock); 134 return 0; 135 } else { 136 return -EINVAL; 137 } 138 } 139 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki