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] [day] [month] [year] [list]
Message-ID: <202512021811.5UvbJjzl-lkp@intel.com>
Date: Tue, 2 Dec 2025 18:48:24 +0800
From: kernel test robot <lkp@...el.com>
To: Hendrik Noack <hendrik-noack@....de>,
	Dmitry Torokhov <dmitry.torokhov@...il.com>,
	Rob Herring <robh@...nel.org>,
	Krzysztof Kozlowski <krzk@...nel.org>,
	Conor Dooley <conor+dt@...nel.org>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
	Hendrik Noack <hendrik-noack@....de>, linux-input@...r.kernel.org,
	devicetree@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 2/2] Input: Add support for Wacom W9000-series
 penabled touchscreens

Hi Hendrik,

kernel test robot noticed the following build errors:

[auto build test ERROR on dtor-input/next]
[also build test ERROR on dtor-input/for-linus robh/for-next krzk-dt/for-next linus/master v6.18 next-20251202]
[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#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Hendrik-Noack/dt-bindings-Input-Add-Wacom-W9000-series-penabled-touchscreens/20251202-010643
base:   https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next
patch link:    https://lore.kernel.org/r/20251201170047.125307-1-hendrik-noack%40gmx.de
patch subject: [PATCH v2 2/2] Input: Add support for Wacom W9000-series penabled touchscreens
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20251202/202512021811.5UvbJjzl-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251202/202512021811.5UvbJjzl-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512021811.5UvbJjzl-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/input/touchscreen/wacom_w9000.c:99:28: error: call to undeclared function 'get_unaligned_be16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      99 |                 wacom_data->fw_version = get_unaligned_be16(&data[7]);
         |                                          ^
   drivers/input/touchscreen/wacom_w9000.c:110:27: error: call to undeclared function 'get_unaligned_be16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     110 |         wacom_data->prop.max_x = get_unaligned_be16(&data[1]);
         |                                  ^
   drivers/input/touchscreen/wacom_w9000.c:150:7: error: call to undeclared function 'get_unaligned_be16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     150 |                 x = get_unaligned_be16(&data[1]);
         |                     ^
   3 errors generated.


vim +/get_unaligned_be16 +99 drivers/input/touchscreen/wacom_w9000.c

    84	
    85	static int wacom_w9000_query(struct wacom_w9000_data *wacom_data)
    86	{
    87		struct i2c_client *client = wacom_data->client;
    88		struct device *dev = &wacom_data->client->dev;
    89		bool retried = false;
    90		int ret;
    91		u8 data[COM_QUERY_NUM_MAX];
    92	
    93	retry:
    94		ret = wacom_w9000_read(client, COM_QUERY, wacom_data->variant->com_query_num, data);
    95		if (ret)
    96			return ret;
    97	
    98		if (data[0] == 0x0f) {
  > 99			wacom_data->fw_version = get_unaligned_be16(&data[7]);
   100		} else if (!retried) {
   101			retried = true;
   102			goto retry;
   103		} else {
   104			return -EIO;
   105		}
   106	
   107		dev_dbg(dev, "query: %X, %X, %X, %X, %X, %X, %X, %X, %X, %d\n", data[0], data[1], data[2],
   108			data[3], data[4], data[5], data[6], data[7], data[8], retried);
   109	
   110		wacom_data->prop.max_x = get_unaligned_be16(&data[1]);
   111		wacom_data->prop.max_y = get_unaligned_be16(&data[3]);
   112		wacom_data->max_pressure = get_unaligned_be16(&data[5]);
   113	
   114		dev_dbg(dev, "max_x:%d, max_y:%d, max_pressure:%d, fw:0x%X", wacom_data->prop.max_x,
   115			wacom_data->prop.max_y, wacom_data->max_pressure,
   116			wacom_data->fw_version);
   117	
   118		return 0;
   119	}
   120	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ