Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp804897lqs; Fri, 14 Jun 2024 06:20:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYy2rUh83EyFMoR5tvxvM/PfaXOVA/hpjT3isle/m5uY9+ZZ3SfzHzBhA8WPKvT4attGVx2pSDvMJr7Y/OQFTGKtGJ8MI8dioKf6XzEw== X-Google-Smtp-Source: AGHT+IFSMItybR4R8ivGq77RtWBOehGKtqGGKRNgBT2Nrfd1qo/LAJ9EMZMKPilpf0G9SU1UaxVe X-Received: by 2002:a50:9b18:0:b0:57c:8262:6409 with SMTP id 4fb4d7f45d1cf-57cbd682b4cmr1468648a12.14.1718371214260; Fri, 14 Jun 2024 06:20:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718371214; cv=pass; d=google.com; s=arc-20160816; b=xlY4jTSk9XyZJUBX9Jcv5wgpKX9MP6SG5k03cGd/49JVUY+dWTUjnQCxeVudIbchXS JmXmaTKJj8iPNcI/u/ic0UIoLJJMpQ+mUe3mw+5uqQwQylztjgqP2runTi5OX208/wL7 jMIAzO1h2jkwDo0W59OGQh7NyjvPLKGy1iEBtAdGZJi4y3hXlBTveLXhUX2NFbK2YstG 0MxlLBhoOhWguKlaqIIjrJwnL1BDNP9MLefumjVMNyQtbqC914w1trws7yor+XkS04rC x1Vic+hZsph7Z0cFuXiZ3M8lMchqH/dFFxh6cBpMxSFetJWBItPEM/r/aRuFQezmjcbi imSg== 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:message-id:subject:cc:to:from :date:dkim-signature; bh=hGaz9pxPn2jEVNz9zF2iF9ACAAFUCHh5HrdyKjCjJas=; fh=/X2zuz6DsTOejtNeMBS8OdDmaFsRYSv3GQv34pAStyM=; b=vDmM7dAWwb9Ej7PIT5tNERqLtKUT2uMndiiOXwauKNR01vXlnH0LfebFW14ee483US IlnPWD0PLrowozy6jVxofYc5ZNP/VLgKQGFnFqhe2ZTgn7kUqyPkgLjysbnvFhY7CW+/ 1UwlGm6HgtrBJaOqlowt0HKvlF5hNAHUsyD+ymrPn+Fs0PYvSDQqX9n3x4GL6c9gw0Ts bQ4gfZcadeNEBObWr5OLCtWxgdZRskjX3B1jkp/DqeMPn73SO5gls/ZcidvUjPh5qxtc Ngmzrg9MwSjFLieMt1f6uB2OcSWsNzu7ny38wtpvNQ6raLhGHBm/tiD0TCxt2vnKZUEK PMZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UvRmOf+F; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-214936-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214936-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb7461a5bsi1835720a12.593.2024.06.14.06.20.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 06:20:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214936-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UvRmOf+F; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-214936-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214936-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id F13FA1F27F43 for ; Fri, 14 Jun 2024 13:19:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D44619AD9B; Fri, 14 Jun 2024 13:19:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="UvRmOf+F" Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5538919AA61 for ; Fri, 14 Jun 2024 13:19:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718371163; cv=none; b=BzaRgPIVqR+L0FqpOMWSf/ahI+gg30Me/NcKsSZ12Fqpaqek2QHui7zmQre/GEZPQrCX9y/jmTj9ct/AANclNDlfeu8CzSypdeIFQlWTFENZTJttnsUoCMzmovn9ZiXpGFvTUs//0s3D8yplyr2oh5GnaoGND/USO2+bin+t9tA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718371163; c=relaxed/simple; bh=JmJKmAuPj9kduKQFiI8tppycENgBvW3rbiZxfZzFF8I=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=kOLge6/TEOBzjWAGfmtoBx4w4QvgcZL1fI4hIgZWUZVsmg2S70bIt8PuTUAv6HGTRRWwkXQQN3NmRvewd6UQnCEO16nP/5eUBSRZR1dxetn/luMtN+QuDf1Br2T4s8Nwbp5pZALi67FpM6iUnl1XnsQbvsXL/6leAPFHbSUFyKA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=UvRmOf+F; arc=none smtp.client-ip=209.85.167.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-52caebc6137so390729e87.0 for ; Fri, 14 Jun 2024 06:19:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718371159; x=1718975959; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=hGaz9pxPn2jEVNz9zF2iF9ACAAFUCHh5HrdyKjCjJas=; b=UvRmOf+FiUh9fZnyRg2hOMy0UPbXGMkgOZRE3Usfzv5GGl6eOI3lfEzDJ2qAjRWNXt /VcjqgnPzbSXO+TJ4EoZssrdggQ3p3LQ/m3t54Wzgh7FRyONnYQoglFlYgmibSbYmP5S N0Jq9jZC98sz4QKZx1yLxTFAFbhahs+lR2C9MFWs7j2WJyEMFqHmCDs+MDsKUVzaECW0 +69VZZ7tugfU9SlHK/yxXaZ8YvD988RYzTeGY46N0rfdIafT/S6W1DsclcfRciPEi3RM qarY0bMJj1+h4NhDE0sQUdjyaoZg/L+kG496tZPepkbcjitGMPnAopfcX/iu6HJ4YYYq YS1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718371159; x=1718975959; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hGaz9pxPn2jEVNz9zF2iF9ACAAFUCHh5HrdyKjCjJas=; b=Cp1ler6w4Fr81F1/VA4ZjFp+Bj74NXTo2WTjkBqWVXFBbR3zsVS/TWFHIx8tuttFBK 4QLbMAikDA5vcfbC6E/A05V+K/tGz8SaDIJ34ESEtpj6GLCCGg3BkagwGXsWhVJ0X/7R +T2rYk0ou35fD9jjiPGrvOlwGBOs+tDHwbQYqB+oiThEHOcpt7rFJpeu6tYgpSH3PmvB 6wWHH8mE0rhw6bWmw2U5UWOo8ecANZ4RecHiXjCtXp+7m+pOeY212Zf7REPbjWi4fYT+ gWT/2ggix2MO6N6qrVokhSlWh0/6Ktebtq8JFrwof2fDmHFiRYNdGoWZRYsmNBVLALtt MPwg== X-Forwarded-Encrypted: i=1; AJvYcCXTC6xrlXnh2hJQgi+BTXAU07ea/IIhEVaJ035pf7JUmQtMU48U7VciqcbMrKHiwCzfFb138PT5kIPzIxPaP8BWcQsu42qrgjNEtWQg X-Gm-Message-State: AOJu0YwhDTohk1Yne6iPYzsH/+S9IiAoY8V8VWVNzgadvN0KWTK4Oivt Ye5Vx5k+zFBldtAuUkiSeyEZRjQpEQ46s/2IN9mCG9tmWwcDUsYE/5ibDXj18+KWw63dnkwfY2i y X-Received: by 2002:ac2:5e22:0:b0:52c:99ed:4c9a with SMTP id 2adb3069b0e04-52ca6e99288mr1570472e87.59.1718371159118; Fri, 14 Jun 2024 06:19:19 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-422f9e2b306sm59781315e9.16.2024.06.14.06.19.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 06:19:18 -0700 (PDT) Date: Fri, 14 Jun 2024 16:19:14 +0300 From: Dan Carpenter To: oe-kbuild@lists.linux.dev, Yasin Lee , jic23@kernel.org Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, andy.shevchenko@gmail.com, lars@metafoo.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, nuno.a@analog.com, swboyd@chromium.org, u.kleine-koenig@pengutronix.de, yasin.lee.x@gmail.com, yasin.lee.x@outlook.com Subject: Re: [PATCH v4 2/2] iio:proximity:hx9023s: Add TYHX HX9023S sensor driver Message-ID: 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 Yasin, kernel test robot noticed the following build warnings: https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Yasin-Lee/iio-proximity-hx9023s-Add-TYHX-HX9023S-sensor-driver/20240607-194446 base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg patch link: https://lore.kernel.org/r/SN7PR12MB81017291E79E6B61A8DEC9A5A4FB2%40SN7PR12MB8101.namprd12.prod.outlook.com patch subject: [PATCH v4 2/2] iio:proximity:hx9023s: Add TYHX HX9023S sensor driver config: um-randconfig-r071-20240614 (https://download.01.org/0day-ci/archive/20240614/202406142001.swm6CU40-lkp@intel.com/config) compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0 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 | Reported-by: Dan Carpenter | Closes: https://lore.kernel.org/r/202406142001.swm6CU40-lkp@intel.com/ New smatch warnings: drivers/iio/proximity/hx9023s.c:666 hx9023s_property_get() error: uninitialized symbol 'i'. drivers/iio/proximity/hx9023s.c:976 hx9023s_trigger_handler() error: uninitialized symbol 'i'. drivers/iio/proximity/hx9023s.c:996 hx9023s_buffer_preenable() error: uninitialized symbol 'channels'. Old smatch warnings: drivers/iio/proximity/hx9023s.c:667 hx9023s_property_get() error: uninitialized symbol 'i'. vim +/i +666 drivers/iio/proximity/hx9023s.c 6133aa711518da Yasin Lee 2024-06-07 650 static int hx9023s_property_get(struct hx9023s_data *data) 6133aa711518da Yasin Lee 2024-06-07 651 { 6133aa711518da Yasin Lee 2024-06-07 652 int ret, i; Needs to be initialized. int i = 0; 6133aa711518da Yasin Lee 2024-06-07 653 u32 temp; 6133aa711518da Yasin Lee 2024-06-07 654 struct fwnode_handle *child; 6133aa711518da Yasin Lee 2024-06-07 655 struct device *dev = regmap_get_device(data->regmap); 6133aa711518da Yasin Lee 2024-06-07 656 6133aa711518da Yasin Lee 2024-06-07 657 ret = device_property_read_u32(dev, "channel-in-use", &temp); 6133aa711518da Yasin Lee 2024-06-07 658 if (ret) 6133aa711518da Yasin Lee 2024-06-07 659 return dev_err_probe(dev, ret, "Failed to read channel-in-use property\n"); 6133aa711518da Yasin Lee 2024-06-07 660 data->chan_in_use = temp; 6133aa711518da Yasin Lee 2024-06-07 661 6133aa711518da Yasin Lee 2024-06-07 662 device_for_each_child_node(dev, child) { 6133aa711518da Yasin Lee 2024-06-07 663 ret = fwnode_property_read_u32(child, "channel-positive", &temp); 6133aa711518da Yasin Lee 2024-06-07 664 if (ret) 6133aa711518da Yasin Lee 2024-06-07 665 return dev_err_probe(dev, ret, 6133aa711518da Yasin Lee 2024-06-07 @666 "Failed to read channel-positive for channel %d\n", i); 6133aa711518da Yasin Lee 2024-06-07 667 data->ch_data[i].channel_positive = temp; 6133aa711518da Yasin Lee 2024-06-07 668 6133aa711518da Yasin Lee 2024-06-07 669 ret = fwnode_property_read_u32(child, "channel-negative", &temp); 6133aa711518da Yasin Lee 2024-06-07 670 if (ret) 6133aa711518da Yasin Lee 2024-06-07 671 return dev_err_probe(dev, ret, 6133aa711518da Yasin Lee 2024-06-07 672 "Failed to read channel-negative for channel %d\n", i); 6133aa711518da Yasin Lee 2024-06-07 673 data->ch_data[i].channel_negative = temp; 6133aa711518da Yasin Lee 2024-06-07 674 6133aa711518da Yasin Lee 2024-06-07 675 i++; 6133aa711518da Yasin Lee 2024-06-07 676 } 6133aa711518da Yasin Lee 2024-06-07 677 6133aa711518da Yasin Lee 2024-06-07 678 return 0; 6133aa711518da Yasin Lee 2024-06-07 679 } -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki