Since commit fcc8487d477a ("uapi: export all headers under uapi directories"), all (and only) headers under uapi directories are exported, but asm-generic wrappers are still exceptions. To complete de-coupling the uapi from kernel headers, move generic-y of exported headers to uapi/asm/Kbuild. With this change, "make headers_install" will just need to parse uapi/asm/Kbuild to build up exported headers. For arm64, "generic-y += kvm_para.h" is doubled in asm/Kbuild and uapi/asm/Kbuild. So, the one in the former can be simply removed.
Showing the changes to arch/arm64/include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -1,4 +1,20 @@ | ||
| 1 | 1 | # UAPI Header export list |
| 2 | 2 | include include/uapi/asm-generic/Kbuild.asm |
| 3 | 3 | |
| 4 | +generic-y += errno.h | |
| 5 | +generic-y += ioctl.h | |
| 6 | +generic-y += ioctls.h | |
| 7 | +generic-y += ipcbuf.h | |
| 4 | 8 | generic-y += kvm_para.h |
| 9 | +generic-y += mman.h | |
| 10 | +generic-y += msgbuf.h | |
| 11 | +generic-y += poll.h | |
| 12 | +generic-y += resource.h | |
| 13 | +generic-y += sembuf.h | |
| 14 | +generic-y += shmbuf.h | |
| 15 | +generic-y += socket.h | |
| 16 | +generic-y += sockios.h | |
| 17 | +generic-y += swab.h | |
| 18 | +generic-y += termbits.h | |
| 19 | +generic-y += termios.h | |
| 20 | +generic-y += types.h | |