Message ID | s5hmv8c2w32.wl-tiwai@suse.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Mon, Jul 10, 2017 at 4:41 PM, Takashi Iwai <tiwai@suse.de> wrote: > diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c > index 12ded23f1aaf..65169a5a1bca 100644 > --- a/drivers/video/console/fbcon.c > +++ b/drivers/video/console/fbcon.c > @@ -2347,8 +2347,8 @@ static int fbcon_blank(struct vc_data *vc, int blank, int mode_switch) > ops->cursor_flash = (!blank); > > if (!(info->flags & FBINFO_MISC_USEREVENT)) > - if (fb_blank(info, blank)) > - fbcon_generic_blank(vc, info, blank); > + fb_blank(info, blank); > + fbcon_generic_blank(vc, info, blank); My idea was more to do this in the drm_fb_helper.c layer if the driver can't do this, since your DE might also expect that the screen goes blank for real. Or we fix the drivers to do a black screen by essentially switching it off (but that might have implications again on the UI for virtual machines, so dunno ...). -Daniel
Hi Takashi,
[auto build test WARNING on linus/master]
[also build test WARNING on v4.12 next-20170710]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Takashi-Iwai/fbcon-Perform-generic-blank-unconditionally/20170711-033549
config: x86_64-randconfig-x008-201728 (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 warnings (new ones prefixed by >>):
drivers/video/console/fbcon.c: In function 'fbcon_blank':
>> drivers/video/console/fbcon.c:2349:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (!(info->flags & FBINFO_MISC_USEREVENT))
^~
drivers/video/console/fbcon.c:2351:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
fbcon_generic_blank(vc, info, blank);
^~~~~~~~~~~~~~~~~~~
vim +/if +2349 drivers/video/console/fbcon.c
:::::: The code at line 2349 was first introduced by commit
:::::: bca404afdc5206c3bb30168315ee8a98a579ec65 fbdev: fix FB console blanking
:::::: TO: Dmitry Baryshkov <dbaryshkov@gmail.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c index 12ded23f1aaf..65169a5a1bca 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video/console/fbcon.c @@ -2347,8 +2347,8 @@ static int fbcon_blank(struct vc_data *vc, int blank, int mode_switch) ops->cursor_flash = (!blank); if (!(info->flags & FBINFO_MISC_USEREVENT)) - if (fb_blank(info, blank)) - fbcon_generic_blank(vc, info, blank); + fb_blank(info, blank); + fbcon_generic_blank(vc, info, blank); } if (!blank)