• Alexander Shiyan's avatar
    serial: max310x: Fix build error · e3c6ea9b
    Alexander Shiyan authored
    config: make ARCH=alpha allyesconfig
    
    All error/warnings:
    
     drivers/tty/serial/max310x.c: In function 'max310x_ioctl':
    >> drivers/tty/serial/max310x.c:905:7: error: 'TIOCSRS485' undeclared (first use in this function)
     drivers/tty/serial/max310x.c:905:7: note: each undeclared identifier is reported only once for each function it appears in
    >> drivers/tty/serial/max310x.c:906:3: error: implicit declaration of function 'copy_from_user' [-Werror=implicit-function-declaration]
    >> drivers/tty/serial/max310x.c:929:7: error: 'TIOCGRS485' undeclared (first use in this function)
    >> drivers/tty/serial/max310x.c:938:3: error: implicit declaration of function 'copy_to_user' [-Werror=implicit-function-declaration]
     cc1: some warnings being treated as errors
    Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
    Signed-off-by: default avatarAlexander Shiyan <shc_work@mail.ru>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    e3c6ea9b
max310x.c 38 KB