All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [linux-next:master 2280/12271] drivers/iio/accel/fxls8962af-core.c:640 fxls8962af_i2c_raw_read_errata3() error: uninitialized symbol 'ret'.
Date: Wed, 23 Jun 2021 18:50:09 +0800	[thread overview]
Message-ID: <202106231803.dEY6sl02-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2217 bytes --]

CC: kbuild-all(a)lists.01.org
CC: Linux Memory Management List <linux-mm@kvack.org>
TO: Sean Nyekjaer <sean@geanix.com>
CC: Jonathan Cameron <Jonathan.Cameron@huawei.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   4238b1710eadd18dd16de0288a2bc5bb84614b4e
commit: af959b7b96b87aee13ed5b0041fc14ca2e72cc84 [2280/12271] iio: accel: fxls8962af: fix errata bug E3 - I2C burst reads
:::::: branch date: 24 hours ago
:::::: commit date: 5 weeks ago
config: powerpc64-randconfig-m031-20210622 (attached as .config)
compiler: powerpc64le-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
drivers/iio/accel/fxls8962af-core.c:640 fxls8962af_i2c_raw_read_errata3() error: uninitialized symbol 'ret'.

vim +/ret +640 drivers/iio/accel/fxls8962af-core.c

79e3a5bdd9efbd Sean Nyekjaer 2021-05-06  626  
af959b7b96b87a Sean Nyekjaer 2021-05-06  627  static int fxls8962af_i2c_raw_read_errata3(struct fxls8962af_data *data,
af959b7b96b87a Sean Nyekjaer 2021-05-06  628  					   u16 *buffer, int samples,
af959b7b96b87a Sean Nyekjaer 2021-05-06  629  					   int sample_length)
af959b7b96b87a Sean Nyekjaer 2021-05-06  630  {
af959b7b96b87a Sean Nyekjaer 2021-05-06  631  	int i, ret;
af959b7b96b87a Sean Nyekjaer 2021-05-06  632  
af959b7b96b87a Sean Nyekjaer 2021-05-06  633  	for (i = 0; i < samples; i++) {
af959b7b96b87a Sean Nyekjaer 2021-05-06  634  		ret = regmap_raw_read(data->regmap, FXLS8962AF_BUF_X_LSB,
af959b7b96b87a Sean Nyekjaer 2021-05-06  635  				      &buffer[i * 3], sample_length);
af959b7b96b87a Sean Nyekjaer 2021-05-06  636  		if (ret)
af959b7b96b87a Sean Nyekjaer 2021-05-06  637  			return ret;
af959b7b96b87a Sean Nyekjaer 2021-05-06  638  	}
af959b7b96b87a Sean Nyekjaer 2021-05-06  639  
af959b7b96b87a Sean Nyekjaer 2021-05-06 @640  	return ret;
af959b7b96b87a Sean Nyekjaer 2021-05-06  641  }
af959b7b96b87a Sean Nyekjaer 2021-05-06  642  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34925 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <dan.carpenter@oracle.com>
To: kbuild-all@lists.01.org
Subject: [kbuild] [linux-next:master 2280/12271] drivers/iio/accel/fxls8962af-core.c:640 fxls8962af_i2c_raw_read_errata3() error: uninitialized symbol 'ret'.
Date: Wed, 23 Jun 2021 14:08:11 +0300	[thread overview]
Message-ID: <202106231803.dEY6sl02-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2069 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git  master
head:   4238b1710eadd18dd16de0288a2bc5bb84614b4e
commit: af959b7b96b87aee13ed5b0041fc14ca2e72cc84 [2280/12271] iio: accel: fxls8962af: fix errata bug E3 - I2C burst reads
config: powerpc64-randconfig-m031-20210622 (attached as .config)
compiler: powerpc64le-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
drivers/iio/accel/fxls8962af-core.c:640 fxls8962af_i2c_raw_read_errata3() error: uninitialized symbol 'ret'.

vim +/ret +640 drivers/iio/accel/fxls8962af-core.c

af959b7b96b87a Sean Nyekjaer 2021-05-06  627  static int fxls8962af_i2c_raw_read_errata3(struct fxls8962af_data *data,
af959b7b96b87a Sean Nyekjaer 2021-05-06  628  					   u16 *buffer, int samples,
af959b7b96b87a Sean Nyekjaer 2021-05-06  629  					   int sample_length)
af959b7b96b87a Sean Nyekjaer 2021-05-06  630  {
af959b7b96b87a Sean Nyekjaer 2021-05-06  631  	int i, ret;
af959b7b96b87a Sean Nyekjaer 2021-05-06  632  
af959b7b96b87a Sean Nyekjaer 2021-05-06  633  	for (i = 0; i < samples; i++) {
af959b7b96b87a Sean Nyekjaer 2021-05-06  634  		ret = regmap_raw_read(data->regmap, FXLS8962AF_BUF_X_LSB,
af959b7b96b87a Sean Nyekjaer 2021-05-06  635  				      &buffer[i * 3], sample_length);
af959b7b96b87a Sean Nyekjaer 2021-05-06  636  		if (ret)
af959b7b96b87a Sean Nyekjaer 2021-05-06  637  			return ret;
af959b7b96b87a Sean Nyekjaer 2021-05-06  638  	}
af959b7b96b87a Sean Nyekjaer 2021-05-06  639  
af959b7b96b87a Sean Nyekjaer 2021-05-06 @640  	return ret;

Better to just "return 0;"

af959b7b96b87a Sean Nyekjaer 2021-05-06  641  }

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org 

_______________________________________________
kbuild mailing list -- kbuild(a)lists.01.org
To unsubscribe send an email to kbuild-leave(a)lists.01.org

WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <dan.carpenter@oracle.com>
To: kbuild@lists.01.org, Sean Nyekjaer <sean@geanix.com>
Cc: lkp@intel.com, kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Jonathan Cameron <Jonathan.Cameron@huawei.com>
Subject: [kbuild] [linux-next:master 2280/12271] drivers/iio/accel/fxls8962af-core.c:640 fxls8962af_i2c_raw_read_errata3() error: uninitialized symbol 'ret'.
Date: Wed, 23 Jun 2021 14:08:11 +0300	[thread overview]
Message-ID: <202106231803.dEY6sl02-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git  master
head:   4238b1710eadd18dd16de0288a2bc5bb84614b4e
commit: af959b7b96b87aee13ed5b0041fc14ca2e72cc84 [2280/12271] iio: accel: fxls8962af: fix errata bug E3 - I2C burst reads
config: powerpc64-randconfig-m031-20210622 (attached as .config)
compiler: powerpc64le-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
drivers/iio/accel/fxls8962af-core.c:640 fxls8962af_i2c_raw_read_errata3() error: uninitialized symbol 'ret'.

vim +/ret +640 drivers/iio/accel/fxls8962af-core.c

af959b7b96b87a Sean Nyekjaer 2021-05-06  627  static int fxls8962af_i2c_raw_read_errata3(struct fxls8962af_data *data,
af959b7b96b87a Sean Nyekjaer 2021-05-06  628  					   u16 *buffer, int samples,
af959b7b96b87a Sean Nyekjaer 2021-05-06  629  					   int sample_length)
af959b7b96b87a Sean Nyekjaer 2021-05-06  630  {
af959b7b96b87a Sean Nyekjaer 2021-05-06  631  	int i, ret;
af959b7b96b87a Sean Nyekjaer 2021-05-06  632  
af959b7b96b87a Sean Nyekjaer 2021-05-06  633  	for (i = 0; i < samples; i++) {
af959b7b96b87a Sean Nyekjaer 2021-05-06  634  		ret = regmap_raw_read(data->regmap, FXLS8962AF_BUF_X_LSB,
af959b7b96b87a Sean Nyekjaer 2021-05-06  635  				      &buffer[i * 3], sample_length);
af959b7b96b87a Sean Nyekjaer 2021-05-06  636  		if (ret)
af959b7b96b87a Sean Nyekjaer 2021-05-06  637  			return ret;
af959b7b96b87a Sean Nyekjaer 2021-05-06  638  	}
af959b7b96b87a Sean Nyekjaer 2021-05-06  639  
af959b7b96b87a Sean Nyekjaer 2021-05-06 @640  	return ret;

Better to just "return 0;"

af959b7b96b87a Sean Nyekjaer 2021-05-06  641  }

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org 

_______________________________________________
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-leave@lists.01.org



             reply	other threads:[~2021-06-23 10:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-23 10:50 kernel test robot [this message]
2021-06-23 11:08 ` [kbuild] [linux-next:master 2280/12271] drivers/iio/accel/fxls8962af-core.c:640 fxls8962af_i2c_raw_read_errata3() error: uninitialized symbol 'ret' Dan Carpenter
2021-06-23 11:08 ` Dan Carpenter

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=202106231803.dEY6sl02-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild@lists.01.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.