drivers/usb/gadget/legacy/inode.c:1364:8: warning: Redundant initialization for 'value'. The initialized value is overwritten before it is read. [redundantInitialization]
by kbuild test robot
Hi Masahiro,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: bef7b2a7be28638770972ab2709adf11d601c11a
commit: df8df5e4bc37e39010cfdf5d50cf726fe08aae5b usb: get rid of 'choice' for legacy gadget drivers
date: 3 weeks ago
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
cppcheck warnings: (new ones prefixed by >>)
>> drivers/usb/gadget/legacy/inode.c:1364:8: warning: Redundant initialization for 'value'. The initialized value is overwritten before it is read. [redundantInitialization]
>> value = -EOPNOTSUPP;
^
>> drivers/usb/gadget/legacy/inode.c:1331:15: note: value is initialized
>> int value = -EOPNOTSUPP;
^
>> drivers/usb/gadget/legacy/inode.c:1364:8: note: value is overwritten
>> value = -EOPNOTSUPP;
^
drivers/usb/gadget/legacy/inode.c:1817:8: warning: Redundant initialization for 'value'. The initialized value is overwritten before it is read. [redundantInitialization]
>> value = -EINVAL;
^
drivers/usb/gadget/legacy/inode.c:1787:18: note: value is initialized
>> ssize_t value = len, length = len;
^
drivers/usb/gadget/legacy/inode.c:1817:8: note: value is overwritten
>> value = -EINVAL;
^
--
>> drivers/usb/gadget/legacy/g_ffs.c:181:10: warning: Variable 'ret' is assigned a value that is never used. [unreadVariable]
int ret = 0;
^
--
>> drivers/usb/gadget/legacy/mass_storage.c:104:38: warning: syntax error [syntaxError]
>> FSG_MODULE_PARAMETERS(/* no prefix */, mod_data);
^
--
>> drivers/usb/gadget/legacy/hid.c:142:6: warning: Condition '!funcs' is always false [knownConditionTrueFalse]
>> if (!funcs)
^
>> drivers/usb/gadget/legacy/hid.c:137:22: note: Assignment 'funcs=0', assigned value is 0
>> int status, funcs = 0;
^
>> drivers/usb/gadget/legacy/hid.c:140:3: note: funcs is incremented', new value is 1
>> funcs++;
^
>> drivers/usb/gadget/legacy/hid.c:142:6: note: Condition '!funcs' is always false
>> if (!funcs)
^
--
>> drivers/usb/gadget/legacy/dbgp.c:364:7: warning: Variable 'err' is assigned a value that is never used. [unreadVariable]
err = 0;
^
--
>> drivers/usb/gadget/legacy/multi.c:121:38: warning: syntax error [syntaxError]
>> FSG_MODULE_PARAMETERS(/* no prefix */, fsg_mod_data);
^
--
>> drivers/usb/gadget/legacy/nokia.c:55:38: warning: syntax error [syntaxError]
>> FSG_MODULE_PARAMETERS(/* no prefix */, fsg_mod_data);
^
--
>> drivers/usb/gadget/legacy/acm_ms.c:94:38: warning: syntax error [syntaxError]
>> FSG_MODULE_PARAMETERS(/* no prefix */, fsg_mod_data);
^
vim +/value +1364 drivers/usb/gadget/legacy/inode.c
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1325
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1326 static int
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1327 gadgetfs_setup (struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1328 {
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1329 struct dev_data *dev = get_gadget_data (gadget);
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1330 struct usb_request *req = dev->req;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 @1331 int value = -EOPNOTSUPP;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1332 struct usb_gadgetfs_event *event;
1bbc169621cbe5 drivers/usb/gadget/inode.c David Brownell 2005-05-07 1333 u16 w_value = le16_to_cpu(ctrl->wValue);
1bbc169621cbe5 drivers/usb/gadget/inode.c David Brownell 2005-05-07 1334 u16 w_length = le16_to_cpu(ctrl->wLength);
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1335
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1336 spin_lock (&dev->lock);
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1337 dev->setup_abort = 0;
7489d149431817 drivers/usb/gadget/inode.c David Brownell 2007-01-16 1338 if (dev->state == STATE_DEV_UNCONNECTED) {
a4e3ef5597e26d drivers/usb/gadget/inode.c David Brownell 2007-08-01 1339 if (gadget_is_dualspeed(gadget)
a4e3ef5597e26d drivers/usb/gadget/inode.c David Brownell 2007-08-01 1340 && gadget->speed == USB_SPEED_HIGH
a4e3ef5597e26d drivers/usb/gadget/inode.c David Brownell 2007-08-01 1341 && dev->hs_config == NULL) {
ce46794f77f698 drivers/usb/gadget/inode.c David Brownell 2007-01-16 1342 spin_unlock(&dev->lock);
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1343 ERROR (dev, "no high speed config??\n");
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1344 return -EINVAL;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1345 }
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1346
ce46794f77f698 drivers/usb/gadget/inode.c David Brownell 2007-01-16 1347 dev->state = STATE_DEV_CONNECTED;
ce46794f77f698 drivers/usb/gadget/inode.c David Brownell 2007-01-16 1348
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1349 INFO (dev, "connected\n");
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1350 event = next_event (dev, GADGETFS_CONNECT);
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1351 event->u.speed = gadget->speed;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1352 ep0_readable (dev);
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1353
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1354 /* host may have given up waiting for response. we can miss control
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1355 * requests handled lower down (device/endpoint status and features);
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1356 * then ep0_{read,write} will report the wrong status. controller
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1357 * driver will have aborted pending i/o.
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1358 */
7489d149431817 drivers/usb/gadget/inode.c David Brownell 2007-01-16 1359 } else if (dev->state == STATE_DEV_SETUP)
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1360 dev->setup_abort = 1;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1361
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1362 req->buf = dev->rbuf;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1363 req->context = NULL;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 @1364 value = -EOPNOTSUPP;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1365 switch (ctrl->bRequest) {
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1366
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1367 case USB_REQ_GET_DESCRIPTOR:
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1368 if (ctrl->bRequestType != USB_DIR_IN)
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1369 goto unrecognized;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1370 switch (w_value >> 8) {
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1371
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1372 case USB_DT_DEVICE:
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1373 value = min (w_length, (u16) sizeof *dev->dev);
765f5b830e5472 drivers/usb/gadget/inode.c Sebastian Andrzej Siewior 2011-06-23 1374 dev->dev->bMaxPacketSize0 = dev->gadget->ep0->maxpacket;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1375 req->buf = dev->dev;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1376 break;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1377 case USB_DT_DEVICE_QUALIFIER:
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1378 if (!dev->hs_config)
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1379 break;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1380 value = min (w_length, (u16)
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1381 sizeof (struct usb_qualifier_descriptor));
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1382 make_qualifier (dev);
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1383 break;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1384 case USB_DT_OTHER_SPEED_CONFIG:
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1385 // FALLTHROUGH
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1386 case USB_DT_CONFIG:
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1387 value = config_buf (dev,
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1388 w_value >> 8,
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1389 w_value & 0xff);
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1390 if (value >= 0)
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1391 value = min (w_length, (u16) value);
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1392 break;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1393 case USB_DT_STRING:
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1394 goto unrecognized;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1395
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1396 default: // all others are errors
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1397 break;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1398 }
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1399 break;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1400
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1401 /* currently one config, two speeds */
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1402 case USB_REQ_SET_CONFIGURATION:
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1403 if (ctrl->bRequestType != 0)
12cd5b984f825c drivers/usb/gadget/inode.c Roy Hashimoto 2008-03-12 1404 goto unrecognized;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1405 if (0 == (u8) w_value) {
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1406 value = 0;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1407 dev->current_config = 0;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1408 usb_gadget_vbus_draw(gadget, 8 /* mA */ );
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1409 // user mode expected to disable endpoints
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1410 } else {
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1411 u8 config, power;
a4e3ef5597e26d drivers/usb/gadget/inode.c David Brownell 2007-08-01 1412
a4e3ef5597e26d drivers/usb/gadget/inode.c David Brownell 2007-08-01 1413 if (gadget_is_dualspeed(gadget)
a4e3ef5597e26d drivers/usb/gadget/inode.c David Brownell 2007-08-01 1414 && gadget->speed == USB_SPEED_HIGH) {
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1415 config = dev->hs_config->bConfigurationValue;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1416 power = dev->hs_config->bMaxPower;
a4e3ef5597e26d drivers/usb/gadget/inode.c David Brownell 2007-08-01 1417 } else {
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1418 config = dev->config->bConfigurationValue;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1419 power = dev->config->bMaxPower;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1420 }
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1421
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1422 if (config == (u8) w_value) {
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1423 value = 0;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1424 dev->current_config = config;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1425 usb_gadget_vbus_draw(gadget, 2 * power);
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1426 }
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1427 }
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1428
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1429 /* report SET_CONFIGURATION like any other control request,
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1430 * except that usermode may not stall this. the next
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1431 * request mustn't be allowed start until this finishes:
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1432 * endpoints and threads set up, etc.
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1433 *
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1434 * NOTE: older PXA hardware (before PXA 255: without UDCCFR)
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1435 * has bad/racey automagic that prevents synchronizing here.
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1436 * even kernel mode drivers often miss them.
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1437 */
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1438 if (value == 0) {
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1439 INFO (dev, "configuration #%d\n", dev->current_config);
6027f3173e797b drivers/usb/gadget/inode.c Peter Chen 2014-04-29 1440 usb_gadget_set_state(gadget, USB_STATE_CONFIGURED);
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1441 if (dev->usermode_setup) {
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1442 dev->setup_can_stall = 0;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1443 goto delegate;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1444 }
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1445 }
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1446 break;
^1da177e4c3f41 drivers/usb/gadget/inode.c Linus Torvalds 2005-04-16 1447
:::::: The code at line 1364 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [patch 1/2] x86,module: Detect VMX modules and disable Split-Lock-Detect
by kbuild test robot
Hi Thomas,
I love your patch! Yet something to improve:
[auto build test ERROR on tip/auto-latest]
[also build test ERROR on next-20200403]
[cannot apply to jeyu/modules-next tip/x86/core v5.6]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Thomas-Gleixner/x86-Prevent-Spli...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git ee8bac724cc7767dcf9480afb656318994f22c3d
config: um-x86_64_defconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
# save the attached .config to linux build tree
make ARCH=um SUBARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
/usr/bin/ld: arch/x86/um/../kernel/module.o: in function `module_finalize':
>> module.c:(.text+0x315): undefined reference to `split_lock_validate_module_text'
>> collect2: error: ld returned 1 exit status
--
In file included from arch/x86/um/../kernel/module.c:27:0:
>> arch/x86/include/asm/cpu.h:38:31: warning: 'struct cpuinfo_x86' declared inside parameter list will not be visible outside of this definition or declaration
int mwait_usable(const struct cpuinfo_x86 *);
^~~~~~~~~~~
arch/x86/include/asm/cpu.h:44:49: warning: 'struct cpuinfo_x86' declared inside parameter list will not be visible outside of this definition or declaration
extern void __init cpu_set_core_cap_bits(struct cpuinfo_x86 *c);
^~~~~~~~~~~
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[xlnx:master 9636/9981] drivers/mtd/spi-nor/spi-nor.c:5196:14: error: implicit declaration of function 'of_get_next_parent'
by kbuild test robot
tree: https://github.com/Xilinx/linux-xlnx master
head: 9d6f04f3b34bc4fc65d301a7dbf9acdd0d39923c
commit: b5be635d3544589973bdf42e3ee94deabaf45711 [9636/9981] mtd: spi-nor: Added axi-qspi support in spi-nor framework
config: x86_64-randconfig-c003-20200403 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project f68cc2a7ed766965028b8b0f0d9300a0460c3cf1)
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout b5be635d3544589973bdf42e3ee94deabaf45711
# save the attached .config to linux build tree
COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
>> drivers/mtd/spi-nor/spi-nor.c:5196:14: error: implicit declaration of function 'of_get_next_parent' [-Werror,-Wimplicit-function-declaration]
np_spi = of_get_next_parent(np);
^
>> drivers/mtd/spi-nor/spi-nor.c:5196:12: warning: incompatible integer to pointer conversion assigning to 'struct device_node *' from 'int' [-Wint-conversion]
np_spi = of_get_next_parent(np);
^ ~~~~~~~~~~~~~~~~~~~~~~
drivers/mtd/spi-nor/spi-nor.c:5266:11: error: returning 'const struct flash_info *' from a function with result type 'struct flash_info *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
return jinfo;
^~~~~
drivers/mtd/spi-nor/spi-nor.c:5281:9: error: returning 'const struct flash_info *' from a function with result type 'struct flash_info *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
return info;
^~~~
drivers/mtd/spi-nor/spi-nor.c:5295:6: warning: unused variable 'is_dual' [-Wunused-variable]
u32 is_dual;
^
drivers/mtd/spi-nor/spi-nor.c:5294:22: warning: unused variable 'np_spi' [-Wunused-variable]
struct device_node *np_spi;
^
3 warnings and 3 errors generated.
vim +/of_get_next_parent +5196 drivers/mtd/spi-nor/spi-nor.c
5162
5163 static int spi_nor_set_addr_width(struct spi_nor *nor)
5164 {
5165 struct device_node *np = spi_nor_get_flash_node(nor);
5166 struct device_node *np_spi;
5167 if (nor->addr_width) {
5168 /* already configured from SFDP */
5169 } else if (nor->info->addr_width) {
5170 nor->addr_width = nor->info->addr_width;
5171 } else if (nor->mtd.size > 0x1000000) {
5172 #ifdef CONFIG_OF
5173 np_spi = of_get_next_parent(np);
5174 if (of_property_match_string(np_spi, "compatible",
5175 "xlnx,zynq-qspi-1.0") >= 0) {
5176 int status;
5177
5178 nor->addr_width = 3;
5179 nor->params.set_4byte(nor, false);
5180 status = read_ear(nor, (struct flash_info *)nor->info);
5181 if (status < 0)
5182 dev_warn(nor->dev, "failed to read ear reg\n");
5183 else
5184 nor->curbank = status & EAR_SEGMENT_MASK;
5185 } else {
5186 #endif
5187 /*
5188 * enable 4-byte addressing if the
5189 * device exceeds 16MiB
5190 */
5191 nor->addr_width = 4;
5192 if (JEDEC_MFR(nor->info) == SNOR_MFR_SPANSION ||
5193 nor->info->flags & SPI_NOR_4B_OPCODES) {
5194 spi_nor_set_4byte_opcodes(nor);
5195 } else {
> 5196 np_spi = of_get_next_parent(np);
5197 if (of_property_match_string(np_spi,
5198 "compatible",
5199 "xlnx,xps-spi-2.00.a") >= 0) {
5200 nor->addr_width = 3;
5201 nor->params.set_4byte(nor, false);
5202 } else {
5203 nor->params.set_4byte(nor, true);
5204 if (nor->isstacked) {
5205 nor->spi->master->flags |=
5206 SPI_MASTER_U_PAGE;
5207 nor->params.set_4byte(nor, true);
5208 nor->spi->master->flags &=
5209 ~SPI_MASTER_U_PAGE;
5210 }
5211 }
5212 }
5213 #ifdef CONFIG_OF
5214 }
5215 #endif
5216 } else {
5217 nor->addr_width = 3;
5218 }
5219
5220 if (nor->addr_width > SPI_NOR_MAX_ADDR_WIDTH) {
5221 dev_err(nor->dev, "address width is too large: %u\n",
5222 nor->addr_width);
5223 return -EINVAL;
5224 }
5225
5226 /* Set 4byte opcodes when possible. */
5227 if (nor->addr_width == 4 && nor->flags & SNOR_F_4B_OPCODES &&
5228 !(nor->flags & SNOR_F_HAS_4BAIT))
5229 spi_nor_set_4byte_opcodes(nor);
5230
5231 return 0;
5232 }
5233
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[plbossart-sound:sdw/qcom2 5/5] drivers/soundwire/intel.c:1229:24: error: 'intel_master_process_wakeen_event' undeclared here (not in a function)
by kbuild test robot
tree: https://github.com/plbossart/sound sdw/qcom2
head: 0d9f998d3e64d5cc6256b16940a779d654df717e
commit: 0d9f998d3e64d5cc6256b16940a779d654df717e [5/5] soundwire: intel: transition to sdw_master_device/driver support
config: x86_64-randconfig-a003-20200403 (attached as .config)
compiler: gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
reproduce:
git checkout 0d9f998d3e64d5cc6256b16940a779d654df717e
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/soundwire/intel.c:1229:24: error: 'intel_master_process_wakeen_event' undeclared here (not in a function)
.process_wake_event = intel_master_process_wakeen_event,
^
vim +/intel_master_process_wakeen_event +1229 drivers/soundwire/intel.c
1223
1224 struct sdw_link_ops sdw_intel_link_ops = {
1225 .driver = &sdw_intel_driver,
1226 .add = intel_master_probe,
1227 .startup = intel_master_startup,
1228 .del = intel_master_remove,
> 1229 .process_wake_event = intel_master_process_wakeen_event,
1230 };
1231 EXPORT_SYMBOL(sdw_intel_link_ops);
1232
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[masahiroy:kbuild 20/29] drivers/usb/gadget/udc/bdc/bdc_ep.c:543:28: warning: comparison of address of 'req->queue' equal to a null pointer is always false
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git kbuild
head: 580ff3dfafe377e02da91a99eb4e41426a4c4184
commit: ee6313f6b884e61e62f59eb51acdbb5811e27563 [20/29] kbuild: Enable -Wtautological-compare
config: x86_64-randconfig-e001-20200403 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project f68cc2a7ed766965028b8b0f0d9300a0460c3cf1)
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout ee6313f6b884e61e62f59eb51acdbb5811e27563
# save the attached .config to linux build tree
COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/usb/gadget/udc/bdc/bdc_ep.c:543:28: warning: comparison of address of 'req->queue' equal to a null pointer is always false [-Wtautological-pointer-compare]
if (req == NULL || &req->queue == NULL || &req->usb_req == NULL)
~~~~~^~~~~ ~~~~
>> drivers/usb/gadget/udc/bdc/bdc_ep.c:543:51: warning: comparison of address of 'req->usb_req' equal to a null pointer is always false [-Wtautological-pointer-compare]
if (req == NULL || &req->queue == NULL || &req->usb_req == NULL)
~~~~~^~~~~~~ ~~~~
2 warnings generated.
vim +543 drivers/usb/gadget/udc/bdc/bdc_ep.c
efed421a94e62a Ashwini Pahuja 2014-11-13 536
efed421a94e62a Ashwini Pahuja 2014-11-13 537 /* callback to gadget layer when xfr completes */
efed421a94e62a Ashwini Pahuja 2014-11-13 538 static void bdc_req_complete(struct bdc_ep *ep, struct bdc_req *req,
efed421a94e62a Ashwini Pahuja 2014-11-13 539 int status)
efed421a94e62a Ashwini Pahuja 2014-11-13 540 {
efed421a94e62a Ashwini Pahuja 2014-11-13 541 struct bdc *bdc = ep->bdc;
efed421a94e62a Ashwini Pahuja 2014-11-13 542
efed421a94e62a Ashwini Pahuja 2014-11-13 @543 if (req == NULL || &req->queue == NULL || &req->usb_req == NULL)
efed421a94e62a Ashwini Pahuja 2014-11-13 544 return;
efed421a94e62a Ashwini Pahuja 2014-11-13 545
efed421a94e62a Ashwini Pahuja 2014-11-13 546 dev_dbg(bdc->dev, "%s ep:%s status:%d\n", __func__, ep->name, status);
efed421a94e62a Ashwini Pahuja 2014-11-13 547 list_del(&req->queue);
efed421a94e62a Ashwini Pahuja 2014-11-13 548 req->usb_req.status = status;
efed421a94e62a Ashwini Pahuja 2014-11-13 549 usb_gadget_unmap_request(&bdc->gadget, &req->usb_req, ep->dir);
efed421a94e62a Ashwini Pahuja 2014-11-13 550 if (req->usb_req.complete) {
efed421a94e62a Ashwini Pahuja 2014-11-13 551 spin_unlock(&bdc->lock);
efed421a94e62a Ashwini Pahuja 2014-11-13 552 usb_gadget_giveback_request(&ep->usb_ep, &req->usb_req);
efed421a94e62a Ashwini Pahuja 2014-11-13 553 spin_lock(&bdc->lock);
efed421a94e62a Ashwini Pahuja 2014-11-13 554 }
efed421a94e62a Ashwini Pahuja 2014-11-13 555 }
efed421a94e62a Ashwini Pahuja 2014-11-13 556
:::::: The code at line 543 was first introduced by commit
:::::: efed421a94e62a7ddbc76acba4312b70e4be958f usb: gadget: Add UDC driver for Broadcom USB3.0 device controller IP BDC
:::::: TO: Ashwini Pahuja <ashwini.linux(a)gmail.com>
:::::: CC: Felipe Balbi <balbi(a)ti.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [PATCH v2] btrfs: Only require sector size alignment for parent eb bytenr
by Dan Carpenter
Hi Qu,
url: https://github.com/0day-ci/linux/commits/Qu-Wenruo/btrfs-Only-require-sec...
base: https://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs.git next
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
New smatch warnings:
fs/btrfs/extent-tree.c:1178 btrfs_get_extent_inline_ref_type() warn: '0x' prefix is confusing together with '%lu' specifier
fs/btrfs/extent-tree.c:1178 btrfs_get_extent_inline_ref_type() warn: argument 4 to %lu specifier is cast from pointer
Old smatch warnings:
fs/btrfs/extent-tree.c:6343 update_block_group() warn: inconsistent indenting
fs/btrfs/extent-tree.c:7620 find_free_extent() warn: inconsistent indenting
# https://github.com/0day-ci/linux/commit/8a07080e7e5051c75e67e30bf635fc230...
git remote add linux-review https://github.com/0day-ci/linux
git remote update linux-review
git checkout 8a07080e7e5051c75e67e30bf635fc230b2ab720
vim +1178 fs/btrfs/extent-tree.c
64ecdb647ddb83 Liu Bo 2017-08-18 1166 */
64ecdb647ddb83 Liu Bo 2017-08-18 1167 if (offset &&
8a07080e7e5051 Qu Wenruo 2020-03-26 1168 IS_ALIGNED(offset, eb->fs_info->sectorsize))
64ecdb647ddb83 Liu Bo 2017-08-18 1169 return type;
64ecdb647ddb83 Liu Bo 2017-08-18 1170 }
167ce953ca55bd Liu Bo 2017-08-18 1171 } else {
167ce953ca55bd Liu Bo 2017-08-18 1172 ASSERT(is_data == BTRFS_REF_TYPE_ANY);
167ce953ca55bd Liu Bo 2017-08-18 1173 return type;
167ce953ca55bd Liu Bo 2017-08-18 1174 }
167ce953ca55bd Liu Bo 2017-08-18 1175 }
167ce953ca55bd Liu Bo 2017-08-18 1176
167ce953ca55bd Liu Bo 2017-08-18 1177 btrfs_print_leaf((struct extent_buffer *)eb);
8a07080e7e5051 Qu Wenruo 2020-03-26 @1178 btrfs_err(eb->fs_info,
8a07080e7e5051 Qu Wenruo 2020-03-26 1179 "eb %llu iref 0x%lu invalid extent inline ref type %d",
^^^^^
8a07080e7e5051 Qu Wenruo 2020-03-26 1180 eb->start, (unsigned long)iref, type);
^^^^^^^^^^^^^^^^^^^
0x indicates hex, but this is decimal. But use %p for pointers so that
the can be hidden to people without enough privilege. #kernelHardenning
167ce953ca55bd Liu Bo 2017-08-18 1181 WARN_ON(1);
167ce953ca55bd Liu Bo 2017-08-18 1182
167ce953ca55bd Liu Bo 2017-08-18 1183 return BTRFS_REF_TYPE_INVALID;
167ce953ca55bd Liu Bo 2017-08-18 1184 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[ezequielg:vb2_buffer_handling_v1 10/13] drivers/media/platform/vicodec/vicodec-core.c:287:16: warning: incompatible integer to pointer conversion assigning to 'struct vb2_buffer *' from 'int'
by kbuild test robot
tree: git://git.infradead.org/users/ezequielg/linux vb2_buffer_handling_v1
head: b8940b7354debe527a51901290d5677d503ae394
commit: a0602f84c7d64de46c8a4c7168d5b1f623dff87c [10/13] vicodec: Make use of vb2_find_buffer()
config: x86_64-randconfig-b003-20200403 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project f68cc2a7ed766965028b8b0f0d9300a0460c3cf1)
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout a0602f84c7d64de46c8a4c7168d5b1f623dff87c
# save the attached .config to linux build tree
COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:177:1: warning: array index 3 is past the end of the array (which contains 1 element) [-Warray-bounds]
_SIG_SET_OP(signotset, _sig_not)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/signal.h:164:10: note: expanded from macro '_SIG_SET_OP'
case 4: set->sig[3] = op(set->sig[3]); \
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/media/platform/vicodec/vicodec-core.c:21:
In file included from include/media/v4l2-ioctl.h:16:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:177:1: warning: array index 2 is past the end of the array (which contains 1 element) [-Warray-bounds]
_SIG_SET_OP(signotset, _sig_not)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/signal.h:165:20: note: expanded from macro '_SIG_SET_OP'
set->sig[2] = op(set->sig[2]); \
^ ~
include/linux/signal.h:176:24: note: expanded from macro '_sig_not'
#define _sig_not(x) (~(x))
^
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/media/platform/vicodec/vicodec-core.c:21:
In file included from include/media/v4l2-ioctl.h:16:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:177:1: warning: array index 2 is past the end of the array (which contains 1 element) [-Warray-bounds]
_SIG_SET_OP(signotset, _sig_not)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/signal.h:165:3: note: expanded from macro '_SIG_SET_OP'
set->sig[2] = op(set->sig[2]); \
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/media/platform/vicodec/vicodec-core.c:21:
In file included from include/media/v4l2-ioctl.h:16:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:177:1: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
_SIG_SET_OP(signotset, _sig_not)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/signal.h:167:27: note: expanded from macro '_SIG_SET_OP'
case 2: set->sig[1] = op(set->sig[1]); \
^ ~
include/linux/signal.h:176:24: note: expanded from macro '_sig_not'
#define _sig_not(x) (~(x))
^
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/media/platform/vicodec/vicodec-core.c:21:
In file included from include/media/v4l2-ioctl.h:16:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:177:1: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
_SIG_SET_OP(signotset, _sig_not)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/signal.h:167:10: note: expanded from macro '_SIG_SET_OP'
case 2: set->sig[1] = op(set->sig[1]); \
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/media/platform/vicodec/vicodec-core.c:21:
In file included from include/media/v4l2-ioctl.h:16:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:188:10: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
case 2: set->sig[1] = 0;
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/media/platform/vicodec/vicodec-core.c:21:
In file included from include/media/v4l2-ioctl.h:16:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:201:10: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
case 2: set->sig[1] = -1;
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/media/platform/vicodec/vicodec-core.c:21:
In file included from include/media/v4l2-ioctl.h:16:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:232:10: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
case 2: set->sig[1] = 0;
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/media/platform/vicodec/vicodec-core.c:21:
In file included from include/media/v4l2-ioctl.h:16:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:244:10: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
case 2: set->sig[1] = -1;
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
>> drivers/media/platform/vicodec/vicodec-core.c:287:16: warning: incompatible integer to pointer conversion assigning to 'struct vb2_buffer *' from 'int' [-Wint-conversion]
ref_vb2_buf = vb2_find_buffer(vq_cap,
^ ~~~~~~~~~~~~~~~~~~~~~~~
50 warnings and 1 error generated.
vim +287 drivers/media/platform/vicodec/vicodec-core.c
252
253 static int device_process(struct vicodec_ctx *ctx,
254 struct vb2_v4l2_buffer *src_vb,
255 struct vb2_v4l2_buffer *dst_vb)
256 {
257 struct vicodec_dev *dev = ctx->dev;
258 struct v4l2_fwht_state *state = &ctx->state;
259 u8 *p_src, *p_dst;
260 int ret = 0;
261
262 if (ctx->is_enc || ctx->is_stateless)
263 p_src = vb2_plane_vaddr(&src_vb->vb2_buf, 0);
264 else
265 p_src = state->compressed_frame;
266
267 if (ctx->is_stateless) {
268 struct media_request *src_req = src_vb->vb2_buf.req_obj.req;
269
270 ret = v4l2_ctrl_request_setup(src_req, &ctx->hdl);
271 if (ret)
272 return ret;
273 update_state_from_header(ctx);
274
275 ctx->state.header.size =
276 htonl(vb2_get_plane_payload(&src_vb->vb2_buf, 0));
277 /*
278 * set the reference buffer from the reference timestamp
279 * only if this is a P-frame
280 */
281 if (!(ntohl(ctx->state.header.flags) & FWHT_FL_I_FRAME)) {
282 struct vb2_buffer *ref_vb2_buf;
283 struct vb2_queue *vq_cap =
284 v4l2_m2m_get_vq(ctx->fh.m2m_ctx,
285 V4L2_BUF_TYPE_VIDEO_CAPTURE);
286
> 287 ref_vb2_buf = vb2_find_buffer(vq_cap,
288 ctx->state.ref_frame_ts);
289 if (!ref_vb2_buf)
290 return -EINVAL;
291 if (ref_vb2_buf->state == VB2_BUF_STATE_ERROR)
292 ret = -EINVAL;
293 ctx->state.ref_frame.buf =
294 vb2_plane_vaddr(ref_vb2_buf, 0);
295 } else {
296 ctx->state.ref_frame.buf = NULL;
297 }
298 }
299 p_dst = vb2_plane_vaddr(&dst_vb->vb2_buf, 0);
300 if (!p_src || !p_dst) {
301 v4l2_err(&dev->v4l2_dev,
302 "Acquiring kernel pointers to buffers failed\n");
303 return -EFAULT;
304 }
305
306 if (ctx->is_enc) {
307 struct vicodec_q_data *q_src;
308 int comp_sz_or_errcode;
309
310 q_src = get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT);
311 state->info = q_src->info;
312 comp_sz_or_errcode = v4l2_fwht_encode(state, p_src, p_dst);
313 if (comp_sz_or_errcode < 0)
314 return comp_sz_or_errcode;
315 vb2_set_plane_payload(&dst_vb->vb2_buf, 0, comp_sz_or_errcode);
316 } else {
317 struct vicodec_q_data *q_dst;
318 unsigned int comp_frame_size = ntohl(ctx->state.header.size);
319
320 q_dst = get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE);
321 if (comp_frame_size > ctx->comp_max_size)
322 return -EINVAL;
323 state->info = q_dst->info;
324 ret = v4l2_fwht_decode(state, p_src, p_dst);
325 if (ret < 0)
326 return ret;
327 if (!ctx->is_stateless)
328 copy_cap_to_ref(p_dst, ctx->state.info, &ctx->state);
329
330 vb2_set_plane_payload(&dst_vb->vb2_buf, 0, q_dst->sizeimage);
331 if (ntohl(ctx->state.header.flags) & FWHT_FL_I_FRAME)
332 dst_vb->flags |= V4L2_BUF_FLAG_KEYFRAME;
333 else
334 dst_vb->flags |= V4L2_BUF_FLAG_PFRAME;
335 }
336 return ret;
337 }
338
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[ezequielg:vb2_buffer_handling_v1 9/13] include/trace/events/v4l2.h:171:1: error: parameter '__tpstrtab_v4l2_dqbuf' is initialized
by kbuild test robot
tree: git://git.infradead.org/users/ezequielg/linux vb2_buffer_handling_v1
head: b8940b7354debe527a51901290d5677d503ae394
commit: 43b5e9c838b9851045b8f9636b14cdb3a9b1fa9a [9/13] videobuf2: Introduce vb2_find_buffer helper
config: arm-milbeaut_m10v_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 43b5e9c838b9851045b8f9636b14cdb3a9b1fa9a
# save the attached .config to linux build tree
GCC_VERSION=9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
15 | #define EMe(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:34:2: note: in expansion of macro 'EMe'
34 | EMe(V4L2_BUF_TYPE_PRIVATE, "PRIVATE" )
| ^~~
include/trace/events/v4l2.h:36:1: note: in expansion of macro 'SHOW_TYPE'
36 | SHOW_TYPE
| ^~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:42:2: note: in expansion of macro 'EM'
42 | EM( V4L2_FIELD_ANY, "ANY" ) \
| ^~
include/trace/events/v4l2.h:53:1: note: in expansion of macro 'SHOW_FIELD'
53 | SHOW_FIELD
| ^~~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:43:2: note: in expansion of macro 'EM'
43 | EM( V4L2_FIELD_NONE, "NONE" ) \
| ^~
include/trace/events/v4l2.h:53:1: note: in expansion of macro 'SHOW_FIELD'
53 | SHOW_FIELD
| ^~~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:44:2: note: in expansion of macro 'EM'
44 | EM( V4L2_FIELD_TOP, "TOP" ) \
| ^~
include/trace/events/v4l2.h:53:1: note: in expansion of macro 'SHOW_FIELD'
53 | SHOW_FIELD
| ^~~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:45:2: note: in expansion of macro 'EM'
45 | EM( V4L2_FIELD_BOTTOM, "BOTTOM" ) \
| ^~
include/trace/events/v4l2.h:53:1: note: in expansion of macro 'SHOW_FIELD'
53 | SHOW_FIELD
| ^~~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:46:2: note: in expansion of macro 'EM'
46 | EM( V4L2_FIELD_INTERLACED, "INTERLACED" ) \
| ^~
include/trace/events/v4l2.h:53:1: note: in expansion of macro 'SHOW_FIELD'
53 | SHOW_FIELD
| ^~~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:47:2: note: in expansion of macro 'EM'
47 | EM( V4L2_FIELD_SEQ_TB, "SEQ_TB" ) \
| ^~
include/trace/events/v4l2.h:53:1: note: in expansion of macro 'SHOW_FIELD'
53 | SHOW_FIELD
| ^~~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:48:2: note: in expansion of macro 'EM'
48 | EM( V4L2_FIELD_SEQ_BT, "SEQ_BT" ) \
| ^~
include/trace/events/v4l2.h:53:1: note: in expansion of macro 'SHOW_FIELD'
53 | SHOW_FIELD
| ^~~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:49:2: note: in expansion of macro 'EM'
49 | EM( V4L2_FIELD_ALTERNATE, "ALTERNATE" ) \
| ^~
include/trace/events/v4l2.h:53:1: note: in expansion of macro 'SHOW_FIELD'
53 | SHOW_FIELD
| ^~~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:50:2: note: in expansion of macro 'EM'
50 | EM( V4L2_FIELD_INTERLACED_TB, "INTERLACED_TB" ) \
| ^~
include/trace/events/v4l2.h:53:1: note: in expansion of macro 'SHOW_FIELD'
53 | SHOW_FIELD
| ^~~~~~~~~~
include/trace/events/v4l2.h:15:39: error: expected declaration specifiers before ';' token
15 | #define EMe(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:51:2: note: in expansion of macro 'EMe'
51 | EMe( V4L2_FIELD_INTERLACED_BT, "INTERLACED_BT" )
| ^~~
include/trace/events/v4l2.h:53:1: note: in expansion of macro 'SHOW_FIELD'
53 | SHOW_FIELD
| ^~~~~~~~~~
In file included from include/trace/events/v4l2.h:8,
from drivers/media/v4l2-core/v4l2-ioctl.c:30:
>> include/linux/tracepoint.h:232:27: error: storage class specified for parameter '__tracepoint_v4l2_dqbuf'
232 | extern struct tracepoint __tracepoint_##name; \
| ^~~~~~~~~~~~~
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:171:1: note: in expansion of macro 'DEFINE_EVENT'
171 | DEFINE_EVENT(v4l2_event_class, v4l2_dqbuf,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:234:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
234 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:171:1: note: in expansion of macro 'DEFINE_EVENT'
171 | DEFINE_EVENT(v4l2_event_class, v4l2_dqbuf,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:250:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
250 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:171:1: note: in expansion of macro 'DEFINE_EVENT'
171 | DEFINE_EVENT(v4l2_event_class, v4l2_dqbuf,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:257:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
257 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:171:1: note: in expansion of macro 'DEFINE_EVENT'
171 | DEFINE_EVENT(v4l2_event_class, v4l2_dqbuf,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:263:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
263 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:171:1: note: in expansion of macro 'DEFINE_EVENT'
171 | DEFINE_EVENT(v4l2_event_class, v4l2_dqbuf,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:269:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
269 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:171:1: note: in expansion of macro 'DEFINE_EVENT'
171 | DEFINE_EVENT(v4l2_event_class, v4l2_dqbuf,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:273:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
273 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:171:1: note: in expansion of macro 'DEFINE_EVENT'
171 | DEFINE_EVENT(v4l2_event_class, v4l2_dqbuf,
| ^~~~~~~~~~~~
In file included from drivers/media/v4l2-core/v4l2-ioctl.c:30:
include/trace/events/v4l2.h:174:2: error: expected declaration specifiers before ';' token
174 | );
| ^
In file included from include/trace/events/v4l2.h:8,
from drivers/media/v4l2-core/v4l2-ioctl.c:30:
>> include/linux/tracepoint.h:232:27: error: storage class specified for parameter '__tracepoint_v4l2_qbuf'
232 | extern struct tracepoint __tracepoint_##name; \
| ^~~~~~~~~~~~~
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:176:1: note: in expansion of macro 'DEFINE_EVENT'
176 | DEFINE_EVENT(v4l2_event_class, v4l2_qbuf,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:234:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
234 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:176:1: note: in expansion of macro 'DEFINE_EVENT'
176 | DEFINE_EVENT(v4l2_event_class, v4l2_qbuf,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:250:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
250 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:176:1: note: in expansion of macro 'DEFINE_EVENT'
176 | DEFINE_EVENT(v4l2_event_class, v4l2_qbuf,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:257:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
257 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:176:1: note: in expansion of macro 'DEFINE_EVENT'
176 | DEFINE_EVENT(v4l2_event_class, v4l2_qbuf,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:263:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
263 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:176:1: note: in expansion of macro 'DEFINE_EVENT'
176 | DEFINE_EVENT(v4l2_event_class, v4l2_qbuf,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:269:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
269 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:176:1: note: in expansion of macro 'DEFINE_EVENT'
176 | DEFINE_EVENT(v4l2_event_class, v4l2_qbuf,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:273:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
273 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:176:1: note: in expansion of macro 'DEFINE_EVENT'
176 | DEFINE_EVENT(v4l2_event_class, v4l2_qbuf,
| ^~~~~~~~~~~~
In file included from drivers/media/v4l2-core/v4l2-ioctl.c:30:
include/trace/events/v4l2.h:179:2: error: expected declaration specifiers before ';' token
179 | );
| ^
In file included from include/trace/events/v4l2.h:8,
from drivers/media/v4l2-core/v4l2-ioctl.c:30:
>> include/linux/tracepoint.h:232:27: error: storage class specified for parameter '__tracepoint_vb2_v4l2_buf_done'
232 | extern struct tracepoint __tracepoint_##name; \
| ^~~~~~~~~~~~~
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:245:1: note: in expansion of macro 'DEFINE_EVENT'
245 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_buf_done,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:234:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
234 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:245:1: note: in expansion of macro 'DEFINE_EVENT'
245 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_buf_done,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:250:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
250 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:245:1: note: in expansion of macro 'DEFINE_EVENT'
245 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_buf_done,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:257:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
257 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:245:1: note: in expansion of macro 'DEFINE_EVENT'
245 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_buf_done,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:263:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
263 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:245:1: note: in expansion of macro 'DEFINE_EVENT'
245 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_buf_done,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:269:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
269 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:245:1: note: in expansion of macro 'DEFINE_EVENT'
245 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_buf_done,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:273:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
273 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:245:1: note: in expansion of macro 'DEFINE_EVENT'
245 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_buf_done,
| ^~~~~~~~~~~~
In file included from drivers/media/v4l2-core/v4l2-ioctl.c:30:
include/trace/events/v4l2.h:248:2: error: expected declaration specifiers before ';' token
248 | );
| ^
In file included from include/trace/events/v4l2.h:8,
from drivers/media/v4l2-core/v4l2-ioctl.c:30:
>> include/linux/tracepoint.h:232:27: error: storage class specified for parameter '__tracepoint_vb2_v4l2_buf_queue'
232 | extern struct tracepoint __tracepoint_##name; \
| ^~~~~~~~~~~~~
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:250:1: note: in expansion of macro 'DEFINE_EVENT'
250 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_buf_queue,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:234:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
234 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:250:1: note: in expansion of macro 'DEFINE_EVENT'
250 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_buf_queue,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:250:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
250 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:250:1: note: in expansion of macro 'DEFINE_EVENT'
250 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_buf_queue,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:257:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
257 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:250:1: note: in expansion of macro 'DEFINE_EVENT'
250 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_buf_queue,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:263:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
263 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:250:1: note: in expansion of macro 'DEFINE_EVENT'
250 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_buf_queue,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:269:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
269 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:250:1: note: in expansion of macro 'DEFINE_EVENT'
250 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_buf_queue,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:273:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
273 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:250:1: note: in expansion of macro 'DEFINE_EVENT'
250 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_buf_queue,
| ^~~~~~~~~~~~
In file included from drivers/media/v4l2-core/v4l2-ioctl.c:30:
include/trace/events/v4l2.h:253:2: error: expected declaration specifiers before ';' token
253 | );
| ^
In file included from include/trace/events/v4l2.h:8,
from drivers/media/v4l2-core/v4l2-ioctl.c:30:
>> include/linux/tracepoint.h:232:27: error: storage class specified for parameter '__tracepoint_vb2_v4l2_dqbuf'
232 | extern struct tracepoint __tracepoint_##name; \
| ^~~~~~~~~~~~~
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:255:1: note: in expansion of macro 'DEFINE_EVENT'
255 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_dqbuf,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:234:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
234 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:255:1: note: in expansion of macro 'DEFINE_EVENT'
255 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_dqbuf,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:250:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
250 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:255:1: note: in expansion of macro 'DEFINE_EVENT'
255 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_dqbuf,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:257:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
257 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:255:1: note: in expansion of macro 'DEFINE_EVENT'
255 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_dqbuf,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:263:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
263 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:255:1: note: in expansion of macro 'DEFINE_EVENT'
255 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_dqbuf,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:269:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
269 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:255:1: note: in expansion of macro 'DEFINE_EVENT'
255 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_dqbuf,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:273:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
273 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:255:1: note: in expansion of macro 'DEFINE_EVENT'
255 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_dqbuf,
| ^~~~~~~~~~~~
In file included from drivers/media/v4l2-core/v4l2-ioctl.c:30:
include/trace/events/v4l2.h:258:2: error: expected declaration specifiers before ';' token
258 | );
| ^
In file included from include/trace/events/v4l2.h:8,
from drivers/media/v4l2-core/v4l2-ioctl.c:30:
>> include/linux/tracepoint.h:232:27: error: storage class specified for parameter '__tracepoint_vb2_v4l2_qbuf'
232 | extern struct tracepoint __tracepoint_##name; \
| ^~~~~~~~~~~~~
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:260:1: note: in expansion of macro 'DEFINE_EVENT'
260 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_qbuf,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:234:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
234 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:260:1: note: in expansion of macro 'DEFINE_EVENT'
260 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_qbuf,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:250:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
250 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:260:1: note: in expansion of macro 'DEFINE_EVENT'
260 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_qbuf,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:257:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
257 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:260:1: note: in expansion of macro 'DEFINE_EVENT'
260 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_qbuf,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:263:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
263 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:260:1: note: in expansion of macro 'DEFINE_EVENT'
260 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_qbuf,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:269:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
269 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:260:1: note: in expansion of macro 'DEFINE_EVENT'
260 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_qbuf,
| ^~~~~~~~~~~~
include/linux/tracepoint.h:273:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
273 | { \
| ^
include/linux/tracepoint.h:396:2: note: in expansion of macro '__DECLARE_TRACE'
396 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:521:2: note: in expansion of macro 'DECLARE_TRACE'
521 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~
include/trace/events/v4l2.h:260:1: note: in expansion of macro 'DEFINE_EVENT'
260 | DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_qbuf,
| ^~~~~~~~~~~~
In file included from drivers/media/v4l2-core/v4l2-ioctl.c:30:
include/trace/events/v4l2.h:263:2: error: expected declaration specifiers before ';' token
263 | );
| ^
drivers/media/v4l2-core/v4l2-ioctl.c:40:1: warning: empty declaration
40 | struct std_descr {
| ^~~~~~
drivers/media/v4l2-core/v4l2-ioctl.c:45:31: error: storage class specified for parameter 'standards'
45 | static const struct std_descr standards[] = {
| ^~~~~~~~~
drivers/media/v4l2-core/v4l2-ioctl.c:45:21: error: parameter 'standards' is initialized
45 | static const struct std_descr standards[] = {
| ^~~~~~~~~
drivers/media/v4l2-core/v4l2-ioctl.c:46:2: warning: braces around scalar initializer
46 | { V4L2_STD_NTSC, "NTSC" },
| ^
drivers/media/v4l2-core/v4l2-ioctl.c:46:2: note: (near initialization for 'standards')
..
vim +/__tpstrtab_v4l2_dqbuf +171 include/trace/events/v4l2.h
2d01237389dc64 Wade Farnsworth 2013-11-22 10
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 11) /* Enums require being exported to userspace, for user tool parsing */
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 12) #undef EM
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 13) #undef EMe
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 @14) #define EM(a, b) TRACE_DEFINE_ENUM(a);
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 15) #define EMe(a, b) TRACE_DEFINE_ENUM(a);
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 16)
2d01237389dc64 Wade Farnsworth 2013-11-22 17 #define show_type(type) \
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 18) __print_symbolic(type, SHOW_TYPE)
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 19)
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 20) #define SHOW_TYPE \
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 21) EM( V4L2_BUF_TYPE_VIDEO_CAPTURE, "VIDEO_CAPTURE" ) \
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 22) EM( V4L2_BUF_TYPE_VIDEO_OUTPUT, "VIDEO_OUTPUT" ) \
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 23) EM( V4L2_BUF_TYPE_VIDEO_OVERLAY, "VIDEO_OVERLAY" ) \
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 24) EM( V4L2_BUF_TYPE_VBI_CAPTURE, "VBI_CAPTURE" ) \
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 25) EM( V4L2_BUF_TYPE_VBI_OUTPUT, "VBI_OUTPUT" ) \
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 26) EM( V4L2_BUF_TYPE_SLICED_VBI_CAPTURE, "SLICED_VBI_CAPTURE" ) \
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 27) EM( V4L2_BUF_TYPE_SLICED_VBI_OUTPUT, "SLICED_VBI_OUTPUT" ) \
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 28) EM( V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY, "VIDEO_OUTPUT_OVERLAY" ) \
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 29) EM( V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, "VIDEO_CAPTURE_MPLANE" ) \
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 30) EM( V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, "VIDEO_OUTPUT_MPLANE" ) \
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 31) EM( V4L2_BUF_TYPE_SDR_CAPTURE, "SDR_CAPTURE" ) \
9effc72fd71b6e Antti Palosaari 2015-10-10 32 EM( V4L2_BUF_TYPE_SDR_OUTPUT, "SDR_OUTPUT" ) \
fb9ffa6a7f7ef3 Laurent Pinchart 2016-04-12 33 EM( V4L2_BUF_TYPE_META_CAPTURE, "META_CAPTURE" ) \
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 34) EMe(V4L2_BUF_TYPE_PRIVATE, "PRIVATE" )
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 35)
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 36) SHOW_TYPE
2d01237389dc64 Wade Farnsworth 2013-11-22 37
2d01237389dc64 Wade Farnsworth 2013-11-22 38 #define show_field(field) \
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 39) __print_symbolic(field, SHOW_FIELD)
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 40)
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 41) #define SHOW_FIELD \
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 42) EM( V4L2_FIELD_ANY, "ANY" ) \
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 43) EM( V4L2_FIELD_NONE, "NONE" ) \
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 44) EM( V4L2_FIELD_TOP, "TOP" ) \
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 45) EM( V4L2_FIELD_BOTTOM, "BOTTOM" ) \
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 46) EM( V4L2_FIELD_INTERLACED, "INTERLACED" ) \
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 47) EM( V4L2_FIELD_SEQ_TB, "SEQ_TB" ) \
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 48) EM( V4L2_FIELD_SEQ_BT, "SEQ_BT" ) \
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 49) EM( V4L2_FIELD_ALTERNATE, "ALTERNATE" ) \
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 50) EM( V4L2_FIELD_INTERLACED_TB, "INTERLACED_TB" ) \
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 @51) EMe( V4L2_FIELD_INTERLACED_BT, "INTERLACED_BT" )
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 52)
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 53) SHOW_FIELD
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 54)
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 55) /*
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 56) * Now redefine the EM() and EMe() macros to map the enums to the strings
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 57) * that will be printed in the output.
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 58) */
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 59) #undef EM
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 60) #undef EMe
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 61) #define EM(a, b) {a, b},
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 62) #define EMe(a, b) {a, b}
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 63)
43d0f71f0e3f36 Steven Rostedt (Red Hat 2015-03-27 64) /* V4L2_TC_TYPE_* are macros, not defines, they do not need processing */
2d01237389dc64 Wade Farnsworth 2013-11-22 65
2d01237389dc64 Wade Farnsworth 2013-11-22 66 #define show_timecode_type(type) \
2d01237389dc64 Wade Farnsworth 2013-11-22 67 __print_symbolic(type, \
2d01237389dc64 Wade Farnsworth 2013-11-22 68 { V4L2_TC_TYPE_24FPS, "24FPS" }, \
2d01237389dc64 Wade Farnsworth 2013-11-22 69 { V4L2_TC_TYPE_25FPS, "25FPS" }, \
2d01237389dc64 Wade Farnsworth 2013-11-22 70 { V4L2_TC_TYPE_30FPS, "30FPS" }, \
2d01237389dc64 Wade Farnsworth 2013-11-22 71 { V4L2_TC_TYPE_50FPS, "50FPS" }, \
2d01237389dc64 Wade Farnsworth 2013-11-22 72 { V4L2_TC_TYPE_60FPS, "60FPS" })
2d01237389dc64 Wade Farnsworth 2013-11-22 73
2d01237389dc64 Wade Farnsworth 2013-11-22 74 #define show_flags(flags) \
2d01237389dc64 Wade Farnsworth 2013-11-22 75 __print_flags(flags, "|", \
2d01237389dc64 Wade Farnsworth 2013-11-22 76 { V4L2_BUF_FLAG_MAPPED, "MAPPED" }, \
2d01237389dc64 Wade Farnsworth 2013-11-22 77 { V4L2_BUF_FLAG_QUEUED, "QUEUED" }, \
2d01237389dc64 Wade Farnsworth 2013-11-22 78 { V4L2_BUF_FLAG_DONE, "DONE" }, \
2d01237389dc64 Wade Farnsworth 2013-11-22 79 { V4L2_BUF_FLAG_KEYFRAME, "KEYFRAME" }, \
2d01237389dc64 Wade Farnsworth 2013-11-22 80 { V4L2_BUF_FLAG_PFRAME, "PFRAME" }, \
2d01237389dc64 Wade Farnsworth 2013-11-22 81 { V4L2_BUF_FLAG_BFRAME, "BFRAME" }, \
2d01237389dc64 Wade Farnsworth 2013-11-22 82 { V4L2_BUF_FLAG_ERROR, "ERROR" }, \
2d01237389dc64 Wade Farnsworth 2013-11-22 83 { V4L2_BUF_FLAG_TIMECODE, "TIMECODE" }, \
2d01237389dc64 Wade Farnsworth 2013-11-22 84 { V4L2_BUF_FLAG_PREPARED, "PREPARED" }, \
2d01237389dc64 Wade Farnsworth 2013-11-22 85 { V4L2_BUF_FLAG_NO_CACHE_INVALIDATE, "NO_CACHE_INVALIDATE" }, \
2d01237389dc64 Wade Farnsworth 2013-11-22 86 { V4L2_BUF_FLAG_NO_CACHE_CLEAN, "NO_CACHE_CLEAN" }, \
2d01237389dc64 Wade Farnsworth 2013-11-22 87 { V4L2_BUF_FLAG_TIMESTAMP_MASK, "TIMESTAMP_MASK" }, \
2d01237389dc64 Wade Farnsworth 2013-11-22 88 { V4L2_BUF_FLAG_TIMESTAMP_UNKNOWN, "TIMESTAMP_UNKNOWN" }, \
2d01237389dc64 Wade Farnsworth 2013-11-22 89 { V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC, "TIMESTAMP_MONOTONIC" }, \
dc199241624a2f Peter Seiderer 2015-05-04 90 { V4L2_BUF_FLAG_TIMESTAMP_COPY, "TIMESTAMP_COPY" }, \
dc199241624a2f Peter Seiderer 2015-05-04 91 { V4L2_BUF_FLAG_LAST, "LAST" })
2d01237389dc64 Wade Farnsworth 2013-11-22 92
2d01237389dc64 Wade Farnsworth 2013-11-22 93 #define show_timecode_flags(flags) \
2d01237389dc64 Wade Farnsworth 2013-11-22 94 __print_flags(flags, "|", \
2d01237389dc64 Wade Farnsworth 2013-11-22 95 { V4L2_TC_FLAG_DROPFRAME, "DROPFRAME" }, \
2d01237389dc64 Wade Farnsworth 2013-11-22 96 { V4L2_TC_FLAG_COLORFRAME, "COLORFRAME" }, \
2d01237389dc64 Wade Farnsworth 2013-11-22 97 { V4L2_TC_USERBITS_USERDEFINED, "USERBITS_USERDEFINED" }, \
2d01237389dc64 Wade Farnsworth 2013-11-22 98 { V4L2_TC_USERBITS_8BITCHARS, "USERBITS_8BITCHARS" })
2d01237389dc64 Wade Farnsworth 2013-11-22 99
85efe4e5082c38 Philipp Zabel 2015-07-10 @100 DECLARE_EVENT_CLASS(v4l2_event_class,
85efe4e5082c38 Philipp Zabel 2015-07-10 101 TP_PROTO(int minor, struct v4l2_buffer *buf),
85efe4e5082c38 Philipp Zabel 2015-07-10 102
85efe4e5082c38 Philipp Zabel 2015-07-10 103 TP_ARGS(minor, buf),
85efe4e5082c38 Philipp Zabel 2015-07-10 104
85efe4e5082c38 Philipp Zabel 2015-07-10 @105 TP_STRUCT__entry(
85efe4e5082c38 Philipp Zabel 2015-07-10 @106 __field(int, minor)
85efe4e5082c38 Philipp Zabel 2015-07-10 107 __field(u32, index)
85efe4e5082c38 Philipp Zabel 2015-07-10 108 __field(u32, type)
85efe4e5082c38 Philipp Zabel 2015-07-10 109 __field(u32, bytesused)
85efe4e5082c38 Philipp Zabel 2015-07-10 110 __field(u32, flags)
85efe4e5082c38 Philipp Zabel 2015-07-10 111 __field(u32, field)
85efe4e5082c38 Philipp Zabel 2015-07-10 112 __field(s64, timestamp)
85efe4e5082c38 Philipp Zabel 2015-07-10 113 __field(u32, timecode_type)
85efe4e5082c38 Philipp Zabel 2015-07-10 114 __field(u32, timecode_flags)
85efe4e5082c38 Philipp Zabel 2015-07-10 115 __field(u8, timecode_frames)
85efe4e5082c38 Philipp Zabel 2015-07-10 116 __field(u8, timecode_seconds)
85efe4e5082c38 Philipp Zabel 2015-07-10 117 __field(u8, timecode_minutes)
85efe4e5082c38 Philipp Zabel 2015-07-10 118 __field(u8, timecode_hours)
85efe4e5082c38 Philipp Zabel 2015-07-10 119 __field(u8, timecode_userbits0)
85efe4e5082c38 Philipp Zabel 2015-07-10 120 __field(u8, timecode_userbits1)
85efe4e5082c38 Philipp Zabel 2015-07-10 121 __field(u8, timecode_userbits2)
85efe4e5082c38 Philipp Zabel 2015-07-10 122 __field(u8, timecode_userbits3)
85efe4e5082c38 Philipp Zabel 2015-07-10 123 __field(u32, sequence)
85efe4e5082c38 Philipp Zabel 2015-07-10 124 ),
85efe4e5082c38 Philipp Zabel 2015-07-10 125
85efe4e5082c38 Philipp Zabel 2015-07-10 126 TP_fast_assign(
85efe4e5082c38 Philipp Zabel 2015-07-10 127 __entry->minor = minor;
85efe4e5082c38 Philipp Zabel 2015-07-10 128 __entry->index = buf->index;
85efe4e5082c38 Philipp Zabel 2015-07-10 129 __entry->type = buf->type;
85efe4e5082c38 Philipp Zabel 2015-07-10 130 __entry->bytesused = buf->bytesused;
85efe4e5082c38 Philipp Zabel 2015-07-10 131 __entry->flags = buf->flags;
85efe4e5082c38 Philipp Zabel 2015-07-10 132 __entry->field = buf->field;
77cdffcb0bfb87 Arnd Bergmann 2019-12-16 133 __entry->timestamp = v4l2_buffer_get_timestamp(buf);
85efe4e5082c38 Philipp Zabel 2015-07-10 134 __entry->timecode_type = buf->timecode.type;
85efe4e5082c38 Philipp Zabel 2015-07-10 135 __entry->timecode_flags = buf->timecode.flags;
85efe4e5082c38 Philipp Zabel 2015-07-10 136 __entry->timecode_frames = buf->timecode.frames;
85efe4e5082c38 Philipp Zabel 2015-07-10 137 __entry->timecode_seconds = buf->timecode.seconds;
85efe4e5082c38 Philipp Zabel 2015-07-10 138 __entry->timecode_minutes = buf->timecode.minutes;
85efe4e5082c38 Philipp Zabel 2015-07-10 139 __entry->timecode_hours = buf->timecode.hours;
85efe4e5082c38 Philipp Zabel 2015-07-10 140 __entry->timecode_userbits0 = buf->timecode.userbits[0];
85efe4e5082c38 Philipp Zabel 2015-07-10 141 __entry->timecode_userbits1 = buf->timecode.userbits[1];
85efe4e5082c38 Philipp Zabel 2015-07-10 142 __entry->timecode_userbits2 = buf->timecode.userbits[2];
85efe4e5082c38 Philipp Zabel 2015-07-10 143 __entry->timecode_userbits3 = buf->timecode.userbits[3];
85efe4e5082c38 Philipp Zabel 2015-07-10 144 __entry->sequence = buf->sequence;
85efe4e5082c38 Philipp Zabel 2015-07-10 145 ),
85efe4e5082c38 Philipp Zabel 2015-07-10 146
85efe4e5082c38 Philipp Zabel 2015-07-10 147 TP_printk("minor = %d, index = %u, type = %s, bytesused = %u, "
85efe4e5082c38 Philipp Zabel 2015-07-10 148 "flags = %s, field = %s, timestamp = %llu, "
85efe4e5082c38 Philipp Zabel 2015-07-10 149 "timecode = { type = %s, flags = %s, frames = %u, "
85efe4e5082c38 Philipp Zabel 2015-07-10 150 "seconds = %u, minutes = %u, hours = %u, "
85efe4e5082c38 Philipp Zabel 2015-07-10 151 "userbits = { %u %u %u %u } }, sequence = %u", __entry->minor,
85efe4e5082c38 Philipp Zabel 2015-07-10 152 __entry->index, show_type(__entry->type),
85efe4e5082c38 Philipp Zabel 2015-07-10 153 __entry->bytesused,
85efe4e5082c38 Philipp Zabel 2015-07-10 154 show_flags(__entry->flags),
85efe4e5082c38 Philipp Zabel 2015-07-10 155 show_field(__entry->field),
85efe4e5082c38 Philipp Zabel 2015-07-10 156 __entry->timestamp,
85efe4e5082c38 Philipp Zabel 2015-07-10 157 show_timecode_type(__entry->timecode_type),
85efe4e5082c38 Philipp Zabel 2015-07-10 158 show_timecode_flags(__entry->timecode_flags),
85efe4e5082c38 Philipp Zabel 2015-07-10 159 __entry->timecode_frames,
85efe4e5082c38 Philipp Zabel 2015-07-10 160 __entry->timecode_seconds,
85efe4e5082c38 Philipp Zabel 2015-07-10 161 __entry->timecode_minutes,
85efe4e5082c38 Philipp Zabel 2015-07-10 162 __entry->timecode_hours,
85efe4e5082c38 Philipp Zabel 2015-07-10 163 __entry->timecode_userbits0,
85efe4e5082c38 Philipp Zabel 2015-07-10 164 __entry->timecode_userbits1,
85efe4e5082c38 Philipp Zabel 2015-07-10 165 __entry->timecode_userbits2,
85efe4e5082c38 Philipp Zabel 2015-07-10 166 __entry->timecode_userbits3,
85efe4e5082c38 Philipp Zabel 2015-07-10 167 __entry->sequence
2d01237389dc64 Wade Farnsworth 2013-11-22 168 )
85efe4e5082c38 Philipp Zabel 2015-07-10 @169 )
85efe4e5082c38 Philipp Zabel 2015-07-10 170
85efe4e5082c38 Philipp Zabel 2015-07-10 @171 DEFINE_EVENT(v4l2_event_class, v4l2_dqbuf,
85efe4e5082c38 Philipp Zabel 2015-07-10 172 TP_PROTO(int minor, struct v4l2_buffer *buf),
85efe4e5082c38 Philipp Zabel 2015-07-10 173 TP_ARGS(minor, buf)
85efe4e5082c38 Philipp Zabel 2015-07-10 174 );
2d01237389dc64 Wade Farnsworth 2013-11-22 175
85efe4e5082c38 Philipp Zabel 2015-07-10 @176 DEFINE_EVENT(v4l2_event_class, v4l2_qbuf,
85efe4e5082c38 Philipp Zabel 2015-07-10 177 TP_PROTO(int minor, struct v4l2_buffer *buf),
85efe4e5082c38 Philipp Zabel 2015-07-10 178 TP_ARGS(minor, buf)
85efe4e5082c38 Philipp Zabel 2015-07-10 179 );
2d01237389dc64 Wade Farnsworth 2013-11-22 180
b0e0e1f83de31a Junghak Sung 2015-10-06 181 DECLARE_EVENT_CLASS(vb2_v4l2_event_class,
2091f5181c66b3 Philipp Zabel 2015-07-10 182 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
2091f5181c66b3 Philipp Zabel 2015-07-10 183 TP_ARGS(q, vb),
2091f5181c66b3 Philipp Zabel 2015-07-10 184
2091f5181c66b3 Philipp Zabel 2015-07-10 185 TP_STRUCT__entry(
2091f5181c66b3 Philipp Zabel 2015-07-10 186 __field(int, minor)
2091f5181c66b3 Philipp Zabel 2015-07-10 187 __field(u32, flags)
2091f5181c66b3 Philipp Zabel 2015-07-10 188 __field(u32, field)
d6dd645eae76ee Junghak Sung 2015-11-03 189 __field(u64, timestamp)
2091f5181c66b3 Philipp Zabel 2015-07-10 190 __field(u32, timecode_type)
2091f5181c66b3 Philipp Zabel 2015-07-10 191 __field(u32, timecode_flags)
2091f5181c66b3 Philipp Zabel 2015-07-10 192 __field(u8, timecode_frames)
2091f5181c66b3 Philipp Zabel 2015-07-10 193 __field(u8, timecode_seconds)
2091f5181c66b3 Philipp Zabel 2015-07-10 194 __field(u8, timecode_minutes)
2091f5181c66b3 Philipp Zabel 2015-07-10 195 __field(u8, timecode_hours)
2091f5181c66b3 Philipp Zabel 2015-07-10 196 __field(u8, timecode_userbits0)
2091f5181c66b3 Philipp Zabel 2015-07-10 197 __field(u8, timecode_userbits1)
2091f5181c66b3 Philipp Zabel 2015-07-10 198 __field(u8, timecode_userbits2)
2091f5181c66b3 Philipp Zabel 2015-07-10 199 __field(u8, timecode_userbits3)
2091f5181c66b3 Philipp Zabel 2015-07-10 200 __field(u32, sequence)
2091f5181c66b3 Philipp Zabel 2015-07-10 201 ),
2091f5181c66b3 Philipp Zabel 2015-07-10 202
2091f5181c66b3 Philipp Zabel 2015-07-10 203 TP_fast_assign(
2d7007153f0c9b Junghak Sung 2015-09-22 204 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
bed04f93424737 Junghak Sung 2015-10-06 205 struct v4l2_fh *owner = q->owner;
bed04f93424737 Junghak Sung 2015-10-06 206
bed04f93424737 Junghak Sung 2015-10-06 207 __entry->minor = owner ? owner->vdev->minor : -1;
2d7007153f0c9b Junghak Sung 2015-09-22 208 __entry->flags = vbuf->flags;
2d7007153f0c9b Junghak Sung 2015-09-22 209 __entry->field = vbuf->field;
d6dd645eae76ee Junghak Sung 2015-11-03 210 __entry->timestamp = vb->timestamp;
2d7007153f0c9b Junghak Sung 2015-09-22 211 __entry->timecode_type = vbuf->timecode.type;
2d7007153f0c9b Junghak Sung 2015-09-22 212 __entry->timecode_flags = vbuf->timecode.flags;
2d7007153f0c9b Junghak Sung 2015-09-22 213 __entry->timecode_frames = vbuf->timecode.frames;
2d7007153f0c9b Junghak Sung 2015-09-22 214 __entry->timecode_seconds = vbuf->timecode.seconds;
2d7007153f0c9b Junghak Sung 2015-09-22 215 __entry->timecode_minutes = vbuf->timecode.minutes;
2d7007153f0c9b Junghak Sung 2015-09-22 216 __entry->timecode_hours = vbuf->timecode.hours;
2d7007153f0c9b Junghak Sung 2015-09-22 217 __entry->timecode_userbits0 = vbuf->timecode.userbits[0];
2d7007153f0c9b Junghak Sung 2015-09-22 218 __entry->timecode_userbits1 = vbuf->timecode.userbits[1];
2d7007153f0c9b Junghak Sung 2015-09-22 219 __entry->timecode_userbits2 = vbuf->timecode.userbits[2];
2d7007153f0c9b Junghak Sung 2015-09-22 220 __entry->timecode_userbits3 = vbuf->timecode.userbits[3];
2d7007153f0c9b Junghak Sung 2015-09-22 221 __entry->sequence = vbuf->sequence;
2091f5181c66b3 Philipp Zabel 2015-07-10 222 ),
2091f5181c66b3 Philipp Zabel 2015-07-10 223
b0e0e1f83de31a Junghak Sung 2015-10-06 224 TP_printk("minor=%d flags = %s, field = %s, "
2091f5181c66b3 Philipp Zabel 2015-07-10 225 "timestamp = %llu, timecode = { type = %s, flags = %s, "
2091f5181c66b3 Philipp Zabel 2015-07-10 226 "frames = %u, seconds = %u, minutes = %u, hours = %u, "
2091f5181c66b3 Philipp Zabel 2015-07-10 227 "userbits = { %u %u %u %u } }, sequence = %u", __entry->minor,
2091f5181c66b3 Philipp Zabel 2015-07-10 228 show_flags(__entry->flags),
2091f5181c66b3 Philipp Zabel 2015-07-10 229 show_field(__entry->field),
2091f5181c66b3 Philipp Zabel 2015-07-10 230 __entry->timestamp,
2091f5181c66b3 Philipp Zabel 2015-07-10 231 show_timecode_type(__entry->timecode_type),
2091f5181c66b3 Philipp Zabel 2015-07-10 232 show_timecode_flags(__entry->timecode_flags),
2091f5181c66b3 Philipp Zabel 2015-07-10 233 __entry->timecode_frames,
2091f5181c66b3 Philipp Zabel 2015-07-10 234 __entry->timecode_seconds,
2091f5181c66b3 Philipp Zabel 2015-07-10 235 __entry->timecode_minutes,
2091f5181c66b3 Philipp Zabel 2015-07-10 236 __entry->timecode_hours,
2091f5181c66b3 Philipp Zabel 2015-07-10 237 __entry->timecode_userbits0,
2091f5181c66b3 Philipp Zabel 2015-07-10 238 __entry->timecode_userbits1,
2091f5181c66b3 Philipp Zabel 2015-07-10 239 __entry->timecode_userbits2,
2091f5181c66b3 Philipp Zabel 2015-07-10 240 __entry->timecode_userbits3,
2091f5181c66b3 Philipp Zabel 2015-07-10 241 __entry->sequence
2091f5181c66b3 Philipp Zabel 2015-07-10 242 )
2091f5181c66b3 Philipp Zabel 2015-07-10 243 )
2091f5181c66b3 Philipp Zabel 2015-07-10 244
b0e0e1f83de31a Junghak Sung 2015-10-06 @245 DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_buf_done,
2091f5181c66b3 Philipp Zabel 2015-07-10 246 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
2091f5181c66b3 Philipp Zabel 2015-07-10 247 TP_ARGS(q, vb)
2091f5181c66b3 Philipp Zabel 2015-07-10 248 );
2091f5181c66b3 Philipp Zabel 2015-07-10 249
b0e0e1f83de31a Junghak Sung 2015-10-06 @250 DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_buf_queue,
2091f5181c66b3 Philipp Zabel 2015-07-10 251 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
2091f5181c66b3 Philipp Zabel 2015-07-10 252 TP_ARGS(q, vb)
2091f5181c66b3 Philipp Zabel 2015-07-10 253 );
2091f5181c66b3 Philipp Zabel 2015-07-10 254
b0e0e1f83de31a Junghak Sung 2015-10-06 @255 DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_dqbuf,
2091f5181c66b3 Philipp Zabel 2015-07-10 256 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
2091f5181c66b3 Philipp Zabel 2015-07-10 257 TP_ARGS(q, vb)
2091f5181c66b3 Philipp Zabel 2015-07-10 258 );
2091f5181c66b3 Philipp Zabel 2015-07-10 259
b0e0e1f83de31a Junghak Sung 2015-10-06 @260 DEFINE_EVENT(vb2_v4l2_event_class, vb2_v4l2_qbuf,
2091f5181c66b3 Philipp Zabel 2015-07-10 261 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
2091f5181c66b3 Philipp Zabel 2015-07-10 262 TP_ARGS(q, vb)
2091f5181c66b3 Philipp Zabel 2015-07-10 263 );
2091f5181c66b3 Philipp Zabel 2015-07-10 264
:::::: The code at line 171 was first introduced by commit
:::::: 85efe4e5082c381262f5303d20f808ac455b028e [media] v4l2-dev: use event class to deduplicate v4l2 trace events
:::::: TO: Philipp Zabel <p.zabel(a)pengutronix.de>
:::::: CC: Mauro Carvalho Chehab <mchehab(a)osg.samsung.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[ezequielg:vb2_buffer_handling_v1 9/13] drivers/media/common/videobuf2/videobuf2-v4l2.c:603:21: error: '__copy_timestamp' undeclared; did you mean 'vdso_timestamp'?
by kbuild test robot
tree: git://git.infradead.org/users/ezequielg/linux vb2_buffer_handling_v1
head: b8940b7354debe527a51901290d5677d503ae394
commit: 43b5e9c838b9851045b8f9636b14cdb3a9b1fa9a [9/13] videobuf2: Introduce vb2_find_buffer helper
config: arm-sama5_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 43b5e9c838b9851045b8f9636b14cdb3a9b1fa9a
# save the attached .config to linux build tree
GCC_VERSION=9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from drivers/media/v4l2-core/v4l2-ioctl.c:26:
include/media/videobuf2-v4l2.h: In function 'vb2_find_buffer':
>> include/media/videobuf2-v4l2.h:340:1: warning: empty declaration
340 | struct media_request;
| ^~~~~~
In file included from drivers/media/v4l2-core/v4l2-ioctl.c:27:
>> include/media/v4l2-mc.h:18:1: warning: empty declaration
18 | struct pci_dev;
| ^~~~~~
include/media/v4l2-mc.h:19:1: warning: empty declaration
19 | struct usb_device;
| ^~~~~~
>> include/media/v4l2-mc.h:136:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
136 | {
| ^
include/media/v4l2-mc.h:141:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
141 | {
| ^
include/media/v4l2-mc.h:146:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
146 | {
| ^
include/media/v4l2-mc.h:150:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
150 | {
| ^
include/media/v4l2-mc.h:155:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
155 | {
| ^
include/media/v4l2-mc.h:160:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
160 | {}
| ^
include/media/v4l2-mc.h:164:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
164 | {
| ^
In file included from drivers/media/v4l2-core/v4l2-ioctl.c:28:
>> include/media/v4l2-mem2mem.h:42:1: warning: empty declaration
42 | struct v4l2_m2m_ops {
| ^~~~~~
include/media/v4l2-mem2mem.h:48:1: warning: empty declaration
48 | struct video_device;
| ^~~~~~
include/media/v4l2-mem2mem.h:49:1: warning: empty declaration
49 | struct v4l2_m2m_dev;
| ^~~~~~
include/media/v4l2-mem2mem.h:65:1: warning: empty declaration
65 | struct v4l2_m2m_queue_ctx {
| ^~~~~~
include/media/v4l2-mem2mem.h:99:1: warning: empty declaration
99 | struct v4l2_m2m_ctx {
| ^~~~~~
include/media/v4l2-mem2mem.h:131:1: warning: empty declaration
131 | struct v4l2_m2m_buffer {
| ^~~~~~
include/media/v4l2-mem2mem.h:223:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
223 | {
| ^
include/media/v4l2-mem2mem.h:234:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
234 | {
| ^
include/media/v4l2-mem2mem.h:247:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
247 | {
| ^
include/media/v4l2-mem2mem.h:264:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
264 | {
| ^
include/media/v4l2-mem2mem.h:276:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
276 | {
| ^
include/media/v4l2-mem2mem.h:294:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
294 | {
| ^
include/media/v4l2-mem2mem.h:494:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
494 | {
| ^
include/media/v4l2-mem2mem.h:500:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
500 | {
| ^
include/media/v4l2-mem2mem.h:530:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
530 | {
| ^
include/media/v4l2-mem2mem.h:536:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
536 | {
| ^
include/media/v4l2-mem2mem.h:568:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
568 | {
| ^
include/media/v4l2-mem2mem.h:580:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
580 | {
| ^
include/media/v4l2-mem2mem.h:599:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
599 | {
| ^
include/media/v4l2-mem2mem.h:611:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
611 | {
| ^
include/media/v4l2-mem2mem.h:630:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
630 | {
| ^
include/media/v4l2-mem2mem.h:642:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
642 | {
| ^
include/media/v4l2-mem2mem.h:694:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
694 | {
| ^
include/media/v4l2-mem2mem.h:705:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
705 | {
| ^
include/media/v4l2-mem2mem.h:725:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
725 | {
| ^
include/media/v4l2-mem2mem.h:737:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
737 | {
| ^
include/media/v4l2-mem2mem.h:760:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
760 | {
| ^
include/media/v4l2-mem2mem.h:773:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
773 | {
| ^
include/media/v4l2-mem2mem.h:782:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
782 | {
| ^
include/media/v4l2-mem2mem.h:788:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
788 | {
| ^
In file included from include/trace/events/v4l2.h:8,
from drivers/media/v4l2-core/v4l2-ioctl.c:30:
>> include/linux/tracepoint.h:23:1: warning: empty declaration
23 | struct module;
| ^~~~~~
include/linux/tracepoint.h:24:1: warning: empty declaration
24 | struct tracepoint;
| ^~~~~~
include/linux/tracepoint.h:25:1: warning: empty declaration
25 | struct notifier_block;
| ^~~~~~
include/linux/tracepoint.h:27:1: warning: empty declaration
27 | struct trace_eval_map {
| ^~~~~~
include/linux/tracepoint.h:35:27: error: storage class specified for parameter 'tracepoint_srcu'
35 | extern struct srcu_struct tracepoint_srcu;
| ^~~~~~~~~~~~~~~
include/linux/tracepoint.h:38:1: error: storage class specified for parameter 'tracepoint_probe_register'
38 | tracepoint_probe_register(struct tracepoint *tp, void *probe, void *data);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/tracepoint.h:40:1: error: storage class specified for parameter 'tracepoint_probe_register_prio'
40 | tracepoint_probe_register_prio(struct tracepoint *tp, void *probe, void *data,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/tracepoint.h:43:1: error: storage class specified for parameter 'tracepoint_probe_unregister'
43 | tracepoint_probe_unregister(struct tracepoint *tp, void *probe, void *data);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/tracepoint.h:45:1: error: storage class specified for parameter 'for_each_kernel_tracepoint'
45 | for_each_kernel_tracepoint(void (*fct)(struct tracepoint *tp, void *priv),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/tracepoint.h:49:1: warning: empty declaration
49 | struct tp_module {
| ^~~~~~
include/linux/tracepoint.h:55:12: error: storage class specified for parameter 'register_tracepoint_module_notifier'
55 | extern int register_tracepoint_module_notifier(struct notifier_block *nb);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/tracepoint.h:56:12: error: storage class specified for parameter 'unregister_tracepoint_module_notifier'
56 | extern int unregister_tracepoint_module_notifier(struct notifier_block *nb);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/tracepoint.h:87:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
87 | { }
| ^
>> include/linux/tracepoint.h:91:12: error: storage class specified for parameter 'syscall_regfunc'
91 | extern int syscall_regfunc(void);
| ^~~~~~~~~~~~~~~
>> include/linux/tracepoint.h:92:13: error: storage class specified for parameter 'syscall_unregfunc'
92 | extern void syscall_unregfunc(void);
| ^~~~~~~~~~~~~~~~~
include/linux/tracepoint.h:113:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
113 | {
| ^
In file included from drivers/media/v4l2-core/v4l2-ioctl.c:30:
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
>> include/trace/events/v4l2.h:21:2: note: in expansion of macro 'EM'
21 | EM( V4L2_BUF_TYPE_VIDEO_CAPTURE, "VIDEO_CAPTURE" ) \
| ^~
>> include/trace/events/v4l2.h:36:1: note: in expansion of macro 'SHOW_TYPE'
36 | SHOW_TYPE
| ^~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:22:2: note: in expansion of macro 'EM'
22 | EM( V4L2_BUF_TYPE_VIDEO_OUTPUT, "VIDEO_OUTPUT" ) \
| ^~
>> include/trace/events/v4l2.h:36:1: note: in expansion of macro 'SHOW_TYPE'
36 | SHOW_TYPE
| ^~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:23:2: note: in expansion of macro 'EM'
23 | EM( V4L2_BUF_TYPE_VIDEO_OVERLAY, "VIDEO_OVERLAY" ) \
| ^~
>> include/trace/events/v4l2.h:36:1: note: in expansion of macro 'SHOW_TYPE'
36 | SHOW_TYPE
| ^~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:24:2: note: in expansion of macro 'EM'
24 | EM( V4L2_BUF_TYPE_VBI_CAPTURE, "VBI_CAPTURE" ) \
| ^~
>> include/trace/events/v4l2.h:36:1: note: in expansion of macro 'SHOW_TYPE'
36 | SHOW_TYPE
| ^~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:25:2: note: in expansion of macro 'EM'
25 | EM( V4L2_BUF_TYPE_VBI_OUTPUT, "VBI_OUTPUT" ) \
| ^~
>> include/trace/events/v4l2.h:36:1: note: in expansion of macro 'SHOW_TYPE'
36 | SHOW_TYPE
| ^~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:26:2: note: in expansion of macro 'EM'
26 | EM( V4L2_BUF_TYPE_SLICED_VBI_CAPTURE, "SLICED_VBI_CAPTURE" ) \
| ^~
>> include/trace/events/v4l2.h:36:1: note: in expansion of macro 'SHOW_TYPE'
36 | SHOW_TYPE
| ^~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:27:2: note: in expansion of macro 'EM'
27 | EM( V4L2_BUF_TYPE_SLICED_VBI_OUTPUT, "SLICED_VBI_OUTPUT" ) \
| ^~
>> include/trace/events/v4l2.h:36:1: note: in expansion of macro 'SHOW_TYPE'
36 | SHOW_TYPE
| ^~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:28:2: note: in expansion of macro 'EM'
28 | EM( V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY, "VIDEO_OUTPUT_OVERLAY" ) \
| ^~
>> include/trace/events/v4l2.h:36:1: note: in expansion of macro 'SHOW_TYPE'
36 | SHOW_TYPE
| ^~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:29:2: note: in expansion of macro 'EM'
29 | EM( V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, "VIDEO_CAPTURE_MPLANE" ) \
| ^~
>> include/trace/events/v4l2.h:36:1: note: in expansion of macro 'SHOW_TYPE'
36 | SHOW_TYPE
| ^~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:30:2: note: in expansion of macro 'EM'
30 | EM( V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, "VIDEO_OUTPUT_MPLANE" ) \
| ^~
>> include/trace/events/v4l2.h:36:1: note: in expansion of macro 'SHOW_TYPE'
36 | SHOW_TYPE
| ^~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:31:2: note: in expansion of macro 'EM'
31 | EM( V4L2_BUF_TYPE_SDR_CAPTURE, "SDR_CAPTURE" ) \
| ^~
>> include/trace/events/v4l2.h:36:1: note: in expansion of macro 'SHOW_TYPE'
36 | SHOW_TYPE
| ^~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:32:2: note: in expansion of macro 'EM'
32 | EM( V4L2_BUF_TYPE_SDR_OUTPUT, "SDR_OUTPUT" ) \
| ^~
>> include/trace/events/v4l2.h:36:1: note: in expansion of macro 'SHOW_TYPE'
36 | SHOW_TYPE
| ^~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:33:2: note: in expansion of macro 'EM'
33 | EM( V4L2_BUF_TYPE_META_CAPTURE, "META_CAPTURE" ) \
| ^~
include/trace/events/v4l2.h:36:1: note: in expansion of macro 'SHOW_TYPE'
36 | SHOW_TYPE
| ^~~~~~~~~
include/trace/events/v4l2.h:15:39: error: expected declaration specifiers before ';' token
15 | #define EMe(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:34:2: note: in expansion of macro 'EMe'
34 | EMe(V4L2_BUF_TYPE_PRIVATE, "PRIVATE" )
| ^~~
include/trace/events/v4l2.h:36:1: note: in expansion of macro 'SHOW_TYPE'
36 | SHOW_TYPE
| ^~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:42:2: note: in expansion of macro 'EM'
42 | EM( V4L2_FIELD_ANY, "ANY" ) \
| ^~
include/trace/events/v4l2.h:53:1: note: in expansion of macro 'SHOW_FIELD'
53 | SHOW_FIELD
| ^~~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:43:2: note: in expansion of macro 'EM'
43 | EM( V4L2_FIELD_NONE, "NONE" ) \
| ^~
include/trace/events/v4l2.h:53:1: note: in expansion of macro 'SHOW_FIELD'
53 | SHOW_FIELD
| ^~~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:44:2: note: in expansion of macro 'EM'
44 | EM( V4L2_FIELD_TOP, "TOP" ) \
| ^~
include/trace/events/v4l2.h:53:1: note: in expansion of macro 'SHOW_FIELD'
53 | SHOW_FIELD
| ^~~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:45:2: note: in expansion of macro 'EM'
45 | EM( V4L2_FIELD_BOTTOM, "BOTTOM" ) \
| ^~
include/trace/events/v4l2.h:53:1: note: in expansion of macro 'SHOW_FIELD'
53 | SHOW_FIELD
| ^~~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:46:2: note: in expansion of macro 'EM'
46 | EM( V4L2_FIELD_INTERLACED, "INTERLACED" ) \
| ^~
include/trace/events/v4l2.h:53:1: note: in expansion of macro 'SHOW_FIELD'
53 | SHOW_FIELD
| ^~~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:47:2: note: in expansion of macro 'EM'
47 | EM( V4L2_FIELD_SEQ_TB, "SEQ_TB" ) \
| ^~
include/trace/events/v4l2.h:53:1: note: in expansion of macro 'SHOW_FIELD'
53 | SHOW_FIELD
| ^~~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:48:2: note: in expansion of macro 'EM'
48 | EM( V4L2_FIELD_SEQ_BT, "SEQ_BT" ) \
| ^~
include/trace/events/v4l2.h:53:1: note: in expansion of macro 'SHOW_FIELD'
53 | SHOW_FIELD
| ^~~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:49:2: note: in expansion of macro 'EM'
49 | EM( V4L2_FIELD_ALTERNATE, "ALTERNATE" ) \
| ^~
include/trace/events/v4l2.h:53:1: note: in expansion of macro 'SHOW_FIELD'
53 | SHOW_FIELD
| ^~~~~~~~~~
include/trace/events/v4l2.h:14:38: error: expected declaration specifiers before ';' token
14 | #define EM(a, b) TRACE_DEFINE_ENUM(a);
| ^
include/trace/events/v4l2.h:50:2: note: in expansion of macro 'EM'
50 | EM( V4L2_FIELD_INTERLACED_TB, "INTERLACED_TB" ) \
| ^~
include/trace/events/v4l2.h:53:1: note: in expansion of macro 'SHOW_FIELD'
53 | SHOW_FIELD
..
vim +603 drivers/media/common/videobuf2/videobuf2-v4l2.c
db6e8d57e2cd9f drivers/media/common/videobuf2/videobuf2-v4l2.c Hans Verkuil 2018-05-21 597
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 598 static const struct vb2_buf_ops v4l2_buf_ops = {
83934b75c368f5 drivers/media/v4l2-core/videobuf2-v4l2.c Sakari Ailus 2016-04-03 599 .verify_planes_array = __verify_planes_array_core,
e6c237ad93a08d drivers/media/common/videobuf2/videobuf2-v4l2.c Ezequiel Garcia 2019-03-28 600 .init_buffer = __init_vb2_v4l2_buffer,
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 601 .fill_user_buffer = __fill_v4l2_buffer,
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 602 .fill_vb2_buffer = __fill_vb2_buffer,
959c3ef336fc36 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-11-03 @603 .copy_timestamp = __copy_timestamp,
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 604 };
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 605
245ede423b43a6 drivers/media/common/videobuf2/videobuf2-v4l2.c Hans Verkuil 2018-10-24 606 int vb2_find_timestamp(const struct vb2_queue *q, u64 timestamp,
245ede423b43a6 drivers/media/common/videobuf2/videobuf2-v4l2.c Hans Verkuil 2018-10-24 607 unsigned int start_idx)
245ede423b43a6 drivers/media/common/videobuf2/videobuf2-v4l2.c Hans Verkuil 2018-10-24 608 {
245ede423b43a6 drivers/media/common/videobuf2/videobuf2-v4l2.c Hans Verkuil 2018-10-24 609 unsigned int i;
245ede423b43a6 drivers/media/common/videobuf2/videobuf2-v4l2.c Hans Verkuil 2018-10-24 610
03535e7a3a9937 drivers/media/common/videobuf2/videobuf2-v4l2.c Hans Verkuil 2019-01-24 611 for (i = start_idx; i < q->num_buffers; i++)
7e4e71624491d8 drivers/media/common/videobuf2/videobuf2-v4l2.c Hans Verkuil 2019-02-04 612 if (q->bufs[i]->copied_timestamp &&
7e4e71624491d8 drivers/media/common/videobuf2/videobuf2-v4l2.c Hans Verkuil 2019-02-04 613 q->bufs[i]->timestamp == timestamp)
245ede423b43a6 drivers/media/common/videobuf2/videobuf2-v4l2.c Hans Verkuil 2018-10-24 614 return i;
245ede423b43a6 drivers/media/common/videobuf2/videobuf2-v4l2.c Hans Verkuil 2018-10-24 615 return -1;
245ede423b43a6 drivers/media/common/videobuf2/videobuf2-v4l2.c Hans Verkuil 2018-10-24 616 }
245ede423b43a6 drivers/media/common/videobuf2/videobuf2-v4l2.c Hans Verkuil 2018-10-24 @617 EXPORT_SYMBOL_GPL(vb2_find_timestamp);
245ede423b43a6 drivers/media/common/videobuf2/videobuf2-v4l2.c Hans Verkuil 2018-10-24 618
43b5e9c838b985 drivers/media/common/videobuf2/videobuf2-v4l2.c Ezequiel Garcia 2020-04-01 619 struct vb2_buffer *vb2_find_buffer(struct vb2_queue *q, u64 timestamp)
43b5e9c838b985 drivers/media/common/videobuf2/videobuf2-v4l2.c Ezequiel Garcia 2020-04-01 620 {
43b5e9c838b985 drivers/media/common/videobuf2/videobuf2-v4l2.c Ezequiel Garcia 2020-04-01 621 int index;
43b5e9c838b985 drivers/media/common/videobuf2/videobuf2-v4l2.c Ezequiel Garcia 2020-04-01 622
43b5e9c838b985 drivers/media/common/videobuf2/videobuf2-v4l2.c Ezequiel Garcia 2020-04-01 623 index = vb2_find_timestamp(q, timestamp, 0);
43b5e9c838b985 drivers/media/common/videobuf2/videobuf2-v4l2.c Ezequiel Garcia 2020-04-01 624 if (index < 0)
43b5e9c838b985 drivers/media/common/videobuf2/videobuf2-v4l2.c Ezequiel Garcia 2020-04-01 625 return NULL;
43b5e9c838b985 drivers/media/common/videobuf2/videobuf2-v4l2.c Ezequiel Garcia 2020-04-01 626 return vb2_get_buffer(q, index);
43b5e9c838b985 drivers/media/common/videobuf2/videobuf2-v4l2.c Ezequiel Garcia 2020-04-01 627 }
43b5e9c838b985 drivers/media/common/videobuf2/videobuf2-v4l2.c Ezequiel Garcia 2020-04-01 628 EXPORT_SYMBOL_GPL(vb2_find_buffer);
43b5e9c838b985 drivers/media/common/videobuf2/videobuf2-v4l2.c Ezequiel Garcia 2020-04-01 629
2a87af6ba1b9df drivers/media/v4l2-core/videobuf2-v4l2.c Mauro Carvalho Chehab 2017-11-27 630 /*
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 631 * vb2_querybuf() - query video buffer information
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 632 * @q: videobuf queue
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 633 * @b: buffer struct passed from userspace to vidioc_querybuf handler
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 634 * in driver
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 635 *
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 636 * Should be called from vidioc_querybuf ioctl handler in driver.
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 637 * This function will verify the passed v4l2_buffer structure and fill the
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 638 * relevant information for the userspace.
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 639 *
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 640 * The return values from this function are intended to be directly returned
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 641 * from vidioc_querybuf handler in driver.
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 642 */
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 643 int vb2_querybuf(struct vb2_queue *q, struct v4l2_buffer *b)
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 644 {
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 645 struct vb2_buffer *vb;
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 646 int ret;
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 647
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 648 if (b->type != q->type) {
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 649 dprintk(1, "wrong buffer type\n");
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 650 return -EINVAL;
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 651 }
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 652
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 653 if (b->index >= q->num_buffers) {
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 654 dprintk(1, "buffer index out of range\n");
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 655 return -EINVAL;
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 656 }
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 657 vb = q->bufs[b->index];
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 658 ret = __verify_planes_array(vb, b);
10cc3b1e12964a drivers/media/v4l2-core/videobuf2-v4l2.c Hans Verkuil 2015-11-20 659 if (!ret)
10cc3b1e12964a drivers/media/v4l2-core/videobuf2-v4l2.c Hans Verkuil 2015-11-20 660 vb2_core_querybuf(q, b->index, b);
10cc3b1e12964a drivers/media/v4l2-core/videobuf2-v4l2.c Hans Verkuil 2015-11-20 661 return ret;
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 662 }
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 @663 EXPORT_SYMBOL(vb2_querybuf);
3c5be988e0b6a2 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 664
:::::: The code at line 603 was first introduced by commit
:::::: 959c3ef336fc363e522611812dd1d00443706dec [media] media: videobuf2: Add copy_timestamp to struct vb2_queue
:::::: TO: Junghak Sung <jh1009.sung(a)samsung.com>
:::::: CC: Mauro Carvalho Chehab <mchehab(a)osg.samsung.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months