tree:
https://github.com/intel/linux-intel-lts.git 5.10/KMB-yocto
head: afd0620ed0e5ce91d03f51deb2e551721ba97640
commit: 7dbe73d93ab1bc48db1e01693756d1354b577364 [13/62] misc: xlink-pcie: rh: Add PCIe EP
driver for Remote Host
config: x86_64-allyesconfig
(
https://download.01.org/0day-ci/archive/20211211/202112110739.cFgP8oPm-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/intel/linux-intel-lts/commit/7dbe73d93ab1bc48db1e01693...
git remote add intel-lts
https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-lts 5.10/KMB-yocto
git checkout 7dbe73d93ab1bc48db1e01693756d1354b577364
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/misc/xlink-core/
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-core/xlink-core.c:1367:18: warning: no
previous prototype for 'xlink_write_data_crc' [-Wmissing-prototypes]
1367 | enum xlink_error xlink_write_data_crc(struct xlink_handle *handle,
| ^~~~~~~~~~~~~~~~~~~~
> drivers/misc/xlink-core/xlink-core.c:1442:18: warning: no
previous prototype for 'xlink_read_data_to_buffer_crc' [-Wmissing-prototypes]
1442 | enum xlink_error xlink_read_data_to_buffer_crc(struct xlink_handle
*handle,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> drivers/misc/xlink-core/xlink-core.c:1946:6: warning: no previous
prototype for 'kmb_xlink_release' [-Wmissing-prototypes]
1946 | void
kmb_xlink_release(struct device *dev) { return; }
| ^~~~~~~~~~~~~~~~~
drivers/misc/xlink-core/xlink-core.c: In function 'kmb_xlink_exit':
> drivers/misc/xlink-core/xlink-core.c:1971:6: warning: variable
'rc' set but not used [-Wunused-but-set-variable]
1971 | int rc, idx;
| ^~
--
> drivers/misc/xlink-core/xlink-dispatcher.c:124:21: warning: no
previous prototype for 'event_dequeue_buffer' [-Wmissing-prototypes]
124 | struct xlink_event *event_dequeue_buffer(struct event_queue *queue)
| ^~~~~~~~~~~~~~~~~~~~
> drivers/misc/xlink-core/xlink-dispatcher.c:139:5: warning: no
previous prototype for 'event_enqueue_buffer' [-Wmissing-prototypes]
139 | int event_enqueue_buffer(struct event_queue *queue, struct xlink_event *event)
| ^~~~~~~~~~~~~~~~~~~~
> drivers/misc/xlink-core/xlink-dispatcher.c:471:6: warning: no
previous prototype for 'deinit_buffers' [-Wmissing-prototypes]
471 |
void deinit_buffers(struct event_queue *queue)
| ^~~~~~~~~~~~~~
> drivers/misc/xlink-core/xlink-dispatcher.c:485:5: warning: no
previous prototype for 'init_buffers' [-Wmissing-prototypes]
485 | int
init_buffers(struct event_queue *queue)
| ^~~~~~~~~~~~
drivers/misc/xlink-core/xlink-dispatcher.c:170:12: warning: 'event_enqueue'
defined but not used [-Wunused-function]
170 | static int event_enqueue(struct event_queue *queue, struct xlink_event *event)
| ^~~~~~~~~~~~~
vim +/xlink_write_data_crc +1367 drivers/misc/xlink-core/xlink-core.c
da8a22c1d117dc Seamus Kelly 2021-02-04 1366
da8a22c1d117dc Seamus Kelly 2021-02-04 @1367 enum xlink_error xlink_write_data_crc(struct
xlink_handle *handle,
da8a22c1d117dc Seamus Kelly 2021-02-04 1368 uint16_t chan, const uint8_t *message,
da8a22c1d117dc Seamus Kelly 2021-02-04 1369 uint32_t size)
da8a22c1d117dc Seamus Kelly 2021-02-04 1370 {
da8a22c1d117dc Seamus Kelly 2021-02-04 1371 enum xlink_error rc = 0;
da8a22c1d117dc Seamus Kelly 2021-02-04 1372 /* To be implemented */
da8a22c1d117dc Seamus Kelly 2021-02-04 1373 return rc;
da8a22c1d117dc Seamus Kelly 2021-02-04 1374 }
da8a22c1d117dc Seamus Kelly 2021-02-04 1375 EXPORT_SYMBOL(xlink_write_data_crc);
da8a22c1d117dc Seamus Kelly 2021-02-04 1376
da8a22c1d117dc Seamus Kelly 2021-02-04 1377 enum xlink_error xlink_read_data(struct
xlink_handle *handle,
da8a22c1d117dc Seamus Kelly 2021-02-04 1378 uint16_t chan, uint8_t **pmessage,
uint32_t *size)
da8a22c1d117dc Seamus Kelly 2021-02-04 1379 {
da8a22c1d117dc Seamus Kelly 2021-02-04 1380 enum xlink_error rc = 0;
da8a22c1d117dc Seamus Kelly 2021-02-04 1381 struct xlink_link *link = NULL;
da8a22c1d117dc Seamus Kelly 2021-02-04 1382 struct xlink_event *event = NULL;
da8a22c1d117dc Seamus Kelly 2021-02-04 1383 int event_queued = 0;
da8a22c1d117dc Seamus Kelly 2021-02-04 1384
da8a22c1d117dc Seamus Kelly 2021-02-04 1385 if (!xlink || !handle)
da8a22c1d117dc Seamus Kelly 2021-02-04 1386 return X_LINK_ERROR;
da8a22c1d117dc Seamus Kelly 2021-02-04 1387
bda567cbcce896 Shashank A P 2021-04-08 1388 trace_xlink_read(handle->sw_device_id,
chan, *size);
da8a22c1d117dc Seamus Kelly 2021-02-04 1389 link =
get_link_by_sw_device_id(handle->sw_device_id);
da8a22c1d117dc Seamus Kelly 2021-02-04 1390 if (!link)
da8a22c1d117dc Seamus Kelly 2021-02-04 1391 return X_LINK_ERROR;
da8a22c1d117dc Seamus Kelly 2021-02-04 1392
bda567cbcce896 Shashank A P 2021-04-08 1393
trace_xlink_read_mutex(handle->sw_device_id, chan, *size);
da8a22c1d117dc Seamus Kelly 2021-02-04 1394 event = xlink_create_event(link->id,
XLINK_READ_REQ, &link->handle, chan,
da8a22c1d117dc Seamus Kelly 2021-02-04 1395 *size, 0);
bda567cbcce896 Shashank A P 2021-04-08 1396
bda567cbcce896 Shashank A P 2021-04-08 1397
trace_xlink_read_alloc_event(handle->sw_device_id, chan, *size);
da8a22c1d117dc Seamus Kelly 2021-02-04 1398 if (!event)
da8a22c1d117dc Seamus Kelly 2021-02-04 1399 return X_LINK_ERROR;
da8a22c1d117dc Seamus Kelly 2021-02-04 1400
da8a22c1d117dc Seamus Kelly 2021-02-04 1401 event->pdata = (void **)pmessage;
da8a22c1d117dc Seamus Kelly 2021-02-04 1402 event->length = size;
da8a22c1d117dc Seamus Kelly 2021-02-04 1403 rc = xlink_multiplexer_tx(event,
&event_queued);
da8a22c1d117dc Seamus Kelly 2021-02-04 1404 if (!event_queued) {
da8a22c1d117dc Seamus Kelly 2021-02-04 1405 xlink_destroy_event(event);
da8a22c1d117dc Seamus Kelly 2021-02-04 1406 }
bda567cbcce896 Shashank A P 2021-04-08 1407
trace_xlink_read_data_completion(handle->sw_device_id, chan, *size);
da8a22c1d117dc Seamus Kelly 2021-02-04 1408 return rc;
da8a22c1d117dc Seamus Kelly 2021-02-04 1409 }
da8a22c1d117dc Seamus Kelly 2021-02-04 1410 EXPORT_SYMBOL(xlink_read_data);
da8a22c1d117dc Seamus Kelly 2021-02-04 1411
da8a22c1d117dc Seamus Kelly 2021-02-04 1412 enum xlink_error
xlink_read_data_to_buffer(struct xlink_handle *handle,
da8a22c1d117dc Seamus Kelly 2021-02-04 1413 uint16_t chan, uint8_t * const message,
uint32_t *size)
da8a22c1d117dc Seamus Kelly 2021-02-04 1414 {
da8a22c1d117dc Seamus Kelly 2021-02-04 1415 enum xlink_error rc = 0;
da8a22c1d117dc Seamus Kelly 2021-02-04 1416 struct xlink_link *link = NULL;
da8a22c1d117dc Seamus Kelly 2021-02-04 1417 struct xlink_event *event = NULL;
da8a22c1d117dc Seamus Kelly 2021-02-04 1418 int event_queued = 0;
da8a22c1d117dc Seamus Kelly 2021-02-04 1419
da8a22c1d117dc Seamus Kelly 2021-02-04 1420 if (!xlink || !handle)
da8a22c1d117dc Seamus Kelly 2021-02-04 1421 return X_LINK_ERROR;
da8a22c1d117dc Seamus Kelly 2021-02-04 1422
da8a22c1d117dc Seamus Kelly 2021-02-04 1423 link =
get_link_by_sw_device_id(handle->sw_device_id);
da8a22c1d117dc Seamus Kelly 2021-02-04 1424 if (!link)
da8a22c1d117dc Seamus Kelly 2021-02-04 1425 return X_LINK_ERROR;
da8a22c1d117dc Seamus Kelly 2021-02-04 1426
da8a22c1d117dc Seamus Kelly 2021-02-04 1427 event = xlink_create_event(link->id,
XLINK_READ_TO_BUFFER_REQ,
da8a22c1d117dc Seamus Kelly 2021-02-04 1428 &link->handle, chan, *size, 0);
da8a22c1d117dc Seamus Kelly 2021-02-04 1429 if (!event)
da8a22c1d117dc Seamus Kelly 2021-02-04 1430 return X_LINK_ERROR;
da8a22c1d117dc Seamus Kelly 2021-02-04 1431
da8a22c1d117dc Seamus Kelly 2021-02-04 1432 event->data = message;
da8a22c1d117dc Seamus Kelly 2021-02-04 1433 event->length = size;
da8a22c1d117dc Seamus Kelly 2021-02-04 1434 rc = xlink_multiplexer_tx(event,
&event_queued);
da8a22c1d117dc Seamus Kelly 2021-02-04 1435 if (!event_queued) {
da8a22c1d117dc Seamus Kelly 2021-02-04 1436 xlink_destroy_event(event);
da8a22c1d117dc Seamus Kelly 2021-02-04 1437 }
da8a22c1d117dc Seamus Kelly 2021-02-04 1438 return rc;
da8a22c1d117dc Seamus Kelly 2021-02-04 1439 }
da8a22c1d117dc Seamus Kelly 2021-02-04 1440 EXPORT_SYMBOL(xlink_read_data_to_buffer);
da8a22c1d117dc Seamus Kelly 2021-02-04 1441
da8a22c1d117dc Seamus Kelly 2021-02-04 @1442 enum xlink_error
xlink_read_data_to_buffer_crc(struct xlink_handle *handle,
da8a22c1d117dc Seamus Kelly 2021-02-04 1443 uint16_t chan, uint8_t * const message,
uint32_t *size)
da8a22c1d117dc Seamus Kelly 2021-02-04 1444 {
da8a22c1d117dc Seamus Kelly 2021-02-04 1445 enum xlink_error rc = 0;
da8a22c1d117dc Seamus Kelly 2021-02-04 1446 /* To be implemented */
da8a22c1d117dc Seamus Kelly 2021-02-04 1447 return rc;
da8a22c1d117dc Seamus Kelly 2021-02-04 1448 }
da8a22c1d117dc Seamus Kelly 2021-02-04 1449
EXPORT_SYMBOL(xlink_read_data_to_buffer_crc);
da8a22c1d117dc Seamus Kelly 2021-02-04 1450
:::::: The code at line 1367 was first introduced by commit
:::::: da8a22c1d117dc7a34005542869efd709361b4d9 xlink-core: Add Keem Bay XLink Core
Module
:::::: TO: Seamus Kelly <seamus.kelly(a)intel.com>
:::::: CC: Ranjan Dutta <ranjan.dutta(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org