Re: [PATCH v4 1/2] console: Move scrollback data into its own struct

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

 



Hi Manuel,

[auto build test WARNING on linus/master]
[also build test WARNING on v4.9-rc5 next-20161116]
[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/Manuel-Sch-lling/console-Move-scrollback-data-into-its-own-struct/20161117-024343
config: x86_64-randconfig-ne0-11170334 (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 >>):

   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/list.h:4,
                    from include/linux/module.h:9,
                    from drivers/video/console/vgacon.c:36:
   drivers/video/console/vgacon.c: In function 'vgacon_scrolldelta':
   drivers/video/console/vgacon.c:279:14: error: 'vgacon_scrollback_cnt' undeclared (first use in this function)
     if (start > vgacon_scrollback_cnt)
                 ^
   include/linux/compiler.h:149:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> drivers/video/console/vgacon.c:279:2: note: in expansion of macro 'if'
     if (start > vgacon_scrollback_cnt)
     ^~
   drivers/video/console/vgacon.c:279:14: note: each undeclared identifier is reported only once for each function it appears in
     if (start > vgacon_scrollback_cnt)
                 ^
   include/linux/compiler.h:149:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> drivers/video/console/vgacon.c:279:2: note: in expansion of macro 'if'
     if (start > vgacon_scrollback_cnt)
     ^~

vim +/if +279 drivers/video/console/vgacon.c

adc80b064 Manuel Schölling   2016-11-16  263  	if (!vgacon_scrollback.data)
97293de97 Jiri Slaby         2016-06-23  264  		return;
15bdab959 Antonino A. Daplas 2006-03-27  265  
adc80b064 Manuel Schölling   2016-11-16  266  	if (!vgacon_scrollback.save) {
15bdab959 Antonino A. Daplas 2006-03-27  267  		vgacon_cursor(c, CM_ERASE);
15bdab959 Antonino A. Daplas 2006-03-27  268  		vgacon_save_screen(c);
adc80b064 Manuel Schölling   2016-11-16  269  		vgacon_scrollback.save = 1;
15bdab959 Antonino A. Daplas 2006-03-27  270  	}
15bdab959 Antonino A. Daplas 2006-03-27  271  
adc80b064 Manuel Schölling   2016-11-16  272  	vgacon_scrollback.restore = 0;
adc80b064 Manuel Schölling   2016-11-16  273  	start = vgacon_scrollback.cur + lines;
15bdab959 Antonino A. Daplas 2006-03-27  274  	end = start + abs(lines);
15bdab959 Antonino A. Daplas 2006-03-27  275  
15bdab959 Antonino A. Daplas 2006-03-27  276  	if (start < 0)
15bdab959 Antonino A. Daplas 2006-03-27  277  		start = 0;
15bdab959 Antonino A. Daplas 2006-03-27  278  
15bdab959 Antonino A. Daplas 2006-03-27 @279  	if (start > vgacon_scrollback_cnt)
15bdab959 Antonino A. Daplas 2006-03-27  280  		start = vgacon_scrollback_cnt;
15bdab959 Antonino A. Daplas 2006-03-27  281  
15bdab959 Antonino A. Daplas 2006-03-27  282  	if (end < 0)
15bdab959 Antonino A. Daplas 2006-03-27  283  		end = 0;
15bdab959 Antonino A. Daplas 2006-03-27  284  
15bdab959 Antonino A. Daplas 2006-03-27  285  	if (end > vgacon_scrollback_cnt)
15bdab959 Antonino A. Daplas 2006-03-27  286  		end = vgacon_scrollback_cnt;
15bdab959 Antonino A. Daplas 2006-03-27  287  

:::::: The code at line 279 was first introduced by commit
:::::: 15bdab959c9bb909c0317480dd9b35748a8f7887 [PATCH] vgacon: Add support for soft scrollback

:::::: TO: Antonino A. Daplas <adaplas@xxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Tourism]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux