Skip to content

Commit 5d061c0

Browse files
committed
Update Linux headers from v6.6 to v6.16
This patch imports the Linux kernel headers v6.16. This brings tons of new supported extensions for hwprobe. Signed-off-by: Christoph Müllner <[email protected]>
1 parent 686d7e6 commit 5d061c0

File tree

300 files changed

+23923
-4337
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

300 files changed

+23923
-4337
lines changed

linux-headers/include/asm-generic/bitsperlong.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,8 @@
2424
#endif
2525
#endif
2626

27+
#ifndef __BITS_PER_LONG_LONG
28+
#define __BITS_PER_LONG_LONG 64
29+
#endif
30+
2731
#endif /* __ASM_GENERIC_BITS_PER_LONG */

linux-headers/include/asm-generic/fcntl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
/*
88
* FMODE_EXEC is 0x20
9-
* FMODE_NONOTIFY is 0x4000000
109
* These cannot be used by userspace O_* until internal and external open
1110
* flags are split.
1211
* -Eric Paris

linux-headers/include/asm-generic/ioctl.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@
8080
* NOTE: _IOW means userland is writing and kernel is reading. _IOR
8181
* means userland is reading and kernel is writing.
8282
*/
83-
#define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0)
84-
#define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size)))
85-
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
86-
#define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
87-
#define _IOR_BAD(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size))
88-
#define _IOW_BAD(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size))
89-
#define _IOWR_BAD(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size))
83+
#define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0)
84+
#define _IOR(type,nr,argtype) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(argtype)))
85+
#define _IOW(type,nr,argtype) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(argtype)))
86+
#define _IOWR(type,nr,argtype) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(argtype)))
87+
#define _IOR_BAD(type,nr,argtype) _IOC(_IOC_READ,(type),(nr),sizeof(argtype))
88+
#define _IOW_BAD(type,nr,argtype) _IOC(_IOC_WRITE,(type),(nr),sizeof(argtype))
89+
#define _IOWR_BAD(type,nr,argtype) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(argtype))
9090

9191
/* used to decode ioctl numbers.. */
9292
#define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK)

linux-headers/include/asm-generic/mman-common.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,13 @@
7979

8080
#define MADV_COLLAPSE 25 /* Synchronous hugepage collapse */
8181

82+
#define MADV_GUARD_INSTALL 102 /* fatal signal on access to range */
83+
#define MADV_GUARD_REMOVE 103 /* unguard range */
84+
8285
/* compatibility flags */
8386
#define MAP_FILE 0
8487

88+
#define PKEY_UNRESTRICTED 0x0
8589
#define PKEY_DISABLE_ACCESS 0x1
8690
#define PKEY_DISABLE_WRITE 0x2
8791
#define PKEY_ACCESS_MASK (PKEY_DISABLE_ACCESS |\

linux-headers/include/asm-generic/mman.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@
1919
#define MCL_FUTURE 2 /* lock all future mappings */
2020
#define MCL_ONFAULT 4 /* lock all pages that are faulted in */
2121

22+
#define SHADOW_STACK_SET_TOKEN (1ULL << 0) /* Set up a restore token in the shadow stack */
23+
#define SHADOW_STACK_SET_MARKER (1ULL << 1) /* Set up a top of stack marker in the shadow stack */
24+
25+
2226
#endif /* __ASM_GENERIC_MMAN_H */

linux-headers/include/asm-generic/siginfo.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ union __sifields {
4646
__kernel_timer_t _tid; /* timer id */
4747
int _overrun; /* overrun count */
4848
sigval_t _sigval; /* same as below */
49-
int _sys_private; /* not to be passed to user */
49+
int _sys_private; /* Not used by the kernel. Historic leftover. Always 0. */
5050
} _timer;
5151

5252
/* POSIX.1b signals */
@@ -68,11 +68,6 @@ union __sifields {
6868
/* SIGILL, SIGFPE, SIGSEGV, SIGBUS, SIGTRAP, SIGEMT */
6969
struct {
7070
void *_addr; /* faulting insn/memory ref. */
71-
#ifdef __ia64__
72-
int _imm; /* immediate value for "break" */
73-
unsigned int _flags; /* see ia64 si_flags */
74-
unsigned long _isr; /* isr */
75-
#endif
7671

7772
#define __ADDR_BND_PKEY_PAD (__alignof__(void *) < sizeof(short) ? \
7873
sizeof(short) : __alignof__(void *))

linux-headers/include/asm-generic/socket.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,18 @@
135135
#define SO_PASSPIDFD 76
136136
#define SO_PEERPIDFD 77
137137

138+
#define SO_DEVMEM_LINEAR 78
139+
#define SCM_DEVMEM_LINEAR SO_DEVMEM_LINEAR
140+
#define SO_DEVMEM_DMABUF 79
141+
#define SCM_DEVMEM_DMABUF SO_DEVMEM_DMABUF
142+
#define SO_DEVMEM_DONTNEED 80
143+
144+
#define SCM_TS_OPT_ID 81
145+
146+
#define SO_RCVPRIORITY 82
147+
148+
#define SO_PASSRIGHTS 83
149+
138150

139151
#if __BITS_PER_LONG == 64 || (defined(__x86_64__) && defined(__ILP32__))
140152
/* on 64-bit and x32, avoid the ?: operator */

linux-headers/include/asm-generic/unistd.h

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ __SYSCALL(__NR_fremovexattr, sys_fremovexattr)
7171
#define __NR_getcwd 17
7272
__SYSCALL(__NR_getcwd, sys_getcwd)
7373
#define __NR_lookup_dcookie 18
74-
__SC_COMP(__NR_lookup_dcookie, sys_lookup_dcookie, compat_sys_lookup_dcookie)
74+
__SYSCALL(__NR_lookup_dcookie, sys_ni_syscall)
7575
#define __NR_eventfd2 19
7676
__SYSCALL(__NR_eventfd2, sys_eventfd2)
7777
#define __NR_epoll_create1 20
@@ -737,7 +737,7 @@ __SC_COMP(__NR_pselect6_time64, sys_pselect6, compat_sys_pselect6_time64)
737737
#define __NR_ppoll_time64 414
738738
__SC_COMP(__NR_ppoll_time64, sys_ppoll, compat_sys_ppoll_time64)
739739
#define __NR_io_pgetevents_time64 416
740-
__SYSCALL(__NR_io_pgetevents_time64, sys_io_pgetevents)
740+
__SC_COMP(__NR_io_pgetevents_time64, sys_io_pgetevents, compat_sys_io_pgetevents_time64)
741741
#define __NR_recvmmsg_time64 417
742742
__SC_COMP(__NR_recvmmsg_time64, sys_recvmmsg, compat_sys_recvmmsg_time64)
743743
#define __NR_mq_timedsend_time64 418
@@ -776,12 +776,8 @@ __SYSCALL(__NR_fsmount, sys_fsmount)
776776
__SYSCALL(__NR_fspick, sys_fspick)
777777
#define __NR_pidfd_open 434
778778
__SYSCALL(__NR_pidfd_open, sys_pidfd_open)
779-
780-
#ifdef __ARCH_WANT_SYS_CLONE3
781779
#define __NR_clone3 435
782780
__SYSCALL(__NR_clone3, sys_clone3)
783-
#endif
784-
785781
#define __NR_close_range 436
786782
__SYSCALL(__NR_close_range, sys_close_range)
787783
#define __NR_openat2 437
@@ -816,15 +812,48 @@ __SYSCALL(__NR_process_mrelease, sys_process_mrelease)
816812
__SYSCALL(__NR_futex_waitv, sys_futex_waitv)
817813
#define __NR_set_mempolicy_home_node 450
818814
__SYSCALL(__NR_set_mempolicy_home_node, sys_set_mempolicy_home_node)
819-
820815
#define __NR_cachestat 451
821816
__SYSCALL(__NR_cachestat, sys_cachestat)
822-
823817
#define __NR_fchmodat2 452
824818
__SYSCALL(__NR_fchmodat2, sys_fchmodat2)
819+
#define __NR_map_shadow_stack 453
820+
__SYSCALL(__NR_map_shadow_stack, sys_map_shadow_stack)
821+
#define __NR_futex_wake 454
822+
__SYSCALL(__NR_futex_wake, sys_futex_wake)
823+
#define __NR_futex_wait 455
824+
__SYSCALL(__NR_futex_wait, sys_futex_wait)
825+
#define __NR_futex_requeue 456
826+
__SYSCALL(__NR_futex_requeue, sys_futex_requeue)
827+
828+
#define __NR_statmount 457
829+
__SYSCALL(__NR_statmount, sys_statmount)
830+
831+
#define __NR_listmount 458
832+
__SYSCALL(__NR_listmount, sys_listmount)
833+
834+
#define __NR_lsm_get_self_attr 459
835+
__SYSCALL(__NR_lsm_get_self_attr, sys_lsm_get_self_attr)
836+
#define __NR_lsm_set_self_attr 460
837+
__SYSCALL(__NR_lsm_set_self_attr, sys_lsm_set_self_attr)
838+
#define __NR_lsm_list_modules 461
839+
__SYSCALL(__NR_lsm_list_modules, sys_lsm_list_modules)
840+
841+
#define __NR_mseal 462
842+
__SYSCALL(__NR_mseal, sys_mseal)
843+
844+
#define __NR_setxattrat 463
845+
__SYSCALL(__NR_setxattrat, sys_setxattrat)
846+
#define __NR_getxattrat 464
847+
__SYSCALL(__NR_getxattrat, sys_getxattrat)
848+
#define __NR_listxattrat 465
849+
__SYSCALL(__NR_listxattrat, sys_listxattrat)
850+
#define __NR_removexattrat 466
851+
__SYSCALL(__NR_removexattrat, sys_removexattrat)
852+
#define __NR_open_tree_attr 467
853+
__SYSCALL(__NR_open_tree_attr, sys_open_tree_attr)
825854

826855
#undef __NR_syscalls
827-
#define __NR_syscalls 453
856+
#define __NR_syscalls 468
828857

829858
/*
830859
* 32 bit systems traditionally used different

linux-headers/include/asm/auxvec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#define AT_L3_CACHEGEOMETRY 47
3535

3636
/* entries in ARCH_DLINFO */
37-
#define AT_VECTOR_SIZE_ARCH 9
37+
#define AT_VECTOR_SIZE_ARCH 10
3838
#define AT_MINSIGSTKSZ 51
3939

4040
#endif /* _ASM_RISCV_AUXVEC_H */

linux-headers/include/asm/elf.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ typedef union __riscv_fp_state elf_fpregset_t;
4949
#define R_RISCV_TLS_DTPREL64 9
5050
#define R_RISCV_TLS_TPREL32 10
5151
#define R_RISCV_TLS_TPREL64 11
52+
#define R_RISCV_IRELATIVE 58
5253

5354
/* Relocation types not used by the dynamic linker */
5455
#define R_RISCV_BRANCH 16
@@ -81,7 +82,6 @@ typedef union __riscv_fp_state elf_fpregset_t;
8182
#define R_RISCV_ALIGN 43
8283
#define R_RISCV_RVC_BRANCH 44
8384
#define R_RISCV_RVC_JUMP 45
84-
#define R_RISCV_LUI 46
8585
#define R_RISCV_GPREL_I 47
8686
#define R_RISCV_GPREL_S 48
8787
#define R_RISCV_TPREL_I 49
@@ -93,6 +93,9 @@ typedef union __riscv_fp_state elf_fpregset_t;
9393
#define R_RISCV_SET16 55
9494
#define R_RISCV_SET32 56
9595
#define R_RISCV_32_PCREL 57
96+
#define R_RISCV_PLT32 59
97+
#define R_RISCV_SET_ULEB128 60
98+
#define R_RISCV_SUB_ULEB128 61
9699

97100

98101
#endif /* _ASM_RISCV_ELF_H */

0 commit comments

Comments
 (0)