All of lore.kernel.org
 help / color / mirror / Atom feed
* [drm-intel:topic/drm-misc 10/10] drivers/gpu/drm/i915/intel_display.c:14376:39: warning: passing argument 2 of 'intel_framebuffer_create' discards 'const' qualifier from pointer target type
@ 2015-11-17 10:16 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2015-11-17 10:16 UTC (permalink / raw)
  To: Ville Syrjälä; +Cc: Daniel Vetter, intel-gfx, kbuild-all

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

tree:   git://anongit.freedesktop.org/drm-intel topic/drm-misc
head:   528344410b5c4546ece21c2cd8645a83fdc85b58
commit: 528344410b5c4546ece21c2cd8645a83fdc85b58 [10/10] drm: Pass the user drm_mode_fb_cmd2 as const to .fb_create()
config: i386-defconfig (attached as .config)
reproduce:
        git checkout 528344410b5c4546ece21c2cd8645a83fdc85b58
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/i915/intel_display.c: In function 'intel_plane_obj_offset':
   drivers/gpu/drm/i915/intel_display.c:2952:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     offset = (unsigned char *)vma->node.start;
              ^
   drivers/gpu/drm/i915/intel_display.c: In function 'intel_user_framebuffer_create':
>> drivers/gpu/drm/i915/intel_display.c:14376:39: warning: passing argument 2 of 'intel_framebuffer_create' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     return intel_framebuffer_create(dev, mode_cmd, obj);
                                          ^
   drivers/gpu/drm/i915/intel_display.c:10106:1: note: expected 'struct drm_mode_fb_cmd2 *' but argument is of type 'const struct drm_mode_fb_cmd2 *'
    intel_framebuffer_create(struct drm_device *dev,
    ^

vim +14376 drivers/gpu/drm/i915/intel_display.c

79e53945 Jesse Barnes  2008-11-07  14360  
79e53945 Jesse Barnes  2008-11-07  14361  	return 0;
79e53945 Jesse Barnes  2008-11-07  14362  }
79e53945 Jesse Barnes  2008-11-07  14363  
79e53945 Jesse Barnes  2008-11-07  14364  static struct drm_framebuffer *
79e53945 Jesse Barnes  2008-11-07  14365  intel_user_framebuffer_create(struct drm_device *dev,
79e53945 Jesse Barnes  2008-11-07  14366  			      struct drm_file *filp,
52834441 Ville Syrjälä 2015-11-11  14367  			      const struct drm_mode_fb_cmd2 *mode_cmd)
79e53945 Jesse Barnes  2008-11-07  14368  {
05394f39 Chris Wilson  2010-11-08  14369  	struct drm_i915_gem_object *obj;
79e53945 Jesse Barnes  2008-11-07  14370  
308e5bcb Jesse Barnes  2011-11-14  14371  	obj = to_intel_bo(drm_gem_object_lookup(dev, filp,
308e5bcb Jesse Barnes  2011-11-14  14372  						mode_cmd->handles[0]));
c8725226 Chris Wilson  2011-02-19  14373  	if (&obj->base == NULL)
cce13ff7 Chris Wilson  2010-08-08  14374  		return ERR_PTR(-ENOENT);
79e53945 Jesse Barnes  2008-11-07  14375  
d2dff872 Chris Wilson  2011-04-19 @14376  	return intel_framebuffer_create(dev, mode_cmd, obj);
79e53945 Jesse Barnes  2008-11-07  14377  }
79e53945 Jesse Barnes  2008-11-07  14378  
0695726e Daniel Vetter 2015-08-10  14379  #ifndef CONFIG_DRM_FBDEV_EMULATION
0632fef6 Daniel Vetter 2013-10-08  14380  static inline void intel_fbdev_output_poll_changed(struct drm_device *dev)
4520f53a Daniel Vetter 2013-10-09  14381  {
4520f53a Daniel Vetter 2013-10-09  14382  }
4520f53a Daniel Vetter 2013-10-09  14383  #endif
4520f53a Daniel Vetter 2013-10-09  14384  

:::::: The code at line 14376 was first introduced by commit
:::::: d2dff872ac44540622ef77a2b7d6ce4a1b145931 drm/i915: Attach a fb to the load-detect pipe

:::::: TO: Chris Wilson <chris@chris-wilson.co.uk>
:::::: CC: Keith Packard <keithp@keithp.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 23966 bytes --]

[-- Attachment #3: Type: text/plain, Size: 159 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

only message in thread, other threads:[~2015-11-17 10:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-17 10:16 [drm-intel:topic/drm-misc 10/10] drivers/gpu/drm/i915/intel_display.c:14376:39: warning: passing argument 2 of 'intel_framebuffer_create' discards 'const' qualifier from pointer target type kbuild 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.