vt: align with type changes
authorAlan Cox <alan@linux.intel.com>
Wed, 13 Mar 2019 22:27:02 +0000 (22:27 +0000)
committerAlan Cox <alan@linux.intel.com>
Wed, 13 Mar 2019 22:27:02 +0000 (22:27 +0000)
We ought to fix up the internal type usages but a lot of these lead into asm
code so some review is called for.

Kernel/include/vt.h
Kernel/vt.c

index 474cffe..3bf2844 100644 (file)
@@ -57,8 +57,8 @@ void scroll_up(void);
 void scroll_down(void);
 void plot_char(int8_t y, int8_t x, uint16_t c);
 void do_beep(void);
-int vt_ioctl(uint8_t minor, uarg_t op, char *ptr);
-int vt_inproc(uint8_t minor, unsigned char c);
+int vt_ioctl(uint_fast8_t minor, uarg_t op, char *ptr);
+int vt_inproc(uint_fast8_t minor, unsigned char c);
 void vtattr_notify(void);
 extern uint8_t vtattr;
 extern uint8_t vtattr_cap;
index 8f2a9fe..fea126c 100644 (file)
@@ -288,7 +288,7 @@ void vtoutput(unsigned char *p, unsigned int len)
        vtbusy = 0;
 }
 
-int vt_ioctl(uint8_t minor, uarg_t request, char *data)
+int vt_ioctl(uint_fast8_t minor, uarg_t request, char *data)
 {
        /* FIXME: need to address the multiple vt switching case
           here.. probably need to switch vt */
@@ -321,7 +321,7 @@ int vt_ioctl(uint8_t minor, uarg_t request, char *data)
        return tty_ioctl(minor, request, data);
 }
 
-int vt_inproc(uint8_t minor, unsigned char c)
+int vt_inproc(uint_fast8_t minor, uint_fast8_t c)
 {
 #ifdef CONFIG_UNIKEY
        if (c == KEY_POUND) {