tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.14
head: 6f8992e59d85c46b0273cd2a3a9ab9cea8ddb4a1
commit: 014bcd16d12923ffc3255dac663b73b309fbe88d [10/19] CHROMIUM: drm/evdi: Parse usb
path in evdi's add sysfs attribute
config:
arm64-chromiumos-arm64-customedconfig-chrome-os:chromeos-4.14:1bf13820918c8ea2f8d01d646008dbc3c1cb5bee
(attached as .config)
compiler: aarch64-linux-gcc (GCC) 7.5.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
git remote add chrome-os
https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-4.14
git checkout 014bcd16d12923ffc3255dac663b73b309fbe88d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/evdi/evdi_drv.c: In function 'add_device_with_usb_path':
> drivers/gpu/drm/evdi/evdi_drv.c:285:8: error: variable
'itf_token' set but not used [-Werror=unused-but-set-variable]
char
*itf_token = NULL;
^~~~~~~~~
cc1: all warnings being treated as errors
vim +/itf_token +285 drivers/gpu/drm/evdi/evdi_drv.c
277
278 static ssize_t add_device_with_usb_path(__always_unused struct device *dev,
279 const char *buf, size_t count)
280 {
281 char *usb_path = kstrdup(buf, GFP_KERNEL);
282 char *temp_path = usb_path;
283 char *bus_token = NULL;
284 char *usb_token = NULL;
285 char *itf_token = NULL;
286
287 temp_path = strnstr(temp_path, "usb:", count);
288 if (!temp_path)
289 goto err_parse_usb_path;
290
291
292 temp_path = strim(temp_path);
293
294 bus_token = strsep(&temp_path, ":");
295 if (!bus_token)
296 goto err_parse_usb_path;
297
298 usb_token = strsep(&temp_path, ":");
299 if (!usb_token)
300 goto err_parse_usb_path;
301
302 itf_token = strsep(&temp_path, ":");
303
304
305 EVDI_INFO("Attaching to %s:%s\n", bus_token, usb_token);
306 return count;
307
308 err_parse_usb_path:
309 EVDI_ERROR("Unable to parse usb path: %s", buf);
310 kfree(usb_path);
311 return -EINVAL;
312 }
313
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org