linux/arch/powerpc/include/uapi/asm
Madhavan Srinivasan ab10727660 powerpc: Fix struct termio related ioctl macros
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
2025-06-13 22:18:50 +05:30
..
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 powerpc: Fix struct termio related ioctl macros 2025-06-13 22:18:50 +05:30
ipcbuf.h
kvm.h KVM: PPC: Book3S HV: Add one-reg interface for HASHPKEYR register 2024-06-06 22:39:04 +10:00
kvm_para.h
mman.h
msgbuf.h
nvram.h
opal-prd.h
papr-indices.h powerpc/pseries: Define papr_indices_io_block for papr-indices ioctls 2025-04-17 11:42:29 +05:30
papr-miscdev.h
papr-physical-attestation.h powerpc/pseries: Add a char driver for physical-attestation RTAS 2025-04-17 11:42:30 +05:30
papr-platform-dump.h powerpc/pseries: Include linux/types.h in papr-platform-dump.h 2025-05-02 09:54:47 +05:30
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