All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Sebastian Reichel <sebastian.reichel@collabora.com>,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Ahmet Inan <inan@distec.de>,
	Martin Fuzzey <martin.fuzzey@flowbird.group>
Cc: kbuild-all@lists.01.org, linux-input@vger.kernel.org,
	linux-kernel@vger.kernel.org, kernel@collabora.com,
	Sebastian Reichel <sebastian.reichel@collabora.com>
Subject: Re: [PATCHv2 4/5] Input: EXC3000: Add support to query model and fw_version
Date: Wed, 20 May 2020 12:38:36 +0800	[thread overview]
Message-ID: <202005201229.yuObF8Yc%lkp@intel.com> (raw)
In-Reply-To: <20200519182447.73405-5-sebastian.reichel@collabora.com>

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

Hi Sebastian,

I love your patch! Yet something to improve:

[auto build test ERROR on input/next]
[also build test ERROR on v5.7-rc6 next-20200519]
[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/Sebastian-Reichel/EXC3000-Updates/20200520-023207
base:   https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next
config: ia64-randconfig-r023-20200519 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 

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

All error/warnings (new ones prefixed by >>, old ones prefixed by <<):

In file included from include/linux/kobject.h:20,
from include/linux/device.h:17,
from drivers/input/touchscreen/exc3000.c:11:
>> drivers/input/touchscreen/exc3000.c:252:23: error: initialization of 'ssize_t (*)(struct device *, struct device_attribute *, char *)' {aka 'long int (*)(struct device *, struct device_attribute *, char *)'} from incompatible pointer type 'int (*)(struct device *, struct device_attribute *, char *)' [-Werror=incompatible-pointer-types]
252 | static DEVICE_ATTR_RO(fw_version);
|                       ^~~~~~~~~~
include/linux/sysfs.h:117:10: note: in definition of macro '__ATTR_RO'
117 |  .show = _name##_show,               |          ^~~~~
>> drivers/input/touchscreen/exc3000.c:252:8: note: in expansion of macro 'DEVICE_ATTR_RO'
252 | static DEVICE_ATTR_RO(fw_version);
|        ^~~~~~~~~~~~~~
drivers/input/touchscreen/exc3000.c:252:23: note: (near initialization for 'dev_attr_fw_version.show')
252 | static DEVICE_ATTR_RO(fw_version);
|                       ^~~~~~~~~~
include/linux/sysfs.h:117:10: note: in definition of macro '__ATTR_RO'
117 |  .show = _name##_show,               |          ^~~~~
>> drivers/input/touchscreen/exc3000.c:252:8: note: in expansion of macro 'DEVICE_ATTR_RO'
252 | static DEVICE_ATTR_RO(fw_version);
|        ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors

vim +252 drivers/input/touchscreen/exc3000.c

   222	
   223	static int fw_version_show(struct device *dev,
   224				   struct device_attribute *attr, char *buf)
   225	{
   226		struct exc3000_data *data = dev_get_drvdata(dev);
   227		static const u8 request[68] = {
   228			0x67, 0x00, 0x42, 0x00, 0x03, 0x01, 'D', 0x00
   229		};
   230		struct i2c_client *client = data->client;
   231		int err;
   232	
   233		mutex_lock(&data->query_lock);
   234	
   235		data->query_result = -ETIMEDOUT;
   236		reinit_completion(&data->wait_event);
   237	
   238		err = i2c_master_send(client, request, sizeof(request));
   239		if (err < 0) {
   240			mutex_unlock(&data->query_lock);
   241			return err;
   242		}
   243	
   244		wait_for_completion_interruptible_timeout(&data->wait_event, 1*HZ);
   245		mutex_unlock(&data->query_lock);
   246	
   247		if (data->query_result < 0)
   248			return data->query_result;
   249	
   250		return sprintf(buf, "%s\n", data->fw_version);
   251	}
 > 252	static DEVICE_ATTR_RO(fw_version);
   253	

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

WARNING: multiple messages have this Message-ID (diff)
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCHv2 4/5] Input: EXC3000: Add support to query model and fw_version
Date: Wed, 20 May 2020 12:38:36 +0800	[thread overview]
Message-ID: <202005201229.yuObF8Yc%lkp@intel.com> (raw)
In-Reply-To: <20200519182447.73405-5-sebastian.reichel@collabora.com>

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

Hi Sebastian,

I love your patch! Yet something to improve:

[auto build test ERROR on input/next]
[also build test ERROR on v5.7-rc6 next-20200519]
[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/Sebastian-Reichel/EXC3000-Updates/20200520-023207
base:   https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next
config: ia64-randconfig-r023-20200519 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 

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

All error/warnings (new ones prefixed by >>, old ones prefixed by <<):

In file included from include/linux/kobject.h:20,
from include/linux/device.h:17,
from drivers/input/touchscreen/exc3000.c:11:
>> drivers/input/touchscreen/exc3000.c:252:23: error: initialization of 'ssize_t (*)(struct device *, struct device_attribute *, char *)' {aka 'long int (*)(struct device *, struct device_attribute *, char *)'} from incompatible pointer type 'int (*)(struct device *, struct device_attribute *, char *)' [-Werror=incompatible-pointer-types]
252 | static DEVICE_ATTR_RO(fw_version);
|                       ^~~~~~~~~~
include/linux/sysfs.h:117:10: note: in definition of macro '__ATTR_RO'
117 |  .show = _name##_show,               |          ^~~~~
>> drivers/input/touchscreen/exc3000.c:252:8: note: in expansion of macro 'DEVICE_ATTR_RO'
252 | static DEVICE_ATTR_RO(fw_version);
|        ^~~~~~~~~~~~~~
drivers/input/touchscreen/exc3000.c:252:23: note: (near initialization for 'dev_attr_fw_version.show')
252 | static DEVICE_ATTR_RO(fw_version);
|                       ^~~~~~~~~~
include/linux/sysfs.h:117:10: note: in definition of macro '__ATTR_RO'
117 |  .show = _name##_show,               |          ^~~~~
>> drivers/input/touchscreen/exc3000.c:252:8: note: in expansion of macro 'DEVICE_ATTR_RO'
252 | static DEVICE_ATTR_RO(fw_version);
|        ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors

vim +252 drivers/input/touchscreen/exc3000.c

   222	
   223	static int fw_version_show(struct device *dev,
   224				   struct device_attribute *attr, char *buf)
   225	{
   226		struct exc3000_data *data = dev_get_drvdata(dev);
   227		static const u8 request[68] = {
   228			0x67, 0x00, 0x42, 0x00, 0x03, 0x01, 'D', 0x00
   229		};
   230		struct i2c_client *client = data->client;
   231		int err;
   232	
   233		mutex_lock(&data->query_lock);
   234	
   235		data->query_result = -ETIMEDOUT;
   236		reinit_completion(&data->wait_event);
   237	
   238		err = i2c_master_send(client, request, sizeof(request));
   239		if (err < 0) {
   240			mutex_unlock(&data->query_lock);
   241			return err;
   242		}
   243	
   244		wait_for_completion_interruptible_timeout(&data->wait_event, 1*HZ);
   245		mutex_unlock(&data->query_lock);
   246	
   247		if (data->query_result < 0)
   248			return data->query_result;
   249	
   250		return sprintf(buf, "%s\n", data->fw_version);
   251	}
 > 252	static DEVICE_ATTR_RO(fw_version);
   253	

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

  parent reply	other threads:[~2020-05-20  4:39 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-19 18:24 [PATCHv2 0/5] EXC3000 Updates Sebastian Reichel
2020-05-19 18:24 ` [PATCHv2 1/5] dt-bindings: touchscreen: Convert EETI EXC3000 touchscreen to json-schema Sebastian Reichel
2020-05-19 20:38   ` Enric Balletbo i Serra
2020-05-19 18:24 ` [PATCHv2 2/5] Input: EXC3000: switch to i2c's probe_new API Sebastian Reichel
2020-05-19 18:24 ` [PATCHv2 3/5] Input: EXC3000: add EXC80H60 and EXC80H84 support Sebastian Reichel
2020-05-19 23:52   ` kbuild test robot
2020-05-19 23:52     ` kbuild test robot
2020-05-19 23:54   ` kbuild test robot
2020-05-19 23:54     ` kbuild test robot
2020-05-19 18:24 ` [PATCHv2 4/5] Input: EXC3000: Add support to query model and fw_version Sebastian Reichel
2020-05-19 21:12   ` Enric Balletbo i Serra
2020-05-19 21:31     ` Sebastian Reichel
2020-05-20  1:13   ` kbuild test robot
2020-05-20  1:13     ` kbuild test robot
2020-05-20  2:26   ` kbuild test robot
2020-05-20  4:38   ` kbuild test robot [this message]
2020-05-20  4:38     ` kbuild test robot
2020-05-19 18:24 ` [PATCHv2 5/5] Input: EXC3000: Add reset gpio support Sebastian Reichel
2020-05-19 20:57   ` Enric Balletbo i Serra

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=202005201229.yuObF8Yc%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=inan@distec.de \
    --cc=kbuild-all@lists.01.org \
    --cc=kernel@collabora.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=martin.fuzzey@flowbird.group \
    --cc=sebastian.reichel@collabora.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.