From: Dan Carpenter <dan.carpenter@linaro.org>
To: oe-kbuild@lists.linux.dev,
"Francesco Dolcini" <francesco@dolcini.it>,
"Jonathan Cameron" <jic23@kernel.org>,
"Lars-Peter Clausen" <lars@metafoo.de>,
"João Paulo Gonçalves" <jpaulo.silvagoncalves@gmail.com>,
"Liam Girdwood" <lgirdwood@gmail.com>,
"Mark Brown" <broonie@kernel.org>
Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev,
linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org
Subject: Re: [PATCH v1 2/2] iio: adc: ti-ads1119: Add driver
Date: Wed, 29 May 2024 17:36:19 +0300 [thread overview]
Message-ID: <a3521734-487b-4c17-b910-2b169b26bc64@moroto.mountain> (raw)
In-Reply-To: <20240527154050.24975-3-francesco@dolcini.it>
Hi Francesco,
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/Francesco-Dolcini/dt-bindings-iio-adc-add-ti-ads1119/20240527-234431
base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
patch link: https://lore.kernel.org/r/20240527154050.24975-3-francesco%40dolcini.it
patch subject: [PATCH v1 2/2] iio: adc: ti-ads1119: Add driver
config: openrisc-randconfig-r071-20240529 (https://download.01.org/0day-ci/archive/20240529/202405291150.r5z8TZYu-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 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 <lkp@intel.com>
| Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
| Closes: https://lore.kernel.org/r/202405291150.r5z8TZYu-lkp@intel.com/
New smatch warnings:
drivers/iio/adc/ti-ads1119.c:653 ads1119_get_configs() warn: passing zero to 'PTR_ERR'
vim +629 drivers/iio/adc/ti-ads1119.c
14caaeae0e22b3 João Paulo Gonçalves 2024-05-27 642 static int ads1119_get_configs(struct ads1119_state *st)
14caaeae0e22b3 João Paulo Gonçalves 2024-05-27 643 {
14caaeae0e22b3 João Paulo Gonçalves 2024-05-27 644 struct device *dev = &st->client->dev;
14caaeae0e22b3 João Paulo Gonçalves 2024-05-27 645
14caaeae0e22b3 João Paulo Gonçalves 2024-05-27 646 st->vref = devm_regulator_get_optional(dev, "vref");
14caaeae0e22b3 João Paulo Gonçalves 2024-05-27 647 if (IS_ERR(st->vref))
14caaeae0e22b3 João Paulo Gonçalves 2024-05-27 648 return dev_err_probe(dev, PTR_ERR(st->vref),
14caaeae0e22b3 João Paulo Gonçalves 2024-05-27 649 "Failed to get vref\n");
14caaeae0e22b3 João Paulo Gonçalves 2024-05-27 650
14caaeae0e22b3 João Paulo Gonçalves 2024-05-27 651 st->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
14caaeae0e22b3 João Paulo Gonçalves 2024-05-27 652 if (IS_ERR(st->reset_gpio))
14caaeae0e22b3 João Paulo Gonçalves 2024-05-27 @653 return dev_err_probe(dev, PTR_ERR(st->vref),
^^^^^^^^
st->reset_gpio was intended.
14caaeae0e22b3 João Paulo Gonçalves 2024-05-27 654 "Failed to get reset gpio\n");
14caaeae0e22b3 João Paulo Gonçalves 2024-05-27 655
14caaeae0e22b3 João Paulo Gonçalves 2024-05-27 656 return ads1119_alloc_and_config_channels(st);
14caaeae0e22b3 João Paulo Gonçalves 2024-05-27 657 }
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-05-29 14:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-27 15:40 [PATCH v1 0/2] iio: adc: ti-ads1119: Add driver Francesco Dolcini
2024-05-27 15:40 ` [PATCH v1 1/2] dt-bindings: iio: adc: add ti,ads1119 Francesco Dolcini
2024-05-27 16:29 ` Conor Dooley
2024-05-28 15:04 ` Francesco Dolcini
2024-05-28 16:14 ` Conor Dooley
2024-06-02 14:54 ` Jonathan Cameron
2024-05-27 16:37 ` Rob Herring (Arm)
2024-05-27 15:40 ` [PATCH v1 2/2] iio: adc: ti-ads1119: Add driver Francesco Dolcini
2024-05-29 14:36 ` Dan Carpenter [this message]
2024-06-02 15:36 ` Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a3521734-487b-4c17-b910-2b169b26bc64@moroto.mountain \
--to=dan.carpenter@linaro.org \
--cc=broonie@kernel.org \
--cc=francesco@dolcini.it \
--cc=jic23@kernel.org \
--cc=jpaulo.silvagoncalves@gmail.com \
--cc=lars@metafoo.de \
--cc=lgirdwood@gmail.com \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=oe-kbuild@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox