tree:
https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: 8bbfe55bfdb2905c35914605bc1b4a4404d86649
commit: 7c10de4dfc3d5e6be6f087b28470fd2d5e51b313 [17/24] drm/i915/gvt: add acrngt support
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/intel/linux-intel-lts/commit/7c10de4dfc3d5e6be6f087b28...
git remote add intel-linux-intel-lts
https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 7c10de4dfc3d5e6be6f087b28470fd2d5e51b313
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/gpu/drm/i915/gvt/acrngt.c:582:5: error: no previous
prototype for 'acrngt_sysfs_init' [-Werror=missing-prototypes]
582 |
int acrngt_sysfs_init(struct intel_gvt *gvt)
| ^~~~~~~~~~~~~~~~~
> drivers/gpu/drm/i915/gvt/acrngt.c:616:6: error: no previous
prototype for 'acrngt_sysfs_del' [-Werror=missing-prototypes]
616 |
void acrngt_sysfs_del(void)
| ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/acrngt_sysfs_init +582 drivers/gpu/drm/i915/gvt/acrngt.c
581
582 int acrngt_sysfs_init(struct intel_gvt *gvt)
583 {
584 int ret;
585
586 acrn_gvt_kset = kset_create_and_add("gvt", NULL, kernel_kobj);
587 if (!acrn_gvt_kset) {
588 ret = -ENOMEM;
589 goto kset_fail;
590 }
591
592 acrn_gvt_ctrl_kobj = kzalloc(sizeof(struct kobject), GFP_KERNEL);
593 if (!acrn_gvt_ctrl_kobj) {
594 ret = -ENOMEM;
595 goto ctrl_fail;
596 }
597
598 acrn_gvt_ctrl_kobj->kset = acrn_gvt_kset;
599 ret = kobject_init_and_add(acrn_gvt_ctrl_kobj, &acrngt_ctrl_ktype,
600 NULL, "control");
601 if (ret) {
602 ret = -EINVAL;
603 goto kobj_fail;
604 }
605
606 return 0;
607
608 kobj_fail:
609 kobject_put(acrn_gvt_ctrl_kobj);
610 ctrl_fail:
611 kset_unregister(acrn_gvt_kset);
612 kset_fail:
613 return ret;
614 }
615
616 void acrngt_sysfs_del(void)
617 {
618 kobject_put(acrn_gvt_ctrl_kobj);
619 kset_unregister(acrn_gvt_kset);
620 }
621
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org