tree:
git://git.infradead.org/users/hch/misc.git decruft-i915-gvt
head: 60f0d5ae52ba484e235ab1174a9c66319d4d2ec8
commit: ff84101f9973d6256320a5e20f2c9c8c69120c83 [5/23] drm/i915/gvt: move the entire gvt
code into kvmgt.ko
config: x86_64-rhel-8.3-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add hch-misc
git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc decruft-i915-gvt
git checkout ff84101f9973d6256320a5e20f2c9c8c69120c83
# 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 warnings (new ones prefixed by >>):
drivers/gpu/drm/i915/intel_gvt.c: In function 'intel_gvt_init':
> drivers/gpu/drm/i915/intel_gvt.c:119:21: warning: assignment
discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
119 | dev_priv->vgpu.ops = symbol_get(intel_gvt_vgpu_ops);
| ^
vim +/const +119 drivers/gpu/drm/i915/intel_gvt.c
88
89 /**
90 * intel_gvt_init - initialize GVT components
91 * @dev_priv: drm i915 private data
92 *
93 * This function is called at the initialization stage to create a GVT device.
94 *
95 * Returns:
96 * Zero on success, negative error code if failed.
97 *
98 */
99 int intel_gvt_init(struct drm_i915_private *dev_priv)
100 {
101 int ret;
102
103 if (i915_inject_probe_failure(dev_priv))
104 return -ENODEV;
105
106 if (!dev_priv->params.enable_gvt) {
107 drm_dbg(&dev_priv->drm,
108 "GVT-g is disabled by kernel params\n");
109 return 0;
110 }
111
112 if (intel_uc_wants_guc_submission(&dev_priv->gt.uc)) {
113 drm_err(&dev_priv->drm,
114 "i915 GVT-g loading failed due to Graphics virtualization is not yet
supported with GuC submission\n");
115 return -EIO;
116 }
117
118 request_module("kvmgt");
119 dev_priv->vgpu.ops = symbol_get(intel_gvt_vgpu_ops);
120 if (!dev_priv->vgpu.ops) {
121 drm_dbg(&dev_priv->drm, "Fail to find GVT ops\n");
122 goto bail;
123 }
124
125 ret = dev_priv->vgpu.ops->init_device(dev_priv);
126 if (ret) {
127 drm_dbg(&dev_priv->drm, "Fail to init GVT device\n");
128 goto bail_put_ops;
129 }
130
131 return 0;
132
133 bail_put_ops:
134 symbol_put(gvt_ops);
135 bail:
136 dev_priv->params.enable_gvt = 0;
137 return 0;
138 }
139
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org