All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Matthew Blecker <matthewb@chromium.org>,
	Wolfram Sang <wsa-dev@sang-engineering.com>,
	linux-i2c@vger.kernel.org
Cc: kbuild-all@lists.01.org, Matthew Blecker <matthewb@chromium.org>
Subject: Re: [PATCH 1/1] i2c: Add i2c-pseudo driver for userspace I2C adapters.
Date: Sat, 9 May 2020 04:36:07 +0800	[thread overview]
Message-ID: <202005090452.NrbKBINy%lkp@intel.com> (raw)
In-Reply-To: <20200507230513.246804-2-matthewb@google.com>

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

Hi Matthew,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on wsa/i2c/for-next]
[also build test ERROR on v5.7-rc4 next-20200508]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Matthew-Blecker/i2c-Add-i2c-pseudo-driver-for-userspace-I2C-adapters/20200509-011221
base:   https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next
config: um-allmodconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=um 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/i2c/i2c-pseudo.c:1855:15: error: initializer element is not constant
      .cmd_size = strlen(I2CP_MXFER_REPLY_CMD),
                  ^~~~~~
   drivers/i2c/i2c-pseudo.c:1855:15: note: (near initialization for 'i2cp_cmds[0].cmd_size')
   drivers/i2c/i2c-pseudo.c:1865:15: error: initializer element is not constant
      .cmd_size = strlen(I2CP_ADAP_START_CMD),
                  ^~~~~~
   drivers/i2c/i2c-pseudo.c:1865:15: note: (near initialization for 'i2cp_cmds[1].cmd_size')
   drivers/i2c/i2c-pseudo.c:1872:15: error: initializer element is not constant
      .cmd_size = strlen(I2CP_ADAP_SHUTDOWN_CMD),
                  ^~~~~~
   drivers/i2c/i2c-pseudo.c:1872:15: note: (near initialization for 'i2cp_cmds[2].cmd_size')
   drivers/i2c/i2c-pseudo.c:1879:15: error: initializer element is not constant
      .cmd_size = strlen(I2CP_GET_NUMBER_CMD),
                  ^~~~~~
   drivers/i2c/i2c-pseudo.c:1879:15: note: (near initialization for 'i2cp_cmds[3].cmd_size')
   drivers/i2c/i2c-pseudo.c:1886:15: error: initializer element is not constant
      .cmd_size = strlen(I2CP_GET_PSEUDO_ID_CMD),
                  ^~~~~~
   drivers/i2c/i2c-pseudo.c:1886:15: note: (near initialization for 'i2cp_cmds[4].cmd_size')
   drivers/i2c/i2c-pseudo.c:1893:15: error: initializer element is not constant
      .cmd_size = strlen(I2CP_SET_NAME_SUFFIX_CMD),
                  ^~~~~~
   drivers/i2c/i2c-pseudo.c:1893:15: note: (near initialization for 'i2cp_cmds[5].cmd_size')
   drivers/i2c/i2c-pseudo.c:1902:15: error: initializer element is not constant
      .cmd_size = strlen(I2CP_SET_TIMEOUT_CMD),
                  ^~~~~~
   drivers/i2c/i2c-pseudo.c:1902:15: note: (near initialization for 'i2cp_cmds[6].cmd_size')

vim +1855 drivers/i2c/i2c-pseudo.c

  1849	
  1850	/* Command names are matched in this order, so sort by expected frequency. */
  1851	/* All elements should be initialized in their I2CP_CMD_*_IDX position. */
  1852	static const struct i2cp_cmd i2cp_cmds[] = {
  1853		[I2CP_CMD_MXFER_REPLY_IDX] = {
  1854			.cmd_string = I2CP_MXFER_REPLY_CMD,
> 1855			.cmd_size = strlen(I2CP_MXFER_REPLY_CMD),
  1856			.data_creator = i2cp_cmd_mxfer_reply_data_creator,
  1857			.data_shutdown = i2cp_cmd_mxfer_reply_data_shutdown,
  1858			.data_destroyer = i2cp_cmd_mxfer_reply_data_destroyer,
  1859			.header_receiver = i2cp_cmd_mxfer_reply_header_receiver,
  1860			.data_receiver = i2cp_cmd_mxfer_reply_data_receiver,
  1861			.cmd_completer = i2cp_cmd_mxfer_reply_cmd_completer,
  1862		},
  1863		[I2CP_CMD_ADAP_START_IDX] = {
  1864			.cmd_string = I2CP_ADAP_START_CMD,
  1865			.cmd_size = strlen(I2CP_ADAP_START_CMD),
  1866			.header_receiver = i2cp_cmd_adap_start_header_receiver,
  1867			.data_receiver = i2cp_cmd_adap_start_data_receiver,
  1868			.cmd_completer = i2cp_cmd_adap_start_cmd_completer,
  1869		},
  1870		[I2CP_CMD_ADAP_SHUTDOWN_IDX] = {
  1871			.cmd_string = I2CP_ADAP_SHUTDOWN_CMD,
  1872			.cmd_size = strlen(I2CP_ADAP_SHUTDOWN_CMD),
  1873			.header_receiver = i2cp_cmd_adap_shutdown_header_receiver,
  1874			.data_receiver = i2cp_cmd_adap_shutdown_data_receiver,
  1875			.cmd_completer = i2cp_cmd_adap_shutdown_cmd_completer,
  1876		},
  1877		[I2CP_CMD_GET_NUMBER_IDX] = {
  1878			.cmd_string = I2CP_GET_NUMBER_CMD,
  1879			.cmd_size = strlen(I2CP_GET_NUMBER_CMD),
  1880			.header_receiver = i2cp_cmd_get_number_header_receiver,
  1881			.data_receiver = i2cp_cmd_get_number_data_receiver,
  1882			.cmd_completer = i2cp_cmd_get_number_cmd_completer,
  1883		},
  1884		[I2CP_CMD_GET_PSEUDO_ID_IDX] = {
  1885			.cmd_string = I2CP_GET_PSEUDO_ID_CMD,
  1886			.cmd_size = strlen(I2CP_GET_PSEUDO_ID_CMD),
  1887			.header_receiver = i2cp_cmd_get_pseudo_id_header_receiver,
  1888			.data_receiver = i2cp_cmd_get_pseudo_id_data_receiver,
  1889			.cmd_completer = i2cp_cmd_get_pseudo_id_cmd_completer,
  1890		},
  1891		[I2CP_CMD_SET_NAME_SUFFIX_IDX] = {
  1892			.cmd_string = I2CP_SET_NAME_SUFFIX_CMD,
  1893			.cmd_size = strlen(I2CP_SET_NAME_SUFFIX_CMD),
  1894			.data_creator = i2cp_cmd_set_name_suffix_data_creator,
  1895			.data_destroyer = i2cp_cmd_set_name_suffix_data_destroyer,
  1896			.header_receiver = i2cp_cmd_set_name_suffix_header_receiver,
  1897			.data_receiver = i2cp_cmd_set_name_suffix_data_receiver,
  1898			.cmd_completer = i2cp_cmd_set_name_suffix_cmd_completer,
  1899		},
  1900		[I2CP_CMD_SET_TIMEOUT_IDX] = {
  1901			.cmd_string = I2CP_SET_TIMEOUT_CMD,
  1902			.cmd_size = strlen(I2CP_SET_TIMEOUT_CMD),
  1903			.data_creator = i2cp_cmd_set_timeout_data_creator,
  1904			.data_destroyer = i2cp_cmd_set_timeout_data_destroyer,
  1905			.header_receiver = i2cp_cmd_set_timeout_header_receiver,
  1906			.data_receiver = i2cp_cmd_set_timeout_data_receiver,
  1907			.cmd_completer = i2cp_cmd_set_timeout_cmd_completer,
  1908		},
  1909	};
  1910	

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

WARNING: multiple messages have this Message-ID (diff)
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH 1/1] i2c: Add i2c-pseudo driver for userspace I2C adapters.
Date: Sat, 09 May 2020 04:36:07 +0800	[thread overview]
Message-ID: <202005090452.NrbKBINy%lkp@intel.com> (raw)
In-Reply-To: <20200507230513.246804-2-matthewb@google.com>

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

Hi Matthew,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on wsa/i2c/for-next]
[also build test ERROR on v5.7-rc4 next-20200508]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Matthew-Blecker/i2c-Add-i2c-pseudo-driver-for-userspace-I2C-adapters/20200509-011221
base:   https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next
config: um-allmodconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=um 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/i2c/i2c-pseudo.c:1855:15: error: initializer element is not constant
      .cmd_size = strlen(I2CP_MXFER_REPLY_CMD),
                  ^~~~~~
   drivers/i2c/i2c-pseudo.c:1855:15: note: (near initialization for 'i2cp_cmds[0].cmd_size')
   drivers/i2c/i2c-pseudo.c:1865:15: error: initializer element is not constant
      .cmd_size = strlen(I2CP_ADAP_START_CMD),
                  ^~~~~~
   drivers/i2c/i2c-pseudo.c:1865:15: note: (near initialization for 'i2cp_cmds[1].cmd_size')
   drivers/i2c/i2c-pseudo.c:1872:15: error: initializer element is not constant
      .cmd_size = strlen(I2CP_ADAP_SHUTDOWN_CMD),
                  ^~~~~~
   drivers/i2c/i2c-pseudo.c:1872:15: note: (near initialization for 'i2cp_cmds[2].cmd_size')
   drivers/i2c/i2c-pseudo.c:1879:15: error: initializer element is not constant
      .cmd_size = strlen(I2CP_GET_NUMBER_CMD),
                  ^~~~~~
   drivers/i2c/i2c-pseudo.c:1879:15: note: (near initialization for 'i2cp_cmds[3].cmd_size')
   drivers/i2c/i2c-pseudo.c:1886:15: error: initializer element is not constant
      .cmd_size = strlen(I2CP_GET_PSEUDO_ID_CMD),
                  ^~~~~~
   drivers/i2c/i2c-pseudo.c:1886:15: note: (near initialization for 'i2cp_cmds[4].cmd_size')
   drivers/i2c/i2c-pseudo.c:1893:15: error: initializer element is not constant
      .cmd_size = strlen(I2CP_SET_NAME_SUFFIX_CMD),
                  ^~~~~~
   drivers/i2c/i2c-pseudo.c:1893:15: note: (near initialization for 'i2cp_cmds[5].cmd_size')
   drivers/i2c/i2c-pseudo.c:1902:15: error: initializer element is not constant
      .cmd_size = strlen(I2CP_SET_TIMEOUT_CMD),
                  ^~~~~~
   drivers/i2c/i2c-pseudo.c:1902:15: note: (near initialization for 'i2cp_cmds[6].cmd_size')

vim +1855 drivers/i2c/i2c-pseudo.c

  1849	
  1850	/* Command names are matched in this order, so sort by expected frequency. */
  1851	/* All elements should be initialized in their I2CP_CMD_*_IDX position. */
  1852	static const struct i2cp_cmd i2cp_cmds[] = {
  1853		[I2CP_CMD_MXFER_REPLY_IDX] = {
  1854			.cmd_string = I2CP_MXFER_REPLY_CMD,
> 1855			.cmd_size = strlen(I2CP_MXFER_REPLY_CMD),
  1856			.data_creator = i2cp_cmd_mxfer_reply_data_creator,
  1857			.data_shutdown = i2cp_cmd_mxfer_reply_data_shutdown,
  1858			.data_destroyer = i2cp_cmd_mxfer_reply_data_destroyer,
  1859			.header_receiver = i2cp_cmd_mxfer_reply_header_receiver,
  1860			.data_receiver = i2cp_cmd_mxfer_reply_data_receiver,
  1861			.cmd_completer = i2cp_cmd_mxfer_reply_cmd_completer,
  1862		},
  1863		[I2CP_CMD_ADAP_START_IDX] = {
  1864			.cmd_string = I2CP_ADAP_START_CMD,
  1865			.cmd_size = strlen(I2CP_ADAP_START_CMD),
  1866			.header_receiver = i2cp_cmd_adap_start_header_receiver,
  1867			.data_receiver = i2cp_cmd_adap_start_data_receiver,
  1868			.cmd_completer = i2cp_cmd_adap_start_cmd_completer,
  1869		},
  1870		[I2CP_CMD_ADAP_SHUTDOWN_IDX] = {
  1871			.cmd_string = I2CP_ADAP_SHUTDOWN_CMD,
  1872			.cmd_size = strlen(I2CP_ADAP_SHUTDOWN_CMD),
  1873			.header_receiver = i2cp_cmd_adap_shutdown_header_receiver,
  1874			.data_receiver = i2cp_cmd_adap_shutdown_data_receiver,
  1875			.cmd_completer = i2cp_cmd_adap_shutdown_cmd_completer,
  1876		},
  1877		[I2CP_CMD_GET_NUMBER_IDX] = {
  1878			.cmd_string = I2CP_GET_NUMBER_CMD,
  1879			.cmd_size = strlen(I2CP_GET_NUMBER_CMD),
  1880			.header_receiver = i2cp_cmd_get_number_header_receiver,
  1881			.data_receiver = i2cp_cmd_get_number_data_receiver,
  1882			.cmd_completer = i2cp_cmd_get_number_cmd_completer,
  1883		},
  1884		[I2CP_CMD_GET_PSEUDO_ID_IDX] = {
  1885			.cmd_string = I2CP_GET_PSEUDO_ID_CMD,
  1886			.cmd_size = strlen(I2CP_GET_PSEUDO_ID_CMD),
  1887			.header_receiver = i2cp_cmd_get_pseudo_id_header_receiver,
  1888			.data_receiver = i2cp_cmd_get_pseudo_id_data_receiver,
  1889			.cmd_completer = i2cp_cmd_get_pseudo_id_cmd_completer,
  1890		},
  1891		[I2CP_CMD_SET_NAME_SUFFIX_IDX] = {
  1892			.cmd_string = I2CP_SET_NAME_SUFFIX_CMD,
  1893			.cmd_size = strlen(I2CP_SET_NAME_SUFFIX_CMD),
  1894			.data_creator = i2cp_cmd_set_name_suffix_data_creator,
  1895			.data_destroyer = i2cp_cmd_set_name_suffix_data_destroyer,
  1896			.header_receiver = i2cp_cmd_set_name_suffix_header_receiver,
  1897			.data_receiver = i2cp_cmd_set_name_suffix_data_receiver,
  1898			.cmd_completer = i2cp_cmd_set_name_suffix_cmd_completer,
  1899		},
  1900		[I2CP_CMD_SET_TIMEOUT_IDX] = {
  1901			.cmd_string = I2CP_SET_TIMEOUT_CMD,
  1902			.cmd_size = strlen(I2CP_SET_TIMEOUT_CMD),
  1903			.data_creator = i2cp_cmd_set_timeout_data_creator,
  1904			.data_destroyer = i2cp_cmd_set_timeout_data_destroyer,
  1905			.header_receiver = i2cp_cmd_set_timeout_header_receiver,
  1906			.data_receiver = i2cp_cmd_set_timeout_data_receiver,
  1907			.cmd_completer = i2cp_cmd_set_timeout_cmd_completer,
  1908		},
  1909	};
  1910	

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

  reply	other threads:[~2020-05-08 20:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-07 23:05 [PATCH 0/1] i2c: Add i2c-pseudo driver for userspace I2C adapters Matthew Blecker
2020-05-07 23:05 ` [PATCH 1/1] " Matthew Blecker
2020-05-08 20:36   ` kbuild test robot [this message]
2020-05-08 20:36     ` kbuild test robot
2020-05-09  1:43   ` kbuild test robot
2020-05-09  1:43     ` kbuild test robot
2020-05-09  1:43   ` [PATCH] i2c: fix stream_open.cocci warnings kbuild test robot
2020-05-09  1:43     ` kbuild test robot

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=202005090452.NrbKBINy%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=matthewb@chromium.org \
    --cc=wsa-dev@sang-engineering.com \
    /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.