lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202108032203.MH2AniPB-lkp@intel.com>
Date:   Tue, 3 Aug 2021 22:45:15 +0800
From:   kernel test robot <lkp@...el.com>
To:     Alistair Francis <alistair@...stair23.me>,
        dmitry.torokhov@...il.com, linux-input@...r.kernel.org,
        linux-imx@....com, kernel@...gutronix.de, pinglinux@...il.com,
        tatsunosuke.tobita@...om.com, junkpainting@...il.com,
        ping.cheng@...om.com
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        alistair23@...il.com
Subject: Re: [PATCH v8 4/9] Input: wacom_i2c - Add touchscren properties

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@...el.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

Download attachment ".config.gz" of type "application/gzip" (31318 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ