tree:
https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head: bf8fd3c80f466d63067fd6a6f31ef0fbb332c20c
commit: 444af40fdc3639563d3eeddd0ac50448c273102f [61/76] tty: vt, con_getxy works with u16
*
config: arm-corgi_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 444af40fdc3639563d3eeddd0ac50448c273102f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>, old ones prefixed by <<):
> drivers/video/fbdev/core/fbcon.c:3415:17: error: initialization
of 'u16 * (*)(struct vc_data *, long unsigned int, int *, int *)' {aka 'short
unsigned int * (*)(struct vc_data *, long unsigned int, int *, int *)'} from
incompatible pointer type 'u16 * (*)(struct vc_data *, u16 *, int *, int *)' {aka
'short unsigned int * (*)(struct vc_data *, short unsigned int *, int *, int *)'}
[-Werror=incompatible-pointer-types]
3415 | .con_getxy = fbcon_getxy,
| ^~~~~~~~~~~
drivers/video/fbdev/core/fbcon.c:3415:17: note: (near initialization for
'fb_con.con_getxy')
drivers/video/fbdev/core/fbcon.c: In function 'fbcon_exit':
drivers/video/fbdev/core/fbcon.c:3650:7: warning: variable 'pending' set but not
used [-Wunused-but-set-variable]
3650 | int pending = 0;
| ^~~~~~~
cc1: some warnings being treated as errors
--
drivers/tty/vt/vt.c: In function 'do_update_region':
> drivers/tty/vt/vt.c:656:43: warning: passing argument 2 of
'vc->vc_sw->con_getxy' makes integer from pointer without a cast
[-Wint-conversion]
656 | start = (ulong)vc->vc_sw->con_getxy(vc, (u16
*)start, &nxx, &nyy);
| ^~~~~~~~~~~~
| |
| u16 * {aka short unsigned int *}
drivers/tty/vt/vt.c:656:43: note: expected 'long unsigned int' but argument is of
type 'u16 *' {aka 'short unsigned int *'}
drivers/tty/vt/vt.c:683:44: warning: passing argument 2 of
'vc->vc_sw->con_getxy' makes integer from pointer without a cast
[-Wint-conversion]
683 | start = (ulong)vc->vc_sw->con_getxy(vc, (u16 *)start, NULL, NULL);
| ^~~~~~~~~~~~
| |
| u16 * {aka short unsigned int *}
drivers/tty/vt/vt.c:683:44: note: expected 'long unsigned int' but argument is of
type 'u16 *' {aka 'short unsigned int *'}
vim +3415 drivers/video/fbdev/core/fbcon.c
fe2d70d6f6ff03 drivers/video/fbdev/core/fbcon.c Daniel Vetter 2019-05-28 3389
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3390 /*
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3391 * The
console `switch' structure for the frame buffer based console
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3392 */
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3393
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3394 static
const struct consw fb_con = {
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3395
.owner = THIS_MODULE,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3396
.con_startup = fbcon_startup,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3397
.con_init = fbcon_init,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3398
.con_deinit = fbcon_deinit,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3399
.con_clear = fbcon_clear,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3400
.con_putc = fbcon_putc,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3401
.con_putcs = fbcon_putcs,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3402
.con_cursor = fbcon_cursor,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3403
.con_scroll = fbcon_scroll,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3404
.con_switch = fbcon_switch,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3405
.con_blank = fbcon_blank,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3406
.con_font_set = fbcon_set_font,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3407
.con_font_get = fbcon_get_font,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3408
.con_font_default = fbcon_set_def_font,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3409
.con_font_copy = fbcon_copy_font,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3410
.con_set_palette = fbcon_set_palette,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3411
.con_scrolldelta = fbcon_scrolldelta,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3412
.con_set_origin = fbcon_set_origin,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3413
.con_invert_region = fbcon_invert_region,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3414
.con_screen_pos = fbcon_screen_pos,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 @3415
.con_getxy = fbcon_getxy,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3416
.con_resize = fbcon_resize,
d219adc1228a38 drivers/video/console/fbcon.c Jesse Barnes 2010-08-02 3417
.con_debug_enter = fbcon_debug_enter,
d219adc1228a38 drivers/video/console/fbcon.c Jesse Barnes 2010-08-02 3418
.con_debug_leave = fbcon_debug_leave,
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3419 };
^1da177e4c3f41 drivers/video/console/fbcon.c Linus Torvalds 2005-04-16 3420
:::::: The code at line 3415 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org