* drivers/gpu/drm/vkms/vkms_configfs.c:625:5: warning: 'vkms_configfs_parse_next_format' defined but not used
@ 2026-08-14 12:57 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-14 12:57 UTC (permalink / raw)
To: Louis Chauvet; +Cc: oe-kbuild-all, 0day robot
tree: https://github.com/intel-lab-lkp/linux/commits/Louis-Chauvet/drm-drm_mode_config-Add-helper-to-get-plane-type-name/20260807-092508
head: c4c09a7274b7bb12e10957fc5da78e52e5bbf54d
commit: d799e044e269193685079d3260b0b0b33d17a237 drm/vkms: Introduce configfs for plane format
date: 7 days ago
config: x86_64-rhel-9.4-bpf (https://download.01.org/0day-ci/archive/20260814/202608141459.lTWy7nlR-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260814/202608141459.lTWy7nlR-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202608141459.lTWy7nlR-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/vkms/vkms_configfs.c:625:5: warning: 'vkms_configfs_parse_next_format' defined but not used [-Wunused-function]
625 | int vkms_configfs_parse_next_format(const char *page, const char *page_end, char **out)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/vkms_configfs_parse_next_format +625 drivers/gpu/drm/vkms/vkms_configfs.c
614
615 /**
616 * vkms_configfs_parse_next_format() - Parse the next format in page,
617 * skipping all non fourcc-related characters
618 * @page: page to search into
619 * @page_end: last character of the page
620 * @out: Output pointer, will point inside page
621 *
622 * Returns: size of the matched format, @out will point to the + or -
623 */
624 VISIBLE_IF_KUNIT
> 625 int vkms_configfs_parse_next_format(const char *page, const char *page_end, char **out)
626 {
627 int count = page - page_end;
628 char *tmp_plus = strnchr(page, count, '+');
629 char *tmp_minus = strnchr(page, count, '-');
630
631 if (!tmp_plus && !tmp_minus)
632 return 0;
633 if (!tmp_plus)
634 *out = tmp_minus;
635 else if (!tmp_minus)
636 *out = tmp_plus;
637 else
638 *out = min(tmp_plus, tmp_minus);
639
640 char *end = *out + 1;
641
642 while (end < page_end) {
643 if (!isalnum(*end) && *end != '*')
644 break;
645 end++;
646 }
647
648 return end - *out;
649 }
650 EXPORT_SYMBOL_IF_KUNIT(vkms_configfs_parse_next_format);
651
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-14 12:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-14 12:57 drivers/gpu/drm/vkms/vkms_configfs.c:625:5: warning: 'vkms_configfs_parse_next_format' defined but not used kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.