[drm-intel:topic/drm-misc 7/11] drivers/gpu/drm/arc/arcpgu_crtc.c:149:16: warning: unused variable 'flags'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://anongit.freedesktop.org/drm-intel topic/drm-misc
head:   ae4df11a0f538b83781cf120a78dde32b0070600
commit: ed4f885657fe7e9bfec3d86a2b426da1e0d0c5de [7/11] drm/arc: Nuke event_list
config: x86_64-randconfig-s5-06091636 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        git checkout ed4f885657fe7e9bfec3d86a2b426da1e0d0c5de
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/arc/arcpgu_crtc.c: In function 'arc_pgu_crtc_atomic_begin':
>> drivers/gpu/drm/arc/arcpgu_crtc.c:149:16: warning: unused variable 'flags' [-Wunused-variable]
     unsigned long flags;
                   ^~~~~
>> drivers/gpu/drm/arc/arcpgu_crtc.c:148:29: warning: unused variable 'arcpgu' [-Wunused-variable]
     struct arcpgu_drm_private *arcpgu = crtc_to_arcpgu_priv(crtc);
                                ^~~~~~

vim +/flags +149 drivers/gpu/drm/arc/arcpgu_crtc.c

51dacf20 Carlos Palminha 2016-02-19  142  	return 0;
51dacf20 Carlos Palminha 2016-02-19  143  }
51dacf20 Carlos Palminha 2016-02-19  144  
51dacf20 Carlos Palminha 2016-02-19  145  static void arc_pgu_crtc_atomic_begin(struct drm_crtc *crtc,
51dacf20 Carlos Palminha 2016-02-19  146  				      struct drm_crtc_state *state)
51dacf20 Carlos Palminha 2016-02-19  147  {
51dacf20 Carlos Palminha 2016-02-19 @148  	struct arcpgu_drm_private *arcpgu = crtc_to_arcpgu_priv(crtc);
51dacf20 Carlos Palminha 2016-02-19 @149  	unsigned long flags;
51dacf20 Carlos Palminha 2016-02-19  150  
51dacf20 Carlos Palminha 2016-02-19  151  	if (crtc->state->event) {
51dacf20 Carlos Palminha 2016-02-19  152  		struct drm_pending_vblank_event *event = crtc->state->event;

:::::: The code at line 149 was first introduced by commit
:::::: 51dacf208988e5a2561d9b4b560cacc8a7f025e7 drm: Add support of ARC PGU display controller

:::::: TO: Carlos Palminha <palminha@xxxxxxxxxxxx>
:::::: CC: Alexey Brodkin <abrodkin@xxxxxxxxxxxx>

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

Attachment: .config.gz
Description: Binary data

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux