[drm-intel:drm-intel-next-queued 120/120] drivers/gpu/drm/i915/intel_fb.c:163:17: sparse: incorrect type in argument 1 (different address spaces)
kbuild test robot
fengguang.wu at intel.com
Mon Dec 17 04:57:37 PST 2012
tree: git://people.freedesktop.org/~danvet/drm-intel.git drm-intel-next-queued
head: 6ace91e648a327ebf98093b6d971a097c36cd46d
commit: 6ace91e648a327ebf98093b6d971a097c36cd46d [120/120] drm/i915: Clear the stolen fb before enabling
sparse warnings:
+ drivers/gpu/drm/i915/intel_fb.c:163:17: sparse: incorrect type in argument 1 (different address spaces)
drivers/gpu/drm/i915/intel_fb.c:163:17: expected void *<noident>
drivers/gpu/drm/i915/intel_fb.c:163:17: got char [noderef] <asn:2>*screen_base
vim +163 drivers/gpu/drm/i915/intel_fb.c
79e53945 Jesse Barnes 2008-11-07 147 if (!info->screen_base) {
79e53945 Jesse Barnes 2008-11-07 148 ret = -ENOSPC;
b4476f52 Chris Wilson 2009-02-11 149 goto out_unpin;
79e53945 Jesse Barnes 2008-11-07 150 }
79e53945 Jesse Barnes 2008-11-07 151 info->screen_size = size;
79e53945 Jesse Barnes 2008-11-07 152
79e53945 Jesse Barnes 2008-11-07 153 // memset(info->screen_base, 0, size);
79e53945 Jesse Barnes 2008-11-07 154
01f2c773 Ville Syrjälä 2011-12-20 155 drm_fb_helper_fill_fix(info, fb->pitches[0], fb->depth);
38651674 Dave Airlie 2010-03-30 156 drm_fb_helper_fill_var(info, &ifbdev->helper, sizes->fb_width, sizes->fb_height);
79e53945 Jesse Barnes 2008-11-07 157
6ace91e6 Chris Wilson 2012-12-16 158 /* If the object is shmemfs backed, it will have given us zeroed pages.
6ace91e6 Chris Wilson 2012-12-16 159 * If the object is stolen however, it will be full of whatever
6ace91e6 Chris Wilson 2012-12-16 160 * garbage was left in there.
6ace91e6 Chris Wilson 2012-12-16 161 */
6ace91e6 Chris Wilson 2012-12-16 162 if (ifbdev->ifb.obj->stolen)
6ace91e6 Chris Wilson 2012-12-16 @163 memset(info->screen_base, 0, info->screen_size);
6ace91e6 Chris Wilson 2012-12-16 164
fb2a99e1 Sascha Hauer 2012-02-06 165 /* Use default scratch pixmap (info->pixmap.flags = FB_PIXMAP_SYSTEM) */
79e53945 Jesse Barnes 2008-11-07 166
28c97730 Zhao Yakui 2009-10-09 167 DRM_DEBUG_KMS("allocated %dx%d fb: 0x%08x, bo %p\n",
8be48d92 Dave Airlie 2010-03-30 168 fb->width, fb->height,
05394f39 Chris Wilson 2010-11-08 169 obj->gtt_offset, obj);
79e53945 Jesse Barnes 2008-11-07 170
79e53945 Jesse Barnes 2008-11-07 171
---
0-DAY kernel build testing backend Open Source Technology Center
Fengguang Wu, Yuanhan Liu Intel Corporation
More information about the dri-devel
mailing list