X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Flinux%2Fvt.h;h=d5dd0bc408fd4e7b1e79ea8326841a8a187f2738;hb=10e5453ffa0d04a2eda3cda3f55b88cb9c04595f;hp=3fb9944e50a650f35075fd37ecb02cdf04d8e8aa;hpb=5ada918b82399eef3afd6a71e3637697d6bd719f;p=firefly-linux-kernel-4.4.55.git diff --git a/include/linux/vt.h b/include/linux/vt.h index 3fb9944e50a6..d5dd0bc408fd 100644 --- a/include/linux/vt.h +++ b/include/linux/vt.h @@ -84,6 +84,8 @@ struct vt_setactivate { #define VT_SETACTIVATE 0x560F /* Activate and set the mode of a console */ +#ifdef __KERNEL__ + #ifdef CONFIG_VT_CONSOLE extern int vt_kmsg_redirect(int new); @@ -97,6 +99,8 @@ static inline int vt_kmsg_redirect(int new) #endif +#endif /* __KERNEL__ */ + #define vt_get_kmsg_redirect() vt_kmsg_redirect(-1) #endif /* _LINUX_VT_H */