tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.4
head: 6d5e8cb22c2a82dde051b99b44498bbc350c7130
commit: ae588f850c1712c8560dceb311a63f993aaead90 [3/11] CHROMIUM: drm/evdi: Parse usb path
in evdi's add sysfs attribute
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.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
git remote add chrome-os
https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-4.4
git checkout ae588f850c1712c8560dceb311a63f993aaead90
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
cc1: warning: include/drm: No such file or directory [-Wmissing-include-dirs]
In file included from arch/arc/include/asm/bug.h:32,
from include/linux/bug.h:4,
from include/linux/debug_locks.h:6,
from include/linux/lockdep.h:23,
from include/linux/spinlock_types.h:18,
from include/linux/mutex.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:15,
from include/linux/kobject.h:21,
from include/linux/cdev.h:4,
from include/drm/drmP.h:36,
from drivers/gpu/drm/evdi/evdi_drv.c:10:
include/linux/cpumask.h: In function 'cpumask_check':
include/linux/cpumask.h:117:19: warning: comparison of integer expressions of different
signedness: 'unsigned int' and 'int' [-Wsign-compare]
117 | WARN_ON_ONCE(cpu >= nr_cpumask_bits);
| ^~
include/asm-generic/bug.h:123:27: note: in definition of macro 'WARN_ON_ONCE'
123 | int __ret_warn_once = !!(condition); \
| ^~~~~~~~~
In file included from include/uapi/linux/stddef.h:1,
from include/linux/stddef.h:4,
from include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/linux/list.h:4,
from include/linux/agp_backend.h:33,
from include/drm/drmP.h:35,
from drivers/gpu/drm/evdi/evdi_drv.c:10:
include/linux/highmem.h: In function 'kmap_atomic_idx_push':
include/linux/highmem.h:97:13: warning: comparison of integer expressions of different
signedness: 'int' and 'long unsigned int' [-Wsign-compare]
97 | BUG_ON(idx >= KM_TYPE_NR);
| ^~
include/linux/compiler.h:182:42: note: in definition of macro 'unlikely'
182 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/highmem.h:97:2: note: in expansion of macro 'BUG_ON'
97 | BUG_ON(idx >= KM_TYPE_NR);
| ^~~~~~
In file included from include/linux/fb.h:4,
from include/drm/drm_crtc.h:31,
from include/drm/drmP.h:70,
from drivers/gpu/drm/evdi/evdi_drv.c:10:
include/drm/drmP.h: In function 'drm_can_sleep':
include/linux/kgdb.h:320:42: warning: comparison of integer expressions of different
signedness: '__u32' {aka 'unsigned int'} and 'int'
[-Wsign-compare]
320 | (irqs_disabled() && (smp_processor_id() ==
atomic_read(&kgdb_active)))
| ^~
include/drm/drmP.h:1249:21: note: in expansion of macro 'in_dbg_master'
1249 | if (in_atomic() || in_dbg_master() || irqs_disabled())
| ^~~~~~~~~~~~~
In file included from drivers/gpu/drm/evdi/evdi_drv.h:23,
from drivers/gpu/drm/evdi/evdi_drv.c:16:
include/linux/reservation.h: In function 'reservation_object_fini':
include/linux/reservation.h:122:17: warning: comparison of integer expressions of
different signedness: 'int' and 'u32' {aka 'unsigned int'}
[-Wsign-compare]
122 | for (i = 0; i < fobj->shared_count; ++i)
| ^
drivers/gpu/drm/evdi/evdi_drv.c: In function 'evdi_remove_all':
drivers/gpu/drm/evdi/evdi_drv.c:159:16: warning: comparison of integer expressions of
different signedness: 'int' and 'unsigned int' [-Wsign-compare]
159 | for (i = 0; i < evdi_context.dev_count; ++i) {
| ^
drivers/gpu/drm/evdi/evdi_drv.c: In function 'add_device_with_usb_path':
> drivers/gpu/drm/evdi/evdi_drv.c:202:8: warning: variable
'itf_token' set but not used [-Wunused-but-set-variable]
202 | char
*itf_token = NULL;
| ^~~~~~~~~
drivers/gpu/drm/evdi/evdi_drv.c: In function 'evdi_init':
drivers/gpu/drm/evdi/evdi_drv.c:315:17: warning: comparison of integer expressions of
different signedness: 'int' and 'unsigned int' [-Wsign-compare]
315 | for (i = 0; i < ARRAY_SIZE(evdi_device_attributes); i++) {
| ^
drivers/gpu/drm/evdi/evdi_drv.c: In function 'evdi_exit':
drivers/gpu/drm/evdi/evdi_drv.c:332:17: warning: comparison of integer expressions of
different signedness: 'int' and 'unsigned int' [-Wsign-compare]
332 | for (i = 0; i < ARRAY_SIZE(evdi_device_attributes); i++) {
| ^
vim +/itf_token +202 drivers/gpu/drm/evdi/evdi_drv.c
194
195 static ssize_t add_device_with_usb_path(__always_unused struct device *dev,
196 const char *buf, size_t count)
197 {
198 char *usb_path = kstrdup(buf, GFP_KERNEL);
199 char *temp_path = usb_path;
200 char *bus_token = NULL;
201 char *usb_token = NULL;
202 char *itf_token = NULL;
203
204 temp_path = strnstr(temp_path, "usb:", count);
205 if (!temp_path)
206 goto err_parse_usb_path;
207
208
209 temp_path = strim(temp_path);
210
211 bus_token = strsep(&temp_path, ":");
212 if (!bus_token)
213 goto err_parse_usb_path;
214
215 usb_token = strsep(&temp_path, ":");
216 if (!usb_token)
217 goto err_parse_usb_path;
218
219 itf_token = strsep(&temp_path, ":");
220
221
222 EVDI_INFO("Attaching to %s:%s\n", bus_token, usb_token);
223 return count;
224
225 err_parse_usb_path:
226 EVDI_ERROR("Unable to parse usb path: %s", buf);
227 kfree(usb_path);
228 return -EINVAL;
229 }
230
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org