mirror of https://github.com/torvalds/linux.git
Since termio interface is now obsolete, include/uapi/asm/ioctls.h
has some constant macros referring to "struct termio", this caused
build failure at userspace.
In file included from /usr/include/asm/ioctl.h:12,
from /usr/include/asm/ioctls.h:5,
from tst-ioctls.c:3:
tst-ioctls.c: In function 'get_TCGETA':
tst-ioctls.c:12:10: error: invalid application of 'sizeof' to incomplete type 'struct termio'
12 | return TCGETA;
| ^~~~~~
Even though termios.h provides "struct termio", trying to juggle definitions around to
make it compile could introduce regressions. So better to open code it.
Reported-by: Tulio Magno <tuliom@ascii.art.br>
Suggested-by: Nicholas Piggin <npiggin@gmail.com>
Tested-by: Justin M. Forbes <jforbes@fedoraproject.org>
Reviewed-by: Michael Ellerman <mpe@ellerman.id.au>
Closes: https://lore.kernel.org/linuxppc-dev/8734dji5wl.fsf@ascii.art.br/
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250517142237.156665-1-maddy@linux.ibm.com
|
||
|---|---|---|
| .. | ||
| Kbuild | ||
| auxvec.h | ||
| bitsperlong.h | ||
| bootx.h | ||
| byteorder.h | ||
| cputable.h | ||
| eeh.h | ||
| elf.h | ||
| epapr_hcalls.h | ||
| errno.h | ||
| fcntl.h | ||
| ioctl.h | ||
| ioctls.h | ||
| ipcbuf.h | ||
| kvm.h | ||
| kvm_para.h | ||
| mman.h | ||
| msgbuf.h | ||
| nvram.h | ||
| opal-prd.h | ||
| papr-indices.h | ||
| papr-miscdev.h | ||
| papr-physical-attestation.h | ||
| papr-platform-dump.h | ||
| papr-sysparm.h | ||
| papr-vpd.h | ||
| perf_event.h | ||
| perf_regs.h | ||
| posix_types.h | ||
| ps3fb.h | ||
| ptrace.h | ||
| sembuf.h | ||
| setup.h | ||
| shmbuf.h | ||
| sigcontext.h | ||
| signal.h | ||
| socket.h | ||
| spu_info.h | ||
| stat.h | ||
| swab.h | ||
| termbits.h | ||
| termios.h | ||
| tm.h | ||
| types.h | ||
| ucontext.h | ||
| unistd.h | ||
| vas-api.h | ||