tree:
https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head: b1d08004826c99d8af2be6744a7c623a18965562
commit: 664c8d310ea30534c98916abe75c7783c997ae32 [33/60] vt_ioctl: move io ioctls
config: arm-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 664c8d310ea30534c98916abe75c7783c997ae32
# 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 errors (new ones prefixed by >>, old ones prefixed by <<):
drivers/tty/vt/vt_ioctl.c: In function 'vt_io_ioctl':
> drivers/tty/vt/vt_ioctl.c:636:3: error: 'ret' undeclared
(first use in this function); did you mean 'net'?
636 | ret =
con_font_op(vc_cons[fg_console].d, &op);
| ^~~
| net
drivers/tty/vt/vt_ioctl.c:636:3: note: each undeclared identifier is reported only once
for each function it appears in
vim +636 drivers/tty/vt/vt_ioctl.c
586
587 static int vt_io_ioctl(struct vc_data *vc, unsigned int cmd, void __user *up,
588 bool perm)
589 {
590 struct console_font_op op; /* used in multiple places here */
591
592 switch (cmd) {
593 case PIO_FONT:
594 if (!perm)
595 return -EPERM;
596 op.op = KD_FONT_OP_SET;
597 op.flags = KD_FONT_FLAG_OLD | KD_FONT_FLAG_DONT_RECALC; /* Compatibility */
598 op.width = 8;
599 op.height = 0;
600 op.charcount = 256;
601 op.data = up;
602 return con_font_op(vc_cons[fg_console].d, &op);
603
604 case GIO_FONT:
605 op.op = KD_FONT_OP_GET;
606 op.flags = KD_FONT_FLAG_OLD;
607 op.width = 8;
608 op.height = 32;
609 op.charcount = 256;
610 op.data = up;
611 return con_font_op(vc_cons[fg_console].d, &op);
612
613 case PIO_CMAP:
614 if (!perm)
615 return -EPERM;
616 return con_set_cmap(up);
617
618 case GIO_CMAP:
619 return con_get_cmap(up);
620
621 case PIO_FONTX:
622 case GIO_FONTX:
623 return do_fontx_ioctl(cmd, up, perm, &op);
624
625 case PIO_FONTRESET:
626 if (!perm)
627 return -EPERM;
628
629 #ifdef BROKEN_GRAPHICS_PROGRAMS
630 /* With BROKEN_GRAPHICS_PROGRAMS defined, the default
631 font is not saved. */
632 return -ENOSYS;
633 #else
634 op.op = KD_FONT_OP_SET_DEFAULT;
635 op.data = NULL;
636 ret = con_font_op(vc_cons[fg_console].d, &op);
637 if (ret)
638 return ret;
639 console_lock();
640 con_set_default_unimap(vc_cons[fg_console].d);
641 console_unlock();
642 break;
643 #endif
644
645 case PIO_SCRNMAP:
646 if (!perm)
647 return -EPERM;
648 return con_set_trans_old(up);
649
650 case GIO_SCRNMAP:
651 return con_get_trans_old(up);
652
653 case PIO_UNISCRNMAP:
654 if (!perm)
655 return -EPERM;
656 return con_set_trans_new(up);
657
658 case GIO_UNISCRNMAP:
659 return con_get_trans_new(up);
660
661 case PIO_UNIMAPCLR:
662 if (!perm)
663 return -EPERM;
664 con_clear_unimap(vc);
665 break;
666
667 case PIO_UNIMAP:
668 case GIO_UNIMAP:
669 return do_unimap_ioctl(cmd, up, perm, vc);
670
671 default:
672 return -ENOIOCTLCMD;
673 }
674
675 return 0;
676 }
677
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org