Hi Sakari, kernel test robot noticed the following build errors: [auto build test ERROR on media-tree/master] [also build test ERROR on linuxtv-media-stage/master sailus-media-tree/streams linus/master v6.7 next-20240108] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Sakari-Ailus/media-v4l-Add-a-helper-for-setting-up-link-frequencies-control/20240108-155716 base: git://linuxtv.org/media_tree.git master patch link: https://lore.kernel.org/r/20240108075221.15757-2-sakari.ailus%40linux.intel.com patch subject: [PATCH v2 1/4] media: v4l: Add a helper for setting up link-frequencies control config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20240108/202401082245.yka9kMRc-lkp@xxxxxxxxx/config) compiler: ClangBuiltLinux clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240108/202401082245.yka9kMRc-lkp@xxxxxxxxx/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202401082245.yka9kMRc-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): >> drivers/media/v4l2-core/v4l2-common.c:634:19: error: use of undeclared identifier 'v4l2_link_frequencies_to_bitmap'; did you mean 'v4l2_link_freq_to_bitmap'? 634 | EXPORT_SYMBOL_GPL(v4l2_link_frequencies_to_bitmap); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | v4l2_link_freq_to_bitmap include/linux/export.h:87:48: note: expanded from macro 'EXPORT_SYMBOL_GPL' 87 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "GPL") | ^ include/linux/export.h:83:54: note: expanded from macro '_EXPORT_SYMBOL' 83 | #define _EXPORT_SYMBOL(sym, license) __EXPORT_SYMBOL(sym, license, "") | ^ include/linux/export.h:74:16: note: expanded from macro '__EXPORT_SYMBOL' 74 | extern typeof(sym) sym; \ | ^ drivers/media/v4l2-core/v4l2-common.c:589:5: note: 'v4l2_link_freq_to_bitmap' declared here 589 | int v4l2_link_freq_to_bitmap(struct device *dev, const u64 *fw_link_freqs, | ^ 1 error generated. vim +634 drivers/media/v4l2-core/v4l2-common.c 588 589 int v4l2_link_freq_to_bitmap(struct device *dev, const u64 *fw_link_freqs, 590 unsigned int num_of_fw_link_freqs, 591 const s64 *driver_link_freqs, 592 unsigned int num_of_driver_link_freqs, 593 unsigned long *bitmap) 594 { 595 unsigned int i; 596 597 *bitmap = 0; 598 599 if (!num_of_fw_link_freqs) { 600 dev_err(dev, "no link frequencies in firmware\n"); 601 return -ENODATA; 602 } 603 604 for (i = 0; i < num_of_fw_link_freqs; i++) { 605 unsigned int j; 606 607 for (j = 0; j < num_of_driver_link_freqs; j++) { 608 if (fw_link_freqs[i] != driver_link_freqs[j]) 609 continue; 610 611 dev_dbg(dev, "enabling link frequency %lld Hz\n", 612 driver_link_freqs[j]); 613 *bitmap |= BIT(j); 614 break; 615 } 616 } 617 618 if (!*bitmap) { 619 dev_err(dev, "no matching link frequencies found\n"); 620 621 dev_dbg(dev, "specified in firmware:\n"); 622 for (i = 0; i < num_of_fw_link_freqs; i++) 623 dev_dbg(dev, "\t%llu Hz\n", fw_link_freqs[i]); 624 625 dev_dbg(dev, "driver supported:\n"); 626 for (i = 0; i < num_of_driver_link_freqs; i++) 627 dev_dbg(dev, "\t%lld Hz\n", driver_link_freqs[i]); 628 629 return -ENOENT; 630 } 631 632 return 0; 633 } > 634 EXPORT_SYMBOL_GPL(v4l2_link_frequencies_to_bitmap); -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki