untangle asm/termios.h-related headers
At that point we have the following picture:
* architectures with uapi/asm/termios.h will have include
of <asm/termios.h> resolve to that
* architectures without such file (other than loongarch)
will have it resolve to generated/uapi/asm/termios.h consisting of
include/asm-generic/termios.h, which consists of
include/uapi/asm-generic/termios.h
* loongarch will have it resolve to generated/asm/termios.h
consisting of #include <asm-generic/termios.h>, then as above.
It's still too convoluted; to untangle that we can just remove
include/asm-generic/termios.h and tell loongarch to stop bothering
with generated/asm/termios.h.
That way the rules become:
* architectures with uapi/asm/termios.h will have include
of <asm/termios.h> resolve to that
* architectures without such file will have it resolve to
generated/uapi/asm/termios.h consisting of #include <asm-generic/termios.h>
which will resolve to include/uapi/asm-generic/termios.h
IOW, same result with fewer intermediate steps and the rules that
are easier to follow - asm/termios.h *always* refers to an UAPI
header, either native or default one.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/arch/loongarch/include/asm/Kbuild b/arch/loongarch/include/asm/Kbuild
index 83bc068..f2bcfcb 100644
--- a/arch/loongarch/include/asm/Kbuild
+++ b/arch/loongarch/include/asm/Kbuild
@@ -21,7 +21,6 @@
generic-y += statfs.h
generic-y += socket.h
generic-y += sockios.h
-generic-y += termios.h
generic-y += termbits.h
generic-y += poll.h
generic-y += param.h
diff --git a/include/asm-generic/termios.h b/include/asm-generic/termios.h
deleted file mode 100644
index 7873fc2..0000000
--- a/include/asm-generic/termios.h
+++ /dev/null
@@ -1,7 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef _ASM_GENERIC_TERMIOS_H
-#define _ASM_GENERIC_TERMIOS_H
-
-#include <uapi/asm-generic/termios.h>
-
-#endif /* _ASM_GENERIC_TERMIOS_H */