[Intel-gfx] [drm-intel:drm-intel-nightly 2/10] drivers/gpu/drm/i915/intel_opregion.c:1081:2: note: in expansion of macro 'if'

kbuild test robot fengguang.wu at intel.com
Thu Jul 14 17:56:35 UTC 2016


tree:   git://anongit.freedesktop.org/drm-intel drm-intel-nightly
head:   2d854c67e3af36b190e8499a3bfad7cdccde0f67
commit: 01734c300fbff01e321d4ff1b3c91e24e0a3b90d [2/10] Merge remote-tracking branch 'origin/drm-intel-next-fixes' into drm-intel-nightly
config: x86_64-randconfig-s1-07150032 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        git checkout 01734c300fbff01e321d4ff1b3c91e24e0a3b90d
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from include/linux/ioport.h:12:0,
                    from include/linux/acpi.h:25,
                    from drivers/gpu/drm/i915/intel_opregion.c:28:
   drivers/gpu/drm/i915/intel_opregion.c: In function 'intel_opregion_get_panel_type':
   drivers/gpu/drm/i915/intel_opregion.c:1081:17: error: 'dev' undeclared (first use in this function)
     if (IS_SKYLAKE(dev)) {
                    ^
   include/linux/compiler.h:151:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> drivers/gpu/drm/i915/intel_opregion.c:1081:2: note: in expansion of macro 'if'
     if (IS_SKYLAKE(dev)) {
     ^~
   include/linux/compiler.h:149:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
>> drivers/gpu/drm/i915/i915_drv.h:2628:2: note: in expansion of macro 'if'
     if (__builtin_types_compatible_p(typeof(*p), struct drm_i915_private)) \
     ^~
>> drivers/gpu/drm/i915/i915_drv.h:2636:26: note: in expansion of macro '__I915__'
    #define INTEL_INFO(p)  (&__I915__(p)->info)
                             ^~~~~~~~
   drivers/gpu/drm/i915/i915_drv.h:2695:26: note: in expansion of macro 'INTEL_INFO'
    #define IS_SKYLAKE(dev) (INTEL_INFO(dev)->is_skylake)
                             ^~~~~~~~~~
   drivers/gpu/drm/i915/intel_opregion.c:1081:6: note: in expansion of macro 'IS_SKYLAKE'
     if (IS_SKYLAKE(dev)) {
         ^~~~~~~~~~
   drivers/gpu/drm/i915/intel_opregion.c:1081:17: note: each undeclared identifier is reported only once for each function it appears in
     if (IS_SKYLAKE(dev)) {
                    ^
   include/linux/compiler.h:151:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> drivers/gpu/drm/i915/intel_opregion.c:1081:2: note: in expansion of macro 'if'
     if (IS_SKYLAKE(dev)) {
     ^~
   include/linux/compiler.h:149:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
>> drivers/gpu/drm/i915/i915_drv.h:2628:2: note: in expansion of macro 'if'
     if (__builtin_types_compatible_p(typeof(*p), struct drm_i915_private)) \
     ^~
>> drivers/gpu/drm/i915/i915_drv.h:2636:26: note: in expansion of macro '__I915__'
    #define INTEL_INFO(p)  (&__I915__(p)->info)
                             ^~~~~~~~
   drivers/gpu/drm/i915/i915_drv.h:2695:26: note: in expansion of macro 'INTEL_INFO'
    #define IS_SKYLAKE(dev) (INTEL_INFO(dev)->is_skylake)
                             ^~~~~~~~~~
   drivers/gpu/drm/i915/intel_opregion.c:1081:6: note: in expansion of macro 'IS_SKYLAKE'
     if (IS_SKYLAKE(dev)) {
         ^~~~~~~~~~

vim +/if +1081 drivers/gpu/drm/i915/intel_opregion.c

a0562819 Ville Syrjälä 2016-04-11  1065  		DRM_DEBUG_KMS("Invalid OpRegion panel type 0x%x\n", ret);
a0562819 Ville Syrjälä 2016-04-11  1066  		return -EINVAL;
a0562819 Ville Syrjälä 2016-04-11  1067  	}
a0562819 Ville Syrjälä 2016-04-11  1068  
a0562819 Ville Syrjälä 2016-04-11  1069  	/* fall back to VBT panel type? */
a0562819 Ville Syrjälä 2016-04-11  1070  	if (ret == 0x0) {
a0562819 Ville Syrjälä 2016-04-11  1071  		DRM_DEBUG_KMS("No panel type in OpRegion\n");
a0562819 Ville Syrjälä 2016-04-11  1072  		return -ENODEV;
a0562819 Ville Syrjälä 2016-04-11  1073  	}
a0562819 Ville Syrjälä 2016-04-11  1074  
aeddda06 Ville Syrjälä 2016-07-12  1075  	/*
aeddda06 Ville Syrjälä 2016-07-12  1076  	 * FIXME On Dell XPS 13 9350 the OpRegion panel type (0) gives us
aeddda06 Ville Syrjälä 2016-07-12  1077  	 * low vswing for eDP, whereas the VBT panel type (2) gives us normal
aeddda06 Ville Syrjälä 2016-07-12  1078  	 * vswing instead. Low vswing results in some display flickers, so
aeddda06 Ville Syrjälä 2016-07-12  1079  	 * let's simply ignore the OpRegion panel type on SKL for now.
aeddda06 Ville Syrjälä 2016-07-12  1080  	 */
aeddda06 Ville Syrjälä 2016-07-12 @1081  	if (IS_SKYLAKE(dev)) {
aeddda06 Ville Syrjälä 2016-07-12  1082  		DRM_DEBUG_KMS("Ignoring OpRegion panel type (%d)\n", ret - 1);
aeddda06 Ville Syrjälä 2016-07-12  1083  		return -ENODEV;
aeddda06 Ville Syrjälä 2016-07-12  1084  	}
aeddda06 Ville Syrjälä 2016-07-12  1085  
a0562819 Ville Syrjälä 2016-04-11  1086  	return ret - 1;
a0562819 Ville Syrjälä 2016-04-11  1087  }

:::::: The code at line 1081 was first introduced by commit
:::::: aeddda06c1a704bb97c8a7bfe7a472120193bd56 drm/i915: Ignore panel type from OpRegion on SKL

:::::: TO: Ville Syrjälä <ville.syrjala at linux.intel.com>
:::::: CC: Daniel Vetter <daniel.vetter at ffwll.ch>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 32201 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20160715/868f2335/attachment-0001.obj>


More information about the Intel-gfx mailing list