Hi Christophe, Thank you for the patch! Yet something to improve: [auto build test ERROR on firewire/for-next] [also build test ERROR on v5.8-rc2 next-20200624] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Christophe-JAILLET/firewire-nosy-Fix-the-amount-of-memory-deallocated-by-some-pci_free_consistent-calls/20200625-032633 base: https://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394.git for-next config: x86_64-randconfig-m001-20200624 (attached as .config) compiler: gcc-9 (Debian 9.3.0-13) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): drivers/firewire/nosy.c: In function 'remove_card': >> drivers/firewire/nosy.c:513:40: error: 'RCV_BUFFER_SIZE' undeclared (first use in this function); did you mean 'UEVENT_BUFFER_SIZE'? 513 | pci_free_consistent(lynx->pci_device, RCV_BUFFER_SIZE, | ^~~~~~~~~~~~~~~ | UEVENT_BUFFER_SIZE drivers/firewire/nosy.c:513:40: note: each undeclared identifier is reported only once for each function it appears in vim +513 drivers/firewire/nosy.c 489 490 static void 491 remove_card(struct pci_dev *dev) 492 { 493 struct pcilynx *lynx = pci_get_drvdata(dev); 494 struct client *client; 495 496 mutex_lock(&card_mutex); 497 list_del_init(&lynx->link); 498 misc_deregister(&lynx->misc); 499 mutex_unlock(&card_mutex); 500 501 reg_write(lynx, PCI_INT_ENABLE, 0); 502 free_irq(lynx->pci_device->irq, lynx); 503 504 spin_lock_irq(&lynx->client_list_lock); 505 list_for_each_entry(client, &lynx->client_list, link) 506 wake_up_interruptible(&client->buffer.wait); 507 spin_unlock_irq(&lynx->client_list_lock); 508 509 pci_free_consistent(lynx->pci_device, sizeof(struct pcl), 510 lynx->rcv_start_pcl, lynx->rcv_start_pcl_bus); 511 pci_free_consistent(lynx->pci_device, sizeof(struct pcl), 512 lynx->rcv_pcl, lynx->rcv_pcl_bus); > 513 pci_free_consistent(lynx->pci_device, RCV_BUFFER_SIZE, 514 lynx->rcv_buffer, lynx->rcv_buffer_bus); 515 516 iounmap(lynx->registers); 517 pci_disable_device(dev); 518 lynx_put(lynx); 519 } 520 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip