tree:
https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 5e9e6d86fe729cf81e8a0df5c53d326b9f2ec791 [415/1142] xlink-usb: XLink USB Remote
and Local Host driver
config: x86_64-randconfig-r026-20210514 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
425781bce01f2f1d5f553d3b2bf9ebbd6e15068c)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
https://github.com/intel/linux-intel-lts/commit/5e9e6d86fe729cf81e8a0df5c...
git remote add intel-linux-intel-lts
https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 5e9e6d86fe729cf81e8a0df5c53d326b9f2ec791
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
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 >>):
> drivers/misc/xlink-usb/local_host/mxlk_interface.c:110:20:
warning: incompatible pointer to integer conversion passing 'void *' to parameter
of type 'int' [-Wint-conversion]
return vpu_close1(data);
^~~~
drivers/misc/xlink-usb/local_host/u_xlink.h:75:20: note: passing argument to parameter
'size' here
int vpu_close1(int size);
^
1 warning generated.
--
> drivers/misc/xlink-usb/local_host/u_xlink.c:820:16: warning: ISO
C90 forbids mixing declarations and code [-Wdeclaration-after-statement]
unsigned long flags;
^
> drivers/misc/xlink-usb/local_host/u_xlink.c:978:11: warning:
comparison of distinct pointer types ('typeof (remaining) *' (aka 'unsigned
long *') and 'typeof (req->length) *' (aka 'unsigned int *'))
[-Wcompare-distinct-pointer-types]
bcopy = min(remaining,
req->length);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:875:19: note: expanded from macro 'min'
#define min(x, y) __careful_cmp(x, y, <)
^~~~~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:866:24: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^~~~~~~~~~~~~~~~
include/linux/kernel.h:856:4: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^~~~~~~~~~~~~~~~~
include/linux/kernel.h:842:29: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~
drivers/misc/xlink-usb/local_host/u_xlink.c:976:10: warning: ISO C90 forbids mixing
declarations and code [-Wdeclaration-after-statement]
size_t bcopy;
^
drivers/misc/xlink-usb/local_host/u_xlink.c:970:20: warning: ISO C90 forbids mixing
declarations and code [-Wdeclaration-after-statement]
struct list_head *pool = &port->read_pool;
^
drivers/misc/xlink-usb/local_host/u_xlink.c:992:20: warning: ISO C90 forbids mixing
declarations and code [-Wdeclaration-after-statement]
struct list_head *pool = &port->read_pool;
^
> drivers/misc/xlink-usb/local_host/u_xlink.c:996:9: warning:
variable 'BUF4' is used uninitialized whenever 'while' loop exits because
its condition is false [-Wsometimes-uninitialized]
while
(!list_empty(pool)) {
^~~~~~~~~~~~~~~~~
drivers/misc/xlink-usb/local_host/u_xlink.c:1002:9: note: uninitialized use occurs
here
return BUF4;
^~~~
drivers/misc/xlink-usb/local_host/u_xlink.c:996:9: note: remove the condition if it is
always true
while (!list_empty(pool)) {
^~~~~~~~~~~~~~~~~
1
drivers/misc/xlink-usb/local_host/u_xlink.c:993:11: note: initialize the variable
'BUF4' to silence this warning
int *BUF4;
^
= NULL
6 warnings generated.
--
> drivers/misc/xlink-usb/local_host/f_vpuusb.c:349:5: warning: no
previous prototype for function 'mxlk_trigger_reset' [-Wmissing-prototypes]
int mxlk_trigger_reset(void *arg)
^
drivers/misc/xlink-usb/local_host/f_vpuusb.c:349:1: note: declare 'static' if
the function is not intended to be used outside of this translation unit
int mxlk_trigger_reset(void *arg)
^
static
> drivers/misc/xlink-usb/local_host/f_vpuusb.c:358:28: warning:
variable 'data' is uninitialized when used within its own initialization
[-Wuninitialized]
int *data = vpu_read_swid(data);
~~~~ ^~~~
> drivers/misc/xlink-usb/local_host/f_vpuusb.c:377:5: warning: no
previous prototype for function 'vpu_setup' [-Wmissing-prototypes]
int
vpu_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl)
^
drivers/misc/xlink-usb/local_host/f_vpuusb.c:377:1: note: declare 'static' if
the function is not intended to be used outside of this translation unit
int vpu_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl)
^
static
> drivers/misc/xlink-usb/local_host/f_vpuusb.c:525:5: warning: no
previous prototype for function 'vpu_cdc_notify' [-Wmissing-prototypes]
int vpu_cdc_notify(struct f_acm *acm, u8 type, u16 value,
^
drivers/misc/xlink-usb/local_host/f_vpuusb.c:525:1: note: declare 'static' if
the function is not intended to be used outside of this translation unit
int vpu_cdc_notify(struct f_acm *acm, u8 type, u16 value,
^
static
> drivers/misc/xlink-usb/local_host/f_vpuusb.c:562:5: warning: no
previous prototype for function 'vpu_notify_serial_state' [-Wmissing-prototypes]
int vpu_notify_serial_state(struct f_acm *acm)
^
drivers/misc/xlink-usb/local_host/f_vpuusb.c:562:1: note: declare 'static' if
the function is not intended to be used outside of this translation unit
int vpu_notify_serial_state(struct f_acm *acm)
^
static
5 warnings generated.
vim +110 drivers/misc/xlink-usb/local_host/mxlk_interface.c
97
98 int xlink_usb_write(uint32_t sw_device_id, void *data, size_t *const size,
99 uint32_t timeout)
100 {
101 int mxlk;
102 int rc;
103
104 mxlk = usb_get_by_id(sw_device_id);
105 if (!mxlk)
106 return -ENODEV;
107 rc = vpu_write1(data, size, timeout);
108 if (rc < 0)
109 return rc;
110 return vpu_close1(data);
111 }
112 EXPORT_SYMBOL(xlink_usb_write);
113
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org