Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp553540lqr; Wed, 5 Jun 2024 13:51:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUbwWavjuh+7ARuvFXYCVw0fX4R2IDuBajPYmambE74b226tCls9CQLzbJxRHnZhlspcDIPoi+TRDB1Hh2CRlRJOMP9PGlm748dg7Pfug== X-Google-Smtp-Source: AGHT+IGyl5HY6AJR1X4Z4m+GUCULjaxtid8vXYwAL4WJeSR5VXrVB4Su95AxeOrDy3YkxQlVTNSF X-Received: by 2002:a05:6870:8995:b0:24f:eada:e23 with SMTP id 586e51a60fabf-251228b3b03mr4033481fac.41.1717620682701; Wed, 05 Jun 2024 13:51:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717620682; cv=pass; d=google.com; s=arc-20160816; b=c9cEGevB1DlgY2agESEoUa+zkHex54l98tGtS4ExoaZzjajXg1xhm3EuI4ANFIjem2 XeBquuUkIUAbQSDtfUwuFQ8BBokcAnzDOOo5+VoAqOa/J8Nq7jeKG38spOxs21ZO9DJR rBtqonlW7Vv57mjBD0CSji8sctIDBQA7/2cAWl3eLrddrG0luwOCLgBq+62B685JOZi7 y7VuekECrs6ms3KQ/JGkLw0x/TQ8j3ztCeYy9HmgEs2+l7mCJgjd8ToVWWGo4+voz2a+ gqRPW8PaUn79EdZ7tbU9gjK9VCF+Ua0LxdwaTAuxxmkrrA8Sm/UM7ORDUkhR+FpP+JJL O2/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UgCL1XTzNGQwgxSkpNQj6Z+VRyGfInc8JTjifOt+slw=; fh=cQtRjGlqx20u/vE24h+cKg7K/559U2bPi2roKu75G8k=; b=CUuqWf4q7Oju003EHhD0ERuJPLxjB5qL/rMvYS6u93c0ndxlp9/Gy9b2DOYKvAsZgY 7GJ7XRZ53PbrTzO+rcB+9sgAyaWHAPJOrmpmdI6gO7Fz2pCzFGSyaDajP7l1xb1RTxAE vlKyo11ib77PS5cL3KIkhdwG8467WVcsNnZEqbCT3u1CGMoP59JGZ7Ku3TUO6rr4R+vs nMCOJiTMYAfOb31n8SMRtcTvkWi3zbhNkb19jd9jEgV48RBDYXhviU++AAO67Y/YSstH qk6s4q9H6PWJxzyj1oLSEgEUmmbtJHZd/25AbcV9flMSlzTC0SR9MM0Ethpiaxa+jsSu DcMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ox1skVRN; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-203199-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203199-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43ff259bd5csi12181431cf.564.2024.06.05.13.51.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 13:51:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203199-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ox1skVRN; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-203199-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203199-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5F0071C214DC for ; Wed, 5 Jun 2024 20:51:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 49F8E15F3E1; Wed, 5 Jun 2024 20:51:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Ox1skVRN" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (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 393DF139D00; Wed, 5 Jun 2024 20:51:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717620674; cv=none; b=USZOqsh6iuNxptNPVxX/iFGKpI+oAa+uXT/x3l3C4qT4Anl4TqJAh+ntqNQ1sIND8cW0l9P4gmmZNN7UUh7FnMeiv7SCxr50PPbWeDD7Oc9cum4+JbGl27d8Fn0aNokL5BIsxBJSmlZYGx4v8CaFqJaZHE/4/uo1U+VXMSH0jtQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717620674; c=relaxed/simple; bh=YbTwfNApTMNIiy0vIhw2dAIKkM6NP0Ye8Tt8hdNNo4E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JYs/dpA51zf55uxC0N8xBLWR3/Vh7AJbqpS1nVfRLzpYi55WkYddcoOWb7IDsjnxTZoXinJfmtP5NowS8ugeuhW671SRKDAnD0J2/d7r7gv/cGZ0Znahv/qI++MVCXBaecTOPYU7O7YEto/N3rzEhL8Bx3jduOLnHURKgRErkGM= 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=Ox1skVRN; arc=none smtp.client-ip=198.175.65.17 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717620671; x=1749156671; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=YbTwfNApTMNIiy0vIhw2dAIKkM6NP0Ye8Tt8hdNNo4E=; b=Ox1skVRNzVcebzlnMNwlxfYvYfUe2MgSbuz+Mt36u/ZWDEO52sLp4LJK QbTH8UpVslH2rmfhonvbFgF+vT2U+W0weAD5uJWLdLw3tknZ2x+bFOrYj BJOZi/t+e3wA1jl5c0BZ5p/wfKV/EHjvFmpEewVgX3TDGHCIH8QAmprJ1 KB2ek7FFozU6hB0eOtXO0ovfmVEwuMTITcExGfmn5nIs/xrA7v0HZH5qp kaU807FFBznmnkPRUwwY9osuCbwK44eBDj8Ot6z3JD/pvdeE46DVavC+3 kS2e/Tk18MyYeftuvC/WEZ5MYfP6IRGwxhfCJBCdshkvExLeeJZ9P9SBj Q==; X-CSE-ConnectionGUID: wEgyKadyQ4aUD300HaI+0A== X-CSE-MsgGUID: J7oaKjwJTxmFXQRHUzjmew== X-IronPort-AV: E=McAfee;i="6600,9927,11094"; a="14375217" X-IronPort-AV: E=Sophos;i="6.08,217,1712646000"; d="scan'208";a="14375217" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2024 13:51:11 -0700 X-CSE-ConnectionGUID: MI/DZGIIRaicjauBgg11Uw== X-CSE-MsgGUID: nj9FXtOaRcK1olqlQgeXFg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,217,1712646000"; d="scan'208";a="68543844" Received: from unknown (HELO 0610945e7d16) ([10.239.97.151]) by orviesa002.jf.intel.com with ESMTP; 05 Jun 2024 13:51:07 -0700 Received: from kbuild by 0610945e7d16 with local (Exim 4.96) (envelope-from ) id 1sExb6-0002FM-1w; Wed, 05 Jun 2024 20:51:04 +0000 Date: Thu, 6 Jun 2024 04:50:23 +0800 From: kernel test robot To: Marcelo Schmitt , broonie@kernel.org, lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, nuno.sa@analog.com, dlechner@baylibre.com, marcelo.schmitt1@gmail.com Cc: oe-kbuild-all@lists.linux.dev, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 6/6] iio: adc: Add support for AD4000 Message-ID: <202406060440.I43MwC4B-lkp@intel.com> References: Precedence: bulk X-Mailing-List: linux-kernel@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: Hi Marcelo, kernel test robot noticed the following build warnings: [auto build test WARNING on broonie-spi/for-next] [also build test WARNING on jic23-iio/togreg linus/master v6.10-rc2 next-20240605] [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/Marcelo-Schmitt/spi-Add-SPI-mode-bit-for-MOSI-idle-state-configuration/20240605-231912 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next patch link: https://lore.kernel.org/r/e340f48324b0ea3afb1c715cb2fba184c27112a1.1717539384.git.marcelo.schmitt%40analog.com patch subject: [PATCH v3 6/6] iio: adc: Add support for AD4000 config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20240606/202406060440.I43MwC4B-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240606/202406060440.I43MwC4B-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/202406060440.I43MwC4B-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/iio/adc/ad4000.c: In function 'ad4000_single_conversion': >> drivers/iio/adc/ad4000.c:375:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable] 375 | int ret; | ^~~ vim +/ret +375 drivers/iio/adc/ad4000.c 369 370 static int ad4000_single_conversion(struct iio_dev *indio_dev, 371 const struct iio_chan_spec *chan, int *val) 372 { 373 struct ad4000_state *st = iio_priv(indio_dev); 374 u32 sample; > 375 int ret; 376 377 ret = ad4000_convert_and_acquire(st); 378 379 if (chan->scan_type.storagebits > 16) 380 sample = be32_to_cpu(st->scan.data.sample_buf32); 381 else 382 sample = be16_to_cpu(st->scan.data.sample_buf16); 383 384 switch (chan->scan_type.realbits) { 385 case 16: 386 break; 387 case 18: 388 sample = FIELD_GET(AD4000_18BIT_MSK, sample); 389 break; 390 case 20: 391 sample = FIELD_GET(AD4000_20BIT_MSK, sample); 392 break; 393 default: 394 return -EINVAL; 395 } 396 397 if (chan->scan_type.sign == 's') 398 *val = sign_extend32(sample, chan->scan_type.realbits - 1); 399 400 return IIO_VAL_INT; 401 } 402 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki