From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [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
Date: Wed, 09 Jun 2021 07:40:22 +0800 [thread overview]
Message-ID: <202106090706.993xITBH-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2021-06-08 23:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202106090706.993xITBH-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.