]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Avoid fixing the tty_info() buffer size in tty.h.
authormarkj <markj@FreeBSD.org>
Tue, 6 Nov 2018 23:41:44 +0000 (23:41 +0000)
committermarkj <markj@FreeBSD.org>
Tue, 6 Nov 2018 23:41:44 +0000 (23:41 +0000)
commit8ffe4c50abd98fe6e8341421b163e7e838bdc9ca
treeb0d5330ae756a1f05a7f047961a059f5a96e6cb5
parent0c7244bebadb827d67ba87544b607ea5acaacbab
Avoid fixing the tty_info() buffer size in tty.h.

Different compilation units may otherwise get a different view of the
layout of struct tty depending on whether they include opt_printf.h.
This caused a blowup in the number of types defined in the kernel's
CTF file after r339468; thanks to dim@ for bisecting down to that
revision.

PR: 232675
Reported by: dim
Reviewed by: cem (previous version)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17877
sys/kern/tty.c
sys/kern/tty_info.c
sys/sys/tty.h