tree: git://git.cmpxchg.org/linux-mmotm.git master head: 572b7c98f12bd2213553be42cc5c2cbc5698f5c3 commit: a7fd9132464db70c3bb4825d5e7cd5eae33c8f61 [173/210] x86: dma-mapping: use unsigned long for dma_attrs config: i386-randconfig-s0-201631 (attached as .config) compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705 reproduce: git checkout a7fd9132464db70c3bb4825d5e7cd5eae33c8f61 # save the attached .config to linux build tree make ARCH=i386 All error/warnings (new ones prefixed by >>): drivers/gpu/drm/i915/intel_display.c: In function 'intel_gen2_queue_flip': >> drivers/gpu/drm/i915/intel_display.c:11119:21: error: 'dev' redeclared as different kind of symbol struct drm_device *dev = &dev_priv->drm; ^~~ drivers/gpu/drm/i915/intel_display.c:11112:53: note: previous definition of 'dev' was here static int intel_gen2_queue_flip(struct drm_device *dev, ^~~ >> drivers/gpu/drm/i915/intel_display.c:11119:28: error: 'dev_priv' undeclared (first use in this function) struct drm_device *dev = &dev_priv->drm; ^~~~~~~~ drivers/gpu/drm/i915/intel_display.c:11119:28: note: each undeclared identifier is reported only once for each function it appears in >> drivers/gpu/drm/i915/intel_display.c:11120:19: error: 'crtc' redeclared as different kind of symbol struct drm_crtc *crtc = dev_priv->pipe_to_crtc_mapping[pipe]; ^~~~ drivers/gpu/drm/i915/intel_display.c:11113:23: note: previous definition of 'crtc' was here struct drm_crtc *crtc, ^~~~ >> drivers/gpu/drm/i915/intel_display.c:11120:57: error: 'pipe' undeclared (first use in this function) struct drm_crtc *crtc = dev_priv->pipe_to_crtc_mapping[pipe]; ^~~~ >> drivers/gpu/drm/i915/intel_display.c:11123:16: error: 'flags' redeclared as different kind of symbol unsigned long flags; ^~~~~ drivers/gpu/drm/i915/intel_display.c:11117:15: note: previous definition of 'flags' was here uint32_t flags) ^~~~~ >> drivers/gpu/drm/i915/intel_display.c:11127:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type] return; ^~~~~~ drivers/gpu/drm/i915/intel_display.c:11112:12: note: declared here static int intel_gen2_queue_flip(struct drm_device *dev, ^~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/intel_display.c: At top level: >> drivers/gpu/drm/i915/intel_display.c:11144:6: error: redefinition of 'intel_finish_page_flip_mmio' void intel_finish_page_flip_mmio(struct drm_i915_private *dev_priv, int pipe) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/intel_display.c:11075:6: note: previous definition of 'intel_finish_page_flip_mmio' was here void intel_finish_page_flip_mmio(struct drm_i915_private *dev_priv, int pipe) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/i915/intel_display.c:11171:20: error: redefinition of 'intel_mark_page_flip_active' static inline void intel_mark_page_flip_active(struct intel_crtc *crtc, ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/intel_display.c:11102:20: note: previous definition of 'intel_mark_page_flip_active' was here static inline void intel_mark_page_flip_active(struct intel_crtc *crtc, ^~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/i915/intel_display.c:11181:12: error: redefinition of 'intel_gen2_queue_flip' static int intel_gen2_queue_flip(struct drm_device *dev, ^~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/intel_display.c:11112:12: note: previous definition of 'intel_gen2_queue_flip' was here static int intel_gen2_queue_flip(struct drm_device *dev, ^~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/intel_display.c:11112:12: warning: 'intel_gen2_queue_flip' defined but not used [-Wunused-function] vim +/dev +11119 drivers/gpu/drm/i915/intel_display.c 58c2ffcb mmotm auto import 2016-08-02 11069 pageflip_finished(intel_crtc, work)) 58c2ffcb mmotm auto import 2016-08-02 11070 page_flip_completed(intel_crtc); 58c2ffcb mmotm auto import 2016-08-02 11071 58c2ffcb mmotm auto import 2016-08-02 11072 spin_unlock_irqrestore(&dev->event_lock, flags); 58c2ffcb mmotm auto import 2016-08-02 11073 } 58c2ffcb mmotm auto import 2016-08-02 11074 58c2ffcb mmotm auto import 2016-08-02 @11075 void intel_finish_page_flip_mmio(struct drm_i915_private *dev_priv, int pipe) 58c2ffcb mmotm auto import 2016-08-02 11076 { 58c2ffcb mmotm auto import 2016-08-02 11077 struct drm_device *dev = &dev_priv->drm; 58c2ffcb mmotm auto import 2016-08-02 11078 struct drm_crtc *crtc = dev_priv->pipe_to_crtc_mapping[pipe]; 58c2ffcb mmotm auto import 2016-08-02 11079 struct intel_crtc *intel_crtc = to_intel_crtc(crtc); 58c2ffcb mmotm auto import 2016-08-02 11080 struct intel_flip_work *work; 58c2ffcb mmotm auto import 2016-08-02 11081 unsigned long flags; 58c2ffcb mmotm auto import 2016-08-02 11082 58c2ffcb mmotm auto import 2016-08-02 11083 /* Ignore early vblank irqs */ 58c2ffcb mmotm auto import 2016-08-02 11084 if (!crtc) 58c2ffcb mmotm auto import 2016-08-02 11085 return; 58c2ffcb mmotm auto import 2016-08-02 11086 58c2ffcb mmotm auto import 2016-08-02 11087 /* 58c2ffcb mmotm auto import 2016-08-02 11088 * This is called both by irq handlers and the reset code (to complete 58c2ffcb mmotm auto import 2016-08-02 11089 * lost pageflips) so needs the full irqsave spinlocks. 58c2ffcb mmotm auto import 2016-08-02 11090 */ 58c2ffcb mmotm auto import 2016-08-02 11091 spin_lock_irqsave(&dev->event_lock, flags); 58c2ffcb mmotm auto import 2016-08-02 11092 work = intel_crtc->flip_work; 58c2ffcb mmotm auto import 2016-08-02 11093 58c2ffcb mmotm auto import 2016-08-02 11094 if (work != NULL && 58c2ffcb mmotm auto import 2016-08-02 11095 is_mmio_work(work) && 58c2ffcb mmotm auto import 2016-08-02 11096 pageflip_finished(intel_crtc, work)) 58c2ffcb mmotm auto import 2016-08-02 11097 page_flip_completed(intel_crtc); 58c2ffcb mmotm auto import 2016-08-02 11098 58c2ffcb mmotm auto import 2016-08-02 11099 spin_unlock_irqrestore(&dev->event_lock, flags); 58c2ffcb mmotm auto import 2016-08-02 11100 } 58c2ffcb mmotm auto import 2016-08-02 11101 58c2ffcb mmotm auto import 2016-08-02 11102 static inline void intel_mark_page_flip_active(struct intel_crtc *crtc, 58c2ffcb mmotm auto import 2016-08-02 11103 struct intel_flip_work *work) 58c2ffcb mmotm auto import 2016-08-02 11104 { 58c2ffcb mmotm auto import 2016-08-02 11105 work->flip_queued_vblank = intel_crtc_get_vblank_counter(crtc); 58c2ffcb mmotm auto import 2016-08-02 11106 58c2ffcb mmotm auto import 2016-08-02 11107 /* Ensure that the work item is consistent when activating it ... */ 58c2ffcb mmotm auto import 2016-08-02 11108 smp_mb__before_atomic(); 58c2ffcb mmotm auto import 2016-08-02 11109 atomic_set(&work->pending, 1); 58c2ffcb mmotm auto import 2016-08-02 11110 } 58c2ffcb mmotm auto import 2016-08-02 11111 58c2ffcb mmotm auto import 2016-08-02 @11112 static int intel_gen2_queue_flip(struct drm_device *dev, 58c2ffcb mmotm auto import 2016-08-02 11113 struct drm_crtc *crtc, 58c2ffcb mmotm auto import 2016-08-02 11114 struct drm_framebuffer *fb, 58c2ffcb mmotm auto import 2016-08-02 11115 struct drm_i915_gem_object *obj, 58c2ffcb mmotm auto import 2016-08-02 11116 struct drm_i915_gem_request *req, 58c2ffcb mmotm auto import 2016-08-02 11117 uint32_t flags) c6ec383d mmotm auto import 2016-08-02 11118 { c6ec383d mmotm auto import 2016-08-02 @11119 struct drm_device *dev = &dev_priv->drm; c6ec383d mmotm auto import 2016-08-02 @11120 struct drm_crtc *crtc = dev_priv->pipe_to_crtc_mapping[pipe]; c6ec383d mmotm auto import 2016-08-02 11121 struct intel_crtc *intel_crtc = to_intel_crtc(crtc); c6ec383d mmotm auto import 2016-08-02 11122 struct intel_flip_work *work; 6b95a207 Kristian Høgsberg 2009-11-18 @11123 unsigned long flags; 6b95a207 Kristian Høgsberg 2009-11-18 11124 c6ec383d mmotm auto import 2016-08-02 11125 /* Ignore early vblank irqs */ c6ec383d mmotm auto import 2016-08-02 11126 if (!crtc) c6ec383d mmotm auto import 2016-08-02 @11127 return; f326038a Daniel Vetter 2014-09-15 11128 f326038a Daniel Vetter 2014-09-15 11129 /* f326038a Daniel Vetter 2014-09-15 11130 * This is called both by irq handlers and the reset code (to complete f326038a Daniel Vetter 2014-09-15 11131 * lost pageflips) so needs the full irqsave spinlocks. e7d841ca Chris Wilson 2012-12-03 11132 */ 6b95a207 Kristian Høgsberg 2009-11-18 11133 spin_lock_irqsave(&dev->event_lock, flags); c6ec383d mmotm auto import 2016-08-02 11134 work = intel_crtc->flip_work; c6ec383d mmotm auto import 2016-08-02 11135 c6ec383d mmotm auto import 2016-08-02 11136 if (work != NULL && c6ec383d mmotm auto import 2016-08-02 11137 !is_mmio_work(work) && c6ec383d mmotm auto import 2016-08-02 11138 pageflip_finished(intel_crtc, work)) c6ec383d mmotm auto import 2016-08-02 11139 page_flip_completed(intel_crtc); c6ec383d mmotm auto import 2016-08-02 11140 6b95a207 Kristian Høgsberg 2009-11-18 11141 spin_unlock_irqrestore(&dev->event_lock, flags); 6b95a207 Kristian Høgsberg 2009-11-18 11142 } 6b95a207 Kristian Høgsberg 2009-11-18 11143 c6ec383d mmotm auto import 2016-08-02 @11144 void intel_finish_page_flip_mmio(struct drm_i915_private *dev_priv, int pipe) e7d841ca Chris Wilson 2012-12-03 11145 { c6ec383d mmotm auto import 2016-08-02 11146 struct drm_device *dev = &dev_priv->drm; c6ec383d mmotm auto import 2016-08-02 11147 struct drm_crtc *crtc = dev_priv->pipe_to_crtc_mapping[pipe]; c6ec383d mmotm auto import 2016-08-02 11148 struct intel_crtc *intel_crtc = to_intel_crtc(crtc); c6ec383d mmotm auto import 2016-08-02 11149 struct intel_flip_work *work; c6ec383d mmotm auto import 2016-08-02 11150 unsigned long flags; c6ec383d mmotm auto import 2016-08-02 11151 c6ec383d mmotm auto import 2016-08-02 11152 /* Ignore early vblank irqs */ c6ec383d mmotm auto import 2016-08-02 11153 if (!crtc) c6ec383d mmotm auto import 2016-08-02 11154 return; c6ec383d mmotm auto import 2016-08-02 11155 c6ec383d mmotm auto import 2016-08-02 11156 /* c6ec383d mmotm auto import 2016-08-02 11157 * This is called both by irq handlers and the reset code (to complete c6ec383d mmotm auto import 2016-08-02 11158 * lost pageflips) so needs the full irqsave spinlocks. c6ec383d mmotm auto import 2016-08-02 11159 */ c6ec383d mmotm auto import 2016-08-02 11160 spin_lock_irqsave(&dev->event_lock, flags); c6ec383d mmotm auto import 2016-08-02 11161 work = intel_crtc->flip_work; c6ec383d mmotm auto import 2016-08-02 11162 c6ec383d mmotm auto import 2016-08-02 11163 if (work != NULL && c6ec383d mmotm auto import 2016-08-02 11164 is_mmio_work(work) && c6ec383d mmotm auto import 2016-08-02 11165 pageflip_finished(intel_crtc, work)) c6ec383d mmotm auto import 2016-08-02 11166 page_flip_completed(intel_crtc); c6ec383d mmotm auto import 2016-08-02 11167 c6ec383d mmotm auto import 2016-08-02 11168 spin_unlock_irqrestore(&dev->event_lock, flags); c6ec383d mmotm auto import 2016-08-02 11169 } c6ec383d mmotm auto import 2016-08-02 11170 c6ec383d mmotm auto import 2016-08-02 @11171 static inline void intel_mark_page_flip_active(struct intel_crtc *crtc, c6ec383d mmotm auto import 2016-08-02 11172 struct intel_flip_work *work) c6ec383d mmotm auto import 2016-08-02 11173 { c6ec383d mmotm auto import 2016-08-02 11174 work->flip_queued_vblank = intel_crtc_get_vblank_counter(crtc); c6ec383d mmotm auto import 2016-08-02 11175 e7d841ca Chris Wilson 2012-12-03 11176 /* Ensure that the work item is consistent when activating it ... */ c6ec383d mmotm auto import 2016-08-02 11177 smp_mb__before_atomic(); c6ec383d mmotm auto import 2016-08-02 11178 atomic_set(&work->pending, 1); e7d841ca Chris Wilson 2012-12-03 11179 } e7d841ca Chris Wilson 2012-12-03 11180 8c9f3aaf Jesse Barnes 2011-06-16 @11181 static int intel_gen2_queue_flip(struct drm_device *dev, 8c9f3aaf Jesse Barnes 2011-06-16 11182 struct drm_crtc *crtc, 6b95a207 Kristian Høgsberg 2009-11-18 11183 struct drm_framebuffer *fb, ed8d1975 Keith Packard 2013-07-22 11184 struct drm_i915_gem_object *obj, :::::: The code at line 11119 was first introduced by commit :::::: c6ec383d89a82248abaac5177dabed3bb7397264 origin :::::: TO: mmotm auto import <mm-commits@xxxxxxxxxxxxxxx> :::::: CC: Johannes Weiner <hannes@xxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data