Hi Shawn,

[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on v4.8-rc7 next-20160916]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for 
convenience) to record what (public, well-known) commit your patch series was 
built on]
[Check https://git-scm.com/docs/git-format-patch for more information]

url:    
https://github.com/0day-ci/linux/commits/Lee-Shawn-C/drm-i915-Restore-PWM_GRANULARITY-after-resume/20160919-180644
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-x012-201638 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   In file included from drivers/gpu/drm/i915/intel_drv.h:32:0,
                    from drivers/gpu/drm/i915/intel_panel.c:36:
   drivers/gpu/drm/i915/intel_panel.c: In function 'lpt_enable_backlight':
>> drivers/gpu/drm/i915/intel_panel.c:874:78: error: left shift count >= width 
>> of type [-Werror=shift-count-overflow]
      I915_WRITE(SOUTH_CHICKEN2, mul | 
(panel->backlight.pwm_alternate_increment << LPT_PWM_GRANULARITY));
                                                                                
 ^
   drivers/gpu/drm/i915/i915_drv.h:3735:83: note: in definition of macro 
'I915_WRITE'
    #define I915_WRITE(reg, val) dev_priv->uncore.funcs.mmio_writel(dev_priv, 
(reg), (val), true)
                                                                                
      ^~~
   cc1: all warnings being treated as errors

vim +874 drivers/gpu/drm/i915/intel_panel.c

   868          /* This won't stick until the above enable. */
   869          intel_panel_actually_set_backlight(connector, 
panel->backlight.level);
   870  
   871          if (HAS_PCH_LPT(dev_priv)) {
   872                  mul = I915_READ(SOUTH_CHICKEN2);
   873                  mul &= ~LPT_PWM_GRANULARITY;
 > 874                  I915_WRITE(SOUTH_CHICKEN2, mul | 
 > (panel->backlight.pwm_alternate_increment << LPT_PWM_GRANULARITY));
   875          } else {
   876                  mul = I915_READ(SOUTH_CHICKEN1);
   877                  mul &= ~SPT_PWM_GRANULARITY;

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

Attachment: .config.gz
Description: application/gzip

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

Reply via email to