[Intel-gfx] [drm-intel:drm-intel-nightly 2/10] drivers/gpu/drm/i915/i915_drv.h:2695:26: note: in expansion of macro 'INTEL_INFO'

kbuild test robot fengguang.wu at intel.com
Thu Jul 14 17:57:23 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: i386-allmodconfig (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=i386 

All warnings (new ones prefixed by >>):

   In file included from drivers/gpu/drm/i915/intel_opregion.c:34:0:
   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)) {
                    ^
   drivers/gpu/drm/i915/i915_drv.h:2628:43: note: in definition of macro '__I915__'
     if (__builtin_types_compatible_p(typeof(*p), struct drm_i915_private)) \
                                              ^
>> 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)) {
                    ^
   drivers/gpu/drm/i915/i915_drv.h:2628:43: note: in definition of macro '__I915__'
     if (__builtin_types_compatible_p(typeof(*p), struct drm_i915_private)) \
                                              ^
>> 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 +/INTEL_INFO +2695 drivers/gpu/drm/i915/i915_drv.h

351e3db2 Brad Volkin        2014-02-18  2622  	int count;
351e3db2 Brad Volkin        2014-02-18  2623  };
351e3db2 Brad Volkin        2014-02-18  2624  
dbbe9127 Chris Wilson       2014-08-09  2625  /* Note that the (struct drm_i915_private *) cast is just to shut up gcc. */
7312e2dd Chris Wilson       2014-08-13  2626  #define __I915__(p) ({ \
7312e2dd Chris Wilson       2014-08-13  2627  	struct drm_i915_private *__p; \
7312e2dd Chris Wilson       2014-08-13 @2628  	if (__builtin_types_compatible_p(typeof(*p), struct drm_i915_private)) \
7312e2dd Chris Wilson       2014-08-13  2629  		__p = (struct drm_i915_private *)p; \
7312e2dd Chris Wilson       2014-08-13  2630  	else if (__builtin_types_compatible_p(typeof(*p), struct drm_device)) \
7312e2dd Chris Wilson       2014-08-13  2631  		__p = to_i915((struct drm_device *)p); \
7312e2dd Chris Wilson       2014-08-13  2632  	else \
7312e2dd Chris Wilson       2014-08-13  2633  		BUILD_BUG(); \
7312e2dd Chris Wilson       2014-08-13  2634  	__p; \
7312e2dd Chris Wilson       2014-08-13  2635  })
dbbe9127 Chris Wilson       2014-08-09  2636  #define INTEL_INFO(p) 	(&__I915__(p)->info)
3f10e82f Jani Nikula        2016-04-07  2637  #define INTEL_GEN(p)	(INTEL_INFO(p)->gen)
87f1f465 Chris Wilson       2014-08-09  2638  #define INTEL_DEVID(p)	(INTEL_INFO(p)->device_id)
cae5852d Zou Nan hai        2010-11-09  2639  
e87a005d Jani Nikula        2015-10-20  2640  #define REVID_FOREVER		0xff
091387c1 Chris Wilson       2016-06-24  2641  #define INTEL_REVID(p)	(__I915__(p)->drm.pdev->revision)
ac657f64 Tvrtko Ursulin     2016-05-10  2642  
ac657f64 Tvrtko Ursulin     2016-05-10  2643  #define GEN_FOREVER (0)
ac657f64 Tvrtko Ursulin     2016-05-10  2644  /*
ac657f64 Tvrtko Ursulin     2016-05-10  2645   * Returns true if Gen is in inclusive range [Start, End].
ac657f64 Tvrtko Ursulin     2016-05-10  2646   *
ac657f64 Tvrtko Ursulin     2016-05-10  2647   * Use GEN_FOREVER for unbound start and or end.
ac657f64 Tvrtko Ursulin     2016-05-10  2648   */
ac657f64 Tvrtko Ursulin     2016-05-10  2649  #define IS_GEN(p, s, e) ({ \
ac657f64 Tvrtko Ursulin     2016-05-10  2650  	unsigned int __s = (s), __e = (e); \
ac657f64 Tvrtko Ursulin     2016-05-10  2651  	BUILD_BUG_ON(!__builtin_constant_p(s)); \
ac657f64 Tvrtko Ursulin     2016-05-10  2652  	BUILD_BUG_ON(!__builtin_constant_p(e)); \
ac657f64 Tvrtko Ursulin     2016-05-10  2653  	if ((__s) != GEN_FOREVER) \
ac657f64 Tvrtko Ursulin     2016-05-10  2654  		__s = (s) - 1; \
ac657f64 Tvrtko Ursulin     2016-05-10  2655  	if ((__e) == GEN_FOREVER) \
ac657f64 Tvrtko Ursulin     2016-05-10  2656  		__e = BITS_PER_LONG - 1; \
ac657f64 Tvrtko Ursulin     2016-05-10  2657  	else \
ac657f64 Tvrtko Ursulin     2016-05-10  2658  		__e = (e) - 1; \
ac657f64 Tvrtko Ursulin     2016-05-10  2659  	!!(INTEL_INFO(p)->gen_mask & GENMASK((__e), (__s))); \
ac657f64 Tvrtko Ursulin     2016-05-10  2660  })
ac657f64 Tvrtko Ursulin     2016-05-10  2661  
e87a005d Jani Nikula        2015-10-20  2662  /*
e87a005d Jani Nikula        2015-10-20  2663   * Return true if revision is in range [since,until] inclusive.
e87a005d Jani Nikula        2015-10-20  2664   *
e87a005d Jani Nikula        2015-10-20  2665   * Use 0 for open-ended since, and REVID_FOREVER for open-ended until.
e87a005d Jani Nikula        2015-10-20  2666   */
e87a005d Jani Nikula        2015-10-20  2667  #define IS_REVID(p, since, until) \
e87a005d Jani Nikula        2015-10-20  2668  	(INTEL_REVID(p) >= (since) && INTEL_REVID(p) <= (until))
e87a005d Jani Nikula        2015-10-20  2669  
87f1f465 Chris Wilson       2014-08-09  2670  #define IS_I830(dev)		(INTEL_DEVID(dev) == 0x3577)
87f1f465 Chris Wilson       2014-08-09  2671  #define IS_845G(dev)		(INTEL_DEVID(dev) == 0x2562)
cae5852d Zou Nan hai        2010-11-09  2672  #define IS_I85X(dev)		(INTEL_INFO(dev)->is_i85x)
87f1f465 Chris Wilson       2014-08-09  2673  #define IS_I865G(dev)		(INTEL_DEVID(dev) == 0x2572)
cae5852d Zou Nan hai        2010-11-09  2674  #define IS_I915G(dev)		(INTEL_INFO(dev)->is_i915g)
87f1f465 Chris Wilson       2014-08-09  2675  #define IS_I915GM(dev)		(INTEL_DEVID(dev) == 0x2592)
87f1f465 Chris Wilson       2014-08-09  2676  #define IS_I945G(dev)		(INTEL_DEVID(dev) == 0x2772)
cae5852d Zou Nan hai        2010-11-09  2677  #define IS_I945GM(dev)		(INTEL_INFO(dev)->is_i945gm)
cae5852d Zou Nan hai        2010-11-09  2678  #define IS_BROADWATER(dev)	(INTEL_INFO(dev)->is_broadwater)
cae5852d Zou Nan hai        2010-11-09  2679  #define IS_CRESTLINE(dev)	(INTEL_INFO(dev)->is_crestline)
87f1f465 Chris Wilson       2014-08-09  2680  #define IS_GM45(dev)		(INTEL_DEVID(dev) == 0x2A42)
cae5852d Zou Nan hai        2010-11-09  2681  #define IS_G4X(dev)		(INTEL_INFO(dev)->is_g4x)
87f1f465 Chris Wilson       2014-08-09  2682  #define IS_PINEVIEW_G(dev)	(INTEL_DEVID(dev) == 0xa001)
87f1f465 Chris Wilson       2014-08-09  2683  #define IS_PINEVIEW_M(dev)	(INTEL_DEVID(dev) == 0xa011)
cae5852d Zou Nan hai        2010-11-09  2684  #define IS_PINEVIEW(dev)	(INTEL_INFO(dev)->is_pineview)
cae5852d Zou Nan hai        2010-11-09  2685  #define IS_G33(dev)		(INTEL_INFO(dev)->is_g33)
87f1f465 Chris Wilson       2014-08-09  2686  #define IS_IRONLAKE_M(dev)	(INTEL_DEVID(dev) == 0x0046)
4b65177b Jesse Barnes       2011-04-28  2687  #define IS_IVYBRIDGE(dev)	(INTEL_INFO(dev)->is_ivybridge)
87f1f465 Chris Wilson       2014-08-09  2688  #define IS_IVB_GT1(dev)		(INTEL_DEVID(dev) == 0x0156 || \
87f1f465 Chris Wilson       2014-08-09  2689  				 INTEL_DEVID(dev) == 0x0152 || \
87f1f465 Chris Wilson       2014-08-09  2690  				 INTEL_DEVID(dev) == 0x015a)
70a3eb7a Jesse Barnes       2012-03-28  2691  #define IS_VALLEYVIEW(dev)	(INTEL_INFO(dev)->is_valleyview)
666a4537 Wayne Boyer        2015-12-09  2692  #define IS_CHERRYVIEW(dev)	(INTEL_INFO(dev)->is_cherryview)
4cae9ae0 Eugeni Dodonov     2012-03-29  2693  #define IS_HASWELL(dev)	(INTEL_INFO(dev)->is_haswell)
ab0d24ac Tvrtko Ursulin     2016-05-10  2694  #define IS_BROADWELL(dev)	(INTEL_INFO(dev)->is_broadwell)
7201c0b3 Satheeshakrishna M 2014-04-02 @2695  #define IS_SKYLAKE(dev)	(INTEL_INFO(dev)->is_skylake)
7526ac19 Rodrigo Vivi       2015-10-27  2696  #define IS_BROXTON(dev)		(INTEL_INFO(dev)->is_broxton)
ef11bdb3 Rodrigo Vivi       2015-10-28  2697  #define IS_KABYLAKE(dev)	(INTEL_INFO(dev)->is_kabylake)
cae5852d Zou Nan hai        2010-11-09  2698  #define IS_MOBILE(dev)		(INTEL_INFO(dev)->is_mobile)

:::::: The code at line 2695 was first introduced by commit
:::::: 7201c0b3a4de18ec80c9f508549a7de6631541b3 drm/i915/skl: Add an IS_SKYLAKE macro

:::::: TO: Satheeshakrishna M <satheeshakrishna.m at 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: 55057 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20160715/4359c86b/attachment-0001.obj>


More information about the Intel-gfx mailing list