From: kernel test robot <lkp@intel.com>
To: Alistair Francis <alistair@alistair23.me>,
dmitry.torokhov@gmail.com, linux-input@vger.kernel.org,
linux-imx@nxp.com, kernel@pengutronix.de, pinglinux@gmail.com,
tatsunosuke.tobita@wacom.com, junkpainting@gmail.com,
ping.cheng@wacom.com
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
alistair23@gmail.com
Subject: Re: [PATCH v8 4/9] Input: wacom_i2c - Add touchscren properties
Date: Tue, 3 Aug 2021 22:45:15 +0800 [thread overview]
Message-ID: <202108032203.MH2AniPB-lkp@intel.com> (raw)
In-Reply-To: <20210803084902.336-4-alistair@alistair23.me>
[-- Attachment #1: Type: text/plain, Size: 5999 bytes --]
Hi Alistair,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on next-20210802]
[also build test WARNING on v5.14-rc4]
[cannot apply to input/next robh/for-next hid/for-next linus/master v5.14-rc4 v5.14-rc3 v5.14-rc2]
[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/Alistair-Francis/dt-bindings-Add-Wacom-to-vendor-bindings/20210803-165202
base: 3a928c58ca10d61051e6a2be65a81418615ef92c
config: nds32-randconfig-p002-20210803 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/e05730114340bbb6573b02263781927ae727f53e
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Alistair-Francis/dt-bindings-Add-Wacom-to-vendor-bindings/20210803-165202
git checkout e05730114340bbb6573b02263781927ae727f53e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/input/touchscreen/wacom_i2c.c: In function 'wacom_i2c_irq':
>> drivers/input/touchscreen/wacom_i2c.c:98:18: warning: variable 'y' set but not used [-Wunused-but-set-variable]
98 | unsigned int x, y, pressure;
| ^
>> drivers/input/touchscreen/wacom_i2c.c:98:15: warning: variable 'x' set but not used [-Wunused-but-set-variable]
98 | unsigned int x, y, pressure;
| ^
cppcheck possible warnings: (new ones prefixed by >>, may not real problems)
>> kernel/trace/trace_osnoise.c:1612:8: warning: snprintf format string requires 2 parameters but only 1 is given. [wrongPrintfScanfArgNum]
len = snprintf(NULL, 0, "%*pbln", cpumask_pr_args(&osnoise_cpumask)) + 1;
^
kernel/trace/trace_osnoise.c:1619:8: warning: snprintf format string requires 2 parameters but only 1 is given. [wrongPrintfScanfArgNum]
len = snprintf(mask_str, len, "%*pbln", cpumask_pr_args(&osnoise_cpumask));
^
vim +/y +98 drivers/input/touchscreen/wacom_i2c.c
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 91
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 92 static irqreturn_t wacom_i2c_irq(int irq, void *dev_id)
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 93 {
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 94 struct wacom_i2c *wac_i2c = dev_id;
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 95 struct input_dev *input = wac_i2c->input;
e05730114340bb Alistair Francis 2021-08-03 96 struct wacom_features *features = &wac_i2c->features;
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 97 u8 *data = wac_i2c->data;
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 @98 unsigned int x, y, pressure;
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 99 unsigned char tsw, f1, f2, ers;
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 100 int error;
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 101
d568778298f583 Dmitry Torokhov 2012-04-10 102 error = i2c_master_recv(wac_i2c->client,
d568778298f583 Dmitry Torokhov 2012-04-10 103 wac_i2c->data, sizeof(wac_i2c->data));
d568778298f583 Dmitry Torokhov 2012-04-10 104 if (error < 0)
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 105 goto out;
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 106
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 107 tsw = data[3] & 0x01;
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 108 ers = data[3] & 0x04;
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 109 f1 = data[3] & 0x02;
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 110 f2 = data[3] & 0x10;
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 111 x = le16_to_cpup((__le16 *)&data[4]);
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 112 y = le16_to_cpup((__le16 *)&data[6]);
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 113 pressure = le16_to_cpup((__le16 *)&data[8]);
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 114
8855f30cd2b680 Tatsunosuke Tobita 2013-06-18 115 if (!wac_i2c->prox)
8855f30cd2b680 Tatsunosuke Tobita 2013-06-18 116 wac_i2c->tool = (data[3] & 0x0c) ?
8855f30cd2b680 Tatsunosuke Tobita 2013-06-18 117 BTN_TOOL_RUBBER : BTN_TOOL_PEN;
8855f30cd2b680 Tatsunosuke Tobita 2013-06-18 118
8855f30cd2b680 Tatsunosuke Tobita 2013-06-18 119 wac_i2c->prox = data[3] & 0x20;
8855f30cd2b680 Tatsunosuke Tobita 2013-06-18 120
e05730114340bb Alistair Francis 2021-08-03 121 touchscreen_report_pos(input, &wac_i2c->props, features->x_max,
e05730114340bb Alistair Francis 2021-08-03 122 features->y_max, true);
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 123 input_report_key(input, BTN_TOUCH, tsw || ers);
8855f30cd2b680 Tatsunosuke Tobita 2013-06-18 124 input_report_key(input, wac_i2c->tool, wac_i2c->prox);
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 125 input_report_key(input, BTN_STYLUS, f1);
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 126 input_report_key(input, BTN_STYLUS2, f2);
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 127 input_report_abs(input, ABS_PRESSURE, pressure);
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 128 input_sync(input);
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 129
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 130 out:
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 131 return IRQ_HANDLED;
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 132 }
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 133
---
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: 31318 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 v8 4/9] Input: wacom_i2c - Add touchscren properties
Date: Tue, 03 Aug 2021 22:45:15 +0800 [thread overview]
Message-ID: <202108032203.MH2AniPB-lkp@intel.com> (raw)
In-Reply-To: <20210803084902.336-4-alistair@alistair23.me>
[-- Attachment #1: Type: text/plain, Size: 6098 bytes --]
Hi Alistair,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on next-20210802]
[also build test WARNING on v5.14-rc4]
[cannot apply to input/next robh/for-next hid/for-next linus/master v5.14-rc4 v5.14-rc3 v5.14-rc2]
[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/Alistair-Francis/dt-bindings-Add-Wacom-to-vendor-bindings/20210803-165202
base: 3a928c58ca10d61051e6a2be65a81418615ef92c
config: nds32-randconfig-p002-20210803 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/e05730114340bbb6573b02263781927ae727f53e
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Alistair-Francis/dt-bindings-Add-Wacom-to-vendor-bindings/20210803-165202
git checkout e05730114340bbb6573b02263781927ae727f53e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/input/touchscreen/wacom_i2c.c: In function 'wacom_i2c_irq':
>> drivers/input/touchscreen/wacom_i2c.c:98:18: warning: variable 'y' set but not used [-Wunused-but-set-variable]
98 | unsigned int x, y, pressure;
| ^
>> drivers/input/touchscreen/wacom_i2c.c:98:15: warning: variable 'x' set but not used [-Wunused-but-set-variable]
98 | unsigned int x, y, pressure;
| ^
cppcheck possible warnings: (new ones prefixed by >>, may not real problems)
>> kernel/trace/trace_osnoise.c:1612:8: warning: snprintf format string requires 2 parameters but only 1 is given. [wrongPrintfScanfArgNum]
len = snprintf(NULL, 0, "%*pbln", cpumask_pr_args(&osnoise_cpumask)) + 1;
^
kernel/trace/trace_osnoise.c:1619:8: warning: snprintf format string requires 2 parameters but only 1 is given. [wrongPrintfScanfArgNum]
len = snprintf(mask_str, len, "%*pbln", cpumask_pr_args(&osnoise_cpumask));
^
vim +/y +98 drivers/input/touchscreen/wacom_i2c.c
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 91
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 92 static irqreturn_t wacom_i2c_irq(int irq, void *dev_id)
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 93 {
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 94 struct wacom_i2c *wac_i2c = dev_id;
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 95 struct input_dev *input = wac_i2c->input;
e05730114340bb Alistair Francis 2021-08-03 96 struct wacom_features *features = &wac_i2c->features;
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 97 u8 *data = wac_i2c->data;
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 @98 unsigned int x, y, pressure;
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 99 unsigned char tsw, f1, f2, ers;
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 100 int error;
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 101
d568778298f583 Dmitry Torokhov 2012-04-10 102 error = i2c_master_recv(wac_i2c->client,
d568778298f583 Dmitry Torokhov 2012-04-10 103 wac_i2c->data, sizeof(wac_i2c->data));
d568778298f583 Dmitry Torokhov 2012-04-10 104 if (error < 0)
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 105 goto out;
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 106
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 107 tsw = data[3] & 0x01;
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 108 ers = data[3] & 0x04;
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 109 f1 = data[3] & 0x02;
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 110 f2 = data[3] & 0x10;
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 111 x = le16_to_cpup((__le16 *)&data[4]);
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 112 y = le16_to_cpup((__le16 *)&data[6]);
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 113 pressure = le16_to_cpup((__le16 *)&data[8]);
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 114
8855f30cd2b680 Tatsunosuke Tobita 2013-06-18 115 if (!wac_i2c->prox)
8855f30cd2b680 Tatsunosuke Tobita 2013-06-18 116 wac_i2c->tool = (data[3] & 0x0c) ?
8855f30cd2b680 Tatsunosuke Tobita 2013-06-18 117 BTN_TOOL_RUBBER : BTN_TOOL_PEN;
8855f30cd2b680 Tatsunosuke Tobita 2013-06-18 118
8855f30cd2b680 Tatsunosuke Tobita 2013-06-18 119 wac_i2c->prox = data[3] & 0x20;
8855f30cd2b680 Tatsunosuke Tobita 2013-06-18 120
e05730114340bb Alistair Francis 2021-08-03 121 touchscreen_report_pos(input, &wac_i2c->props, features->x_max,
e05730114340bb Alistair Francis 2021-08-03 122 features->y_max, true);
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 123 input_report_key(input, BTN_TOUCH, tsw || ers);
8855f30cd2b680 Tatsunosuke Tobita 2013-06-18 124 input_report_key(input, wac_i2c->tool, wac_i2c->prox);
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 125 input_report_key(input, BTN_STYLUS, f1);
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 126 input_report_key(input, BTN_STYLUS2, f2);
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 127 input_report_abs(input, ABS_PRESSURE, pressure);
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 128 input_sync(input);
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 129
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 130 out:
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 131 return IRQ_HANDLED;
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 132 }
5a966261c0dfb8 Tatsunosuke Tobita 2012-03-25 133
---
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: 31318 bytes --]
next prev parent reply other threads:[~2021-08-03 14:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-03 8:48 [PATCH v8 1/9] dt-bindings: Add Wacom to vendor bindings Alistair Francis
2021-08-03 8:48 ` [PATCH v8 2/9] dt-bindings: touchscreen: Initial commit of wacom,i2c Alistair Francis
2021-08-11 18:06 ` Rob Herring
2021-08-03 8:48 ` [PATCH v8 3/9] Input: wacom_i2c - Add device tree support to wacom_i2c Alistair Francis
2021-08-03 8:48 ` [PATCH v8 4/9] Input: wacom_i2c - Add touchscren properties Alistair Francis
2021-08-03 14:45 ` kernel test robot [this message]
2021-08-03 14:45 ` kernel test robot
2021-08-03 8:48 ` [PATCH v8 5/9] Input: wacom_i2c - Add support for distance and tilt x/y Alistair Francis
2021-08-03 8:48 ` [PATCH v8 6/9] Input: wacom_i2c - Clean up the query device fields Alistair Francis
2021-08-03 8:49 ` [PATCH v8 7/9] Input: wacom_i2c - Add support for vdd regulator Alistair Francis
2021-08-03 8:49 ` [PATCH v8 8/9] ARM: imx_v6_v7_defconfig: Enable Wacom I2C Alistair Francis
2021-08-03 8:49 ` [PATCH v8 9/9] ARM: dts: imx7d: remarkable2: add wacom digitizer device Alistair Francis
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=202108032203.MH2AniPB-lkp@intel.com \
--to=lkp@intel.com \
--cc=alistair23@gmail.com \
--cc=alistair@alistair23.me \
--cc=dmitry.torokhov@gmail.com \
--cc=junkpainting@gmail.com \
--cc=kbuild-all@lists.01.org \
--cc=kernel@pengutronix.de \
--cc=linux-imx@nxp.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ping.cheng@wacom.com \
--cc=pinglinux@gmail.com \
--cc=tatsunosuke.tobita@wacom.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.