All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Luiz Sampaio <sampaio.ime@gmail.com>, zbr@ioremap.net
Cc: kbuild-all@lists.01.org, corbet@lwn.net,
	rikard.falkeborn@gmail.com, gregkh@linuxfoundation.org,
	linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org,
	Luiz Sampaio <sampaio.ime@gmail.com>
Subject: Re: [PATCH v7 6/6] w1: ds2438: support for writing to offset register
Date: Sat, 17 Apr 2021 13:25:55 +0800	[thread overview]
Message-ID: <202104171327.3dhODTvY-lkp@intel.com> (raw)
In-Reply-To: <20210416221739.501090-7-sampaio.ime@gmail.com>

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

Hi Luiz,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.12-rc7 next-20210416]
[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]

url:    https://github.com/0day-ci/linux/commits/Luiz-Sampaio/w1-ds2438-fixed-a-coding-style-issue/20210417-071754
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 151501160401e2dc669ea7dac2c599b53f220c33
config: csky-randconfig-m031-20210416 (attached as .config)
compiler: csky-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>

smatch warnings:
drivers/w1/slaves/w1_ds2438.c:218 w1_ds2438_change_offset_register() warn: inconsistent indenting

vim +218 drivers/w1/slaves/w1_ds2438.c

   195	
   196	static int w1_ds2438_change_offset_register(struct w1_slave *sl, u8 *value)
   197	{
   198		unsigned int retries = W1_DS2438_RETRIES;
   199		u8 w1_buf[9];
   200		u8 w1_page1_buf[DS2438_PAGE_SIZE + 1 /*for CRC*/];
   201	
   202		if (w1_ds2438_get_page(sl, 1, w1_page1_buf) == 0) {
   203			memcpy(&w1_buf[2], w1_page1_buf, DS2438_PAGE_SIZE - 1); /* last register reserved */
   204			w1_buf[7] = value[0]; /* change only offset register */
   205			w1_buf[8] = value[1];
   206			while (retries--) {
   207				if (w1_reset_select_slave(sl))
   208					continue;
   209				w1_buf[0] = W1_DS2438_WRITE_SCRATCH;
   210				w1_buf[1] = 0x01; /* write to page 1 */
   211				w1_write_block(sl->master, w1_buf, 9);
   212	
   213				if (w1_reset_select_slave(sl))
   214					continue;
   215				w1_buf[0] = W1_DS2438_COPY_SCRATCH;
   216				w1_buf[1] = 0x01;
   217				w1_write_block(sl->master, w1_buf, 2);
 > 218					return 0;
   219			}
   220		}
   221		return -1;
   222	}
   223	

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

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v7 6/6] w1: ds2438: support for writing to offset register
Date: Sat, 17 Apr 2021 13:25:55 +0800	[thread overview]
Message-ID: <202104171327.3dhODTvY-lkp@intel.com> (raw)
In-Reply-To: <20210416221739.501090-7-sampaio.ime@gmail.com>

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

Hi Luiz,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.12-rc7 next-20210416]
[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]

url:    https://github.com/0day-ci/linux/commits/Luiz-Sampaio/w1-ds2438-fixed-a-coding-style-issue/20210417-071754
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 151501160401e2dc669ea7dac2c599b53f220c33
config: csky-randconfig-m031-20210416 (attached as .config)
compiler: csky-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>

smatch warnings:
drivers/w1/slaves/w1_ds2438.c:218 w1_ds2438_change_offset_register() warn: inconsistent indenting

vim +218 drivers/w1/slaves/w1_ds2438.c

   195	
   196	static int w1_ds2438_change_offset_register(struct w1_slave *sl, u8 *value)
   197	{
   198		unsigned int retries = W1_DS2438_RETRIES;
   199		u8 w1_buf[9];
   200		u8 w1_page1_buf[DS2438_PAGE_SIZE + 1 /*for CRC*/];
   201	
   202		if (w1_ds2438_get_page(sl, 1, w1_page1_buf) == 0) {
   203			memcpy(&w1_buf[2], w1_page1_buf, DS2438_PAGE_SIZE - 1); /* last register reserved */
   204			w1_buf[7] = value[0]; /* change only offset register */
   205			w1_buf[8] = value[1];
   206			while (retries--) {
   207				if (w1_reset_select_slave(sl))
   208					continue;
   209				w1_buf[0] = W1_DS2438_WRITE_SCRATCH;
   210				w1_buf[1] = 0x01; /* write to page 1 */
   211				w1_write_block(sl->master, w1_buf, 9);
   212	
   213				if (w1_reset_select_slave(sl))
   214					continue;
   215				w1_buf[0] = W1_DS2438_COPY_SCRATCH;
   216				w1_buf[1] = 0x01;
   217				w1_write_block(sl->master, w1_buf, 2);
 > 218					return 0;
   219			}
   220		}
   221		return -1;
   222	}
   223	

---
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: 24550 bytes --]

  reply	other threads:[~2021-04-17  5:26 UTC|newest]

Thread overview: 82+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-03  1:24 [PATCH v2 0/9] w1: ds2438: adding support for calibration of current measurements Luiz Sampaio
2021-04-03  1:24 ` [PATCH v2 1/9] w1: ds2438: fixed a coding style issue Luiz Sampaio
2021-04-03  1:24 ` [PATCH v2 2/9] " Luiz Sampaio
2021-04-03  1:24 ` [PATCH v2 3/9] " Luiz Sampaio
2021-04-03  1:24 ` [PATCH v2 4/9] " Luiz Sampaio
2021-04-03  1:24 ` [PATCH v2 5/9] " Luiz Sampaio
2021-04-03  1:24 ` [PATCH v2 6/9] " Luiz Sampaio
2021-04-03  3:16   ` kernel test robot
2021-04-03  3:16     ` kernel test robot
2021-04-03  3:29   ` kernel test robot
2021-04-03  3:29     ` kernel test robot
2021-04-03  1:24 ` [PATCH v2 7/9] w1: ds2438: fixing bug that would always get page0 Luiz Sampaio
2021-04-03  1:24 ` [PATCH v2 8/9] w1: ds2438: adding support for reading page1 Luiz Sampaio
2021-04-03  1:24 ` [PATCH v2 9/9] w1: ds2438: support for writing to offset register Luiz Sampaio
2021-04-03  4:45 ` [PATCH v3 0/9] w1: ds2438: adding support for calibration of current measurements Luiz Sampaio
2021-04-03  4:48   ` [PATCH v3 1/9] w1: ds2438: fixed a coding style issue Luiz Sampaio
2021-04-03  4:48     ` [PATCH v3 2/9] " Luiz Sampaio
2021-04-03  4:48     ` [PATCH v3 3/9] " Luiz Sampaio
2021-04-03  4:48     ` [PATCH v3 4/9] " Luiz Sampaio
2021-04-03  4:48     ` [PATCH v3 5/9] " Luiz Sampaio
2021-04-03  4:48     ` [PATCH v3 6/9] " Luiz Sampaio
2021-04-03  4:48     ` [PATCH v3 7/9] w1: ds2438: fixing bug that would always get page0 Luiz Sampaio
2021-04-03  4:48     ` [PATCH v3 8/9] w1: ds2438: adding support for reading page1 Luiz Sampaio
2021-04-03  4:48     ` [PATCH v3 9/9] w1: ds2438: support for writing to offset register Luiz Sampaio
2021-04-05 10:50     ` [PATCH v4 0/9] w1: ds2438: adding support for calibration of current measurements Luiz Sampaio
2021-04-05 10:50       ` [PATCH v4 1/9] w1: ds2438: fixed a coding style issue after return Luiz Sampaio
2021-04-05 10:50       ` [PATCH v4 2/9] w1: ds2438: fixed a coding style issue in iad_read Luiz Sampaio
2021-04-05 10:52         ` Greg KH
2021-04-05 10:50       ` [PATCH v4 3/9] w1: ds2438: fixed a coding style issue in temperature_read Luiz Sampaio
2021-04-05 10:50       ` [PATCH v4 4/9] w1: ds2438: fixed a coding style issue in vad_read Luiz Sampaio
2021-04-05 10:50       ` [PATCH v4 5/9] w1: ds2438: fixed a coding style issue in vdd_read Luiz Sampaio
2021-04-05 10:50       ` [PATCH v4 6/9] w1: ds2438: fixed a coding style issue to preferred octal style Luiz Sampaio
2021-04-05 10:53         ` Greg KH
2021-04-05 12:47           ` Luiz Sampaio
2021-04-05 10:50       ` [PATCH v4 7/9] w1: ds2438: fixing bug that would always get page0 Luiz Sampaio
2021-04-05 10:50       ` [PATCH v4 8/9] w1: ds2438: adding support for reading page1 Luiz Sampaio
2021-04-05 10:50       ` [PATCH v4 9/9] w1: ds2438: support for writing to offset register Luiz Sampaio
2021-04-05 11:04         ` Greg KH
2021-04-05 12:44           ` Luiz Sampaio
2021-04-05 12:50             ` Greg KH
2021-04-05 10:53       ` [PATCH v4 0/9] w1: ds2438: adding support for calibration of current measurements Greg KH
2021-04-05 12:45         ` Luiz Sampaio
2021-04-09  3:09       ` [PATCH v5 " Luiz Sampaio
2021-04-09  3:09         ` [PATCH v5 1/6] w1: ds2438: fixed a coding style issue Luiz Sampaio
2021-04-09  3:09         ` [PATCH v5 2/6] w1: ds2438: fixed if brackets " Luiz Sampaio
2021-04-09  4:39           ` Joe Perches
2021-04-09 14:40           ` Joe Perches
2021-04-16 22:26             ` Luiz Sampaio
2021-04-09  3:09         ` [PATCH v5 3/6] w1: ds2438: fixed a " Luiz Sampaio
2021-04-09  3:09         ` [PATCH v5 4/6] w1: ds2438: fixing bug that would always get page0 Luiz Sampaio
2021-04-09  3:09         ` [PATCH v5 5/6] w1: ds2438: adding support for reading page1 Luiz Sampaio
2021-04-09  3:09         ` [PATCH v5 6/6] w1: ds2438: support for writing to offset register Luiz Sampaio
2021-04-09  3:15         ` [PATCH v6 0/9] w1: ds2438: adding support for calibration of current measurements Luiz Sampaio
2021-04-09  3:15           ` [PATCH v6 1/6] w1: ds2438: fixed a coding style issue Luiz Sampaio
2021-04-09  3:15           ` [PATCH v6 2/6] w1: ds2438: fixed if brackets " Luiz Sampaio
2021-04-09  3:15           ` [PATCH v6 3/6] w1: ds2438: fixed a " Luiz Sampaio
2021-04-09  9:44             ` kernel test robot
2021-04-09  9:44               ` kernel test robot
2021-04-09 10:43             ` kernel test robot
2021-04-09 10:43               ` kernel test robot
2021-04-10  8:38             ` Greg KH
2021-04-09  3:15           ` [PATCH v6 4/6] w1: ds2438: fixing bug that would always get page0 Luiz Sampaio
2021-04-09  3:15           ` [PATCH v6 5/6] w1: ds2438: adding support for reading page1 Luiz Sampaio
2021-04-09  3:15           ` [PATCH v6 6/6] w1: ds2438: support for writing to offset register Luiz Sampaio
2021-04-16 22:17           ` [PATCH v7 0/6] w1: ds2438: adding support for calibration of current measurements Luiz Sampaio
2021-04-16 22:17             ` [PATCH v7 1/6] w1: ds2438: fixed a coding style issue Luiz Sampaio
2021-04-16 22:17             ` [PATCH v7 2/6] w1: ds2438: fixed if brackets " Luiz Sampaio
2021-04-16 22:17             ` [PATCH v7 3/6] w1: ds2438: changed sysfs macro for rw file Luiz Sampaio
2021-04-16 22:17             ` [PATCH v7 4/6] w1: ds2438: fixing bug that would always get page0 Luiz Sampaio
2021-04-16 22:17             ` [PATCH v7 5/6] w1: ds2438: adding support for reading page1 Luiz Sampaio
2021-04-16 22:17             ` [PATCH v7 6/6] w1: ds2438: support for writing to offset register Luiz Sampaio
2021-04-17  5:25               ` kernel test robot [this message]
2021-04-17  5:25                 ` kernel test robot
2021-05-14 11:47             ` [PATCH v7 0/6] w1: ds2438: adding support for calibration of current measurements Greg KH
2021-05-19 22:30           ` [PATCH v8 " Luiz Sampaio
2021-05-19 22:30             ` [PATCH v8 1/6] w1: ds2438: fixed a coding style issue Luiz Sampaio
2021-05-19 22:30             ` [PATCH v8 2/6] w1: ds2438: fixed if brackets " Luiz Sampaio
2021-05-19 22:30             ` [PATCH v8 3/6] w1: ds2438: changed sysfs macro for rw file Luiz Sampaio
2021-05-19 22:30             ` [PATCH v8 4/6] w1: ds2438: fixing bug that would always get page0 Luiz Sampaio
2021-05-19 22:30             ` [PATCH v8 5/6] w1: ds2438: adding support for reading page1 Luiz Sampaio
2021-05-19 22:30             ` [PATCH v8 6/6] w1: ds2438: support for writing to offset register Luiz Sampaio
2021-04-05 10:32   ` [PATCH v3 0/9] w1: ds2438: adding support for calibration of current measurements Greg KH

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=202104171327.3dhODTvY-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=corbet@lwn.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rikard.falkeborn@gmail.com \
    --cc=sampaio.ime@gmail.com \
    --cc=zbr@ioremap.net \
    /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.