tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
queue-5.10
head: 9ced6633127bd25a94939777d9ecda54800859fc
commit: 9af81b257c01533da218d79bbacf0b82febf4b26 [37/74] mei: bus: block send with vtag on
non-conformat FW
config: i386-randconfig-r032-20210318 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.10
git checkout 9af81b257c01533da218d79bbacf0b82febf4b26
# save the attached .config to linux build tree
make W=1 ARCH=i386
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/misc/mei/bus.c: In function '__mei_cl_send':
> drivers/misc/mei/bus.c:62:6: error: 'vtag' undeclared
(first use in this function)
62 | if (vtag) {
| ^~~~
drivers/misc/mei/bus.c:62:6: note: each undeclared identifier is reported only once for
each function it appears in
vim +/vtag +62 drivers/misc/mei/bus.c
22
23 /**
24 * __mei_cl_send - internal client send (write)
25 *
26 * @cl: host client
27 * @buf: buffer to send
28 * @length: buffer length
29 * @mode: sending mode
30 *
31 * Return: written size bytes or < 0 on error
32 */
33 ssize_t __mei_cl_send(struct mei_cl *cl, u8 *buf, size_t length,
34 unsigned int mode)
35 {
36 struct mei_device *bus;
37 struct mei_cl_cb *cb;
38 ssize_t rets;
39
40 if (WARN_ON(!cl || !cl->dev))
41 return -ENODEV;
42
43 bus = cl->dev;
44
45 mutex_lock(&bus->device_lock);
46 if (bus->dev_state != MEI_DEV_ENABLED) {
47 rets = -ENODEV;
48 goto out;
49 }
50
51 if (!mei_cl_is_connected(cl)) {
52 rets = -ENODEV;
53 goto out;
54 }
55
56 /* Check if we have an ME client device */
57 if (!mei_me_cl_is_active(cl->me_cl)) {
58 rets = -ENOTTY;
59 goto out;
60 }
61
62 if (vtag) {
63 /* Check if vtag is supported by
client */
64 rets = mei_cl_vt_support_check(cl);
65 if (rets)
66 goto out;
67 }
68
69 if (length > mei_cl_mtu(cl)) {
70 rets = -EFBIG;
71 goto out;
72 }
73
74 while (cl->tx_cb_queued >= bus->tx_queue_limit) {
75 mutex_unlock(&bus->device_lock);
76 rets = wait_event_interruptible(cl->tx_wait,
77 cl->writing_state == MEI_WRITE_COMPLETE ||
78 (!mei_cl_is_connected(cl)));
79 mutex_lock(&bus->device_lock);
80 if (rets) {
81 if (signal_pending(current))
82 rets = -EINTR;
83 goto out;
84 }
85 if (!mei_cl_is_connected(cl)) {
86 rets = -ENODEV;
87 goto out;
88 }
89 }
90
91 cb = mei_cl_alloc_cb(cl, length, MEI_FOP_WRITE, NULL);
92 if (!cb) {
93 rets = -ENOMEM;
94 goto out;
95 }
96
97 cb->internal = !!(mode & MEI_CL_IO_TX_INTERNAL);
98 cb->blocking = !!(mode & MEI_CL_IO_TX_BLOCKING);
99 memcpy(cb->buf.data, buf, length);
100
101 rets = mei_cl_write(cl, cb);
102
103 out:
104 mutex_unlock(&bus->device_lock);
105
106 return rets;
107 }
108
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org