All of lore.kernel.org
 help / color / mirror / Atom feed
* [hch-misc:decruft-i915-gvt 5/23] drivers/gpu/drm/i915/intel_gvt.c:119:21: error: assignment discards 'const' qualifier from pointer target type
@ 2021-06-08 23:40 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-08 23:40 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2870 bytes --]

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-allyesconfig (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@intel.com>

All errors (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: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
     119 |  dev_priv->vgpu.ops = symbol_get(intel_gvt_vgpu_ops);
         |                     ^
   cc1: all warnings being treated as errors


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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 65653 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-08 23:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-08 23:40 [hch-misc:decruft-i915-gvt 5/23] drivers/gpu/drm/i915/intel_gvt.c:119:21: error: assignment discards 'const' qualifier from pointer target type 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.