@@ -3505,8 +3505,7 @@ fn test_linux(target: &str) {
3505
3505
[ gnu] : "linux/aio_abi.h" ,
3506
3506
"linux/can.h" ,
3507
3507
"linux/can/raw.h" ,
3508
- // FIXME: requires kernel headers >= 5.4.1.
3509
- [ !musl] : "linux/can/j1939.h" ,
3508
+ "linux/can/j1939.h" ,
3510
3509
"linux/dccp.h" ,
3511
3510
"linux/errqueue.h" ,
3512
3511
"linux/falloc.h" ,
@@ -3531,8 +3530,7 @@ fn test_linux(target: &str) {
3531
3530
"linux/mempolicy.h" ,
3532
3531
"linux/mman.h" ,
3533
3532
"linux/module.h" ,
3534
- // FIXME: requires kernel headers >= 5.1.
3535
- [ !musl] : "linux/mount.h" ,
3533
+ "linux/mount.h" ,
3536
3534
"linux/net_tstamp.h" ,
3537
3535
"linux/netfilter/nfnetlink.h" ,
3538
3536
"linux/netfilter/nfnetlink_log.h" ,
@@ -3544,11 +3542,10 @@ fn test_linux(target: &str) {
3544
3542
"linux/netfilter_ipv6.h" ,
3545
3543
"linux/netfilter_ipv6/ip6_tables.h" ,
3546
3544
"linux/netlink.h" ,
3547
- // FIXME: requires Linux >= 5.6:
3548
- [ !musl] : "linux/openat2.h" ,
3545
+ "linux/openat2.h" ,
3549
3546
// FIXME: some items require Linux >= 5.6:
3550
3547
"linux/ptp_clock.h" ,
3551
- [ !musl ] : "linux/ptrace.h" ,
3548
+ "linux/ptrace.h" ,
3552
3549
"linux/quota.h" ,
3553
3550
"linux/random.h" ,
3554
3551
"linux/reboot.h" ,
@@ -3566,7 +3563,7 @@ fn test_linux(target: &str) {
3566
3563
"sys/fanotify.h" ,
3567
3564
// <sys/auxv.h> is not present on uclibc
3568
3565
[ !uclibc] : "sys/auxv.h" ,
3569
- [ gnu] : "linux/close_range.h" ,
3566
+ [ gnu || musl ] : "linux/close_range.h" ,
3570
3567
}
3571
3568
3572
3569
// note: aio.h must be included before sys/mount.h
@@ -3657,11 +3654,6 @@ fn test_linux(target: &str) {
3657
3654
// specific type.
3658
3655
"Ioctl" => true ,
3659
3656
3660
- // FIXME: requires >= 5.4.1 kernel headers
3661
- "pgn_t" if musl => true ,
3662
- "priority_t" if musl => true ,
3663
- "name_t" if musl => true ,
3664
-
3665
3657
// FIXME: "'__uint128' undeclared" in C
3666
3658
"__uint128" => true ,
3667
3659
@@ -3680,22 +3672,6 @@ fn test_linux(target: &str) {
3680
3672
if ty. starts_with ( "__c_anonymous_" ) {
3681
3673
return true ;
3682
3674
}
3683
- // FIXME: musl CI has old headers
3684
- if musl && ty. starts_with ( "uinput_" ) {
3685
- return true ;
3686
- }
3687
- if musl && ty == "seccomp_notif" {
3688
- return true ;
3689
- }
3690
- if musl && ty == "seccomp_notif_addfd" {
3691
- return true ;
3692
- }
3693
- if musl && ty == "seccomp_notif_resp" {
3694
- return true ;
3695
- }
3696
- if musl && ty == "seccomp_notif_sizes" {
3697
- return true ;
3698
- }
3699
3675
3700
3676
// FIXME: CI has old headers
3701
3677
if ty == "ptp_sys_offset_extended" {
@@ -3779,12 +3755,6 @@ fn test_linux(target: &str) {
3779
3755
// Might differ between kernel versions
3780
3756
"open_how" => true ,
3781
3757
3782
- // FIXME: requires >= 5.4.1 kernel headers
3783
- "j1939_filter" if musl => true ,
3784
-
3785
- // FIXME: requires >= 5.4 kernel headers
3786
- "sockaddr_can" if musl => true ,
3787
-
3788
3758
"sctp_initmsg" | "sctp_sndrcvinfo" | "sctp_sndinfo" | "sctp_rcvinfo"
3789
3759
| "sctp_nxtinfo" | "sctp_prinfo" | "sctp_authinfo" => true ,
3790
3760
@@ -3949,7 +3919,7 @@ fn test_linux(target: &str) {
3949
3919
return true ;
3950
3920
}
3951
3921
// FIXME: Requires >= 6.3 kernel headers
3952
- if name == "MFD_NOEXEC_SEAL" || name == "MFD_EXEC" {
3922
+ if loongarch64 && ( name == "MFD_NOEXEC_SEAL" || name == "MFD_EXEC" ) {
3953
3923
return true ;
3954
3924
}
3955
3925
}
@@ -4036,7 +4006,7 @@ fn test_linux(target: &str) {
4036
4006
"SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV" if sparc64 => true ,
4037
4007
4038
4008
// FIXME: Not currently available in headers on ARM and musl.
4039
- "NETLINK_GET_STRICT_CHK" if arm || musl => true ,
4009
+ "NETLINK_GET_STRICT_CHK" if arm => true ,
4040
4010
4041
4011
// kernel constants not available in uclibc 1.0.34
4042
4012
| "EXTPROC"
@@ -4105,62 +4075,14 @@ fn test_linux(target: &str) {
4105
4075
| "MINSIGSTKSZ"
4106
4076
if gnu => true ,
4107
4077
4108
- // FIXME: Linux >= 5.10:
4109
- // https://github.com/torvalds/linux/commit/d25e2e9388eda61b6e298585024ee3355f50c493
4110
- "NF_INET_INGRESS" if musl => true ,
4111
-
4112
4078
// FIXME: Linux >= 5.16:
4113
4079
// https://github.com/torvalds/linux/commit/42df6e1d221dddc0f2acf2be37e68d553ad65f96
4114
- "NF_NETDEV_EGRESS" if musl || sparc64 => true ,
4080
+ "NF_NETDEV_EGRESS" if sparc64 => true ,
4115
4081
// value changed
4116
- "NF_NETDEV_NUMHOOKS" if musl || sparc64 => true ,
4117
-
4118
- // FIXME: requires Linux >= 5.6:
4119
- | "RESOLVE_BENEATH"
4120
- | "RESOLVE_CACHED"
4121
- | "RESOLVE_IN_ROOT"
4122
- | "RESOLVE_NO_MAGICLINKS"
4123
- | "RESOLVE_NO_SYMLINKS"
4124
- | "RESOLVE_NO_XDEV" if musl => true ,
4125
-
4126
- // FIXME: requires Linux >= 5.4:
4127
- | "CAN_J1939"
4128
- | "CAN_NPROTO" if musl => true ,
4129
-
4130
- // FIXME: requires Linux >= 5.6
4131
- "GRND_INSECURE" if musl => true ,
4132
-
4133
- // FIXME: requires Linux >= 5.7:
4134
- "MREMAP_DONTUNMAP" if musl => true ,
4082
+ "NF_NETDEV_NUMHOOKS" if sparc64 => true ,
4135
4083
4136
4084
// FIXME: requires Linux >= v5.8
4137
- "IF_LINK_MODE_TESTING" if musl || sparc64 => true ,
4138
-
4139
- // FIXME: Requires more recent kernel headers (5.9 / 5.11):
4140
- | "CLOSE_RANGE_UNSHARE"
4141
- | "CLOSE_RANGE_CLOEXEC" if musl => true ,
4142
-
4143
- // FIXME: requires Linux >= 5.12:
4144
- "MPOL_F_NUMA_BALANCING" if musl => true ,
4145
-
4146
- // FIXME: Requires more recent kernel headers
4147
- | "NFNL_SUBSYS_COUNT" // bumped in v5.14
4148
- | "NFNL_SUBSYS_HOOK" // v5.14+
4149
- | "NFULA_VLAN" // v5.4+
4150
- | "NFULA_L2HDR" // v5.4+
4151
- | "NFULA_VLAN_PROTO" // v5.4+
4152
- | "NFULA_VLAN_TCI" // v5.4+
4153
- | "NFULA_VLAN_UNSPEC" // v5.4+
4154
- | "RTNLGRP_NEXTHOP" // linux v5.3+
4155
- | "RTNLGRP_BRVLAN" // linux v5.6+
4156
- if musl => true ,
4157
-
4158
- | "MADV_COLD"
4159
- | "MADV_PAGEOUT"
4160
- | "MADV_POPULATE_READ"
4161
- | "MADV_POPULATE_WRITE"
4162
- if musl => true ,
4163
- "CLONE_CLEAR_SIGHAND" | "CLONE_INTO_CGROUP" => true ,
4085
+ "IF_LINK_MODE_TESTING" if sparc64 => true ,
4164
4086
4165
4087
// FIXME: Requires >= 6.3 kernel headers
4166
4088
"MFD_EXEC" | "MFD_NOEXEC_SEAL" if sparc64 => true ,
@@ -4182,9 +4104,6 @@ fn test_linux(target: &str) {
4182
4104
=> true ,
4183
4105
"SCTP_FUTURE_ASSOC" | "SCTP_CURRENT_ASSOC" | "SCTP_ALL_ASSOC" | "SCTP_PEER_ADDR_THLDS_V2" => true , // linux 5.5+
4184
4106
4185
- // FIXME: Requires more recent kernel headers
4186
- "HWTSTAMP_TX_ONESTEP_P2P" if musl => true , // linux v5.6+
4187
-
4188
4107
// kernel 6.5 minimum
4189
4108
"MOVE_MOUNT_BENEATH" => true ,
4190
4109
// FIXME: Requires linux 6.1
@@ -4206,10 +4125,8 @@ fn test_linux(target: &str) {
4206
4125
| "FAN_INFO" // linux v5.16+
4207
4126
=> true ,
4208
4127
4209
- // FIXME: Requires linux 5.15+
4210
- "FAN_REPORT_PIDFD" if musl => true ,
4211
-
4212
- // FIXME: Requires linux 5.9+
4128
+ // musl doesn't use <linux/fanotify.h> in <sys/fanotify.h>
4129
+ "FAN_REPORT_PIDFD"
4213
4130
| "FAN_REPORT_DIR_FID"
4214
4131
| "FAN_REPORT_NAME"
4215
4132
| "FAN_REPORT_DFID_NAME"
@@ -4223,55 +4140,6 @@ fn test_linux(target: &str) {
4223
4140
// FIXME: Requires linux 6.5
4224
4141
"NFT_MSG_MAX" => true ,
4225
4142
4226
- // FIXME: Requires >= 5.1 kernel headers.
4227
- // Everything that uses install-musl.sh has 4.19 kernel headers.
4228
- "TLS_1_3_VERSION"
4229
- | "TLS_1_3_VERSION_MAJOR"
4230
- | "TLS_1_3_VERSION_MINOR"
4231
- | "TLS_CIPHER_AES_GCM_256"
4232
- | "TLS_CIPHER_AES_GCM_256_IV_SIZE"
4233
- | "TLS_CIPHER_AES_GCM_256_KEY_SIZE"
4234
- | "TLS_CIPHER_AES_GCM_256_SALT_SIZE"
4235
- | "TLS_CIPHER_AES_GCM_256_TAG_SIZE"
4236
- | "TLS_CIPHER_AES_GCM_256_REC_SEQ_SIZE"
4237
- if ( aarch64 || arm || i686 || s390x || x86_64) && musl =>
4238
- {
4239
- true
4240
- }
4241
-
4242
- // FIXME: Requires >= 5.11 kernel headers.
4243
- // Everything that uses install-musl.sh has 4.19 kernel headers.
4244
- "TLS_CIPHER_CHACHA20_POLY1305"
4245
- | "TLS_CIPHER_CHACHA20_POLY1305_IV_SIZE"
4246
- | "TLS_CIPHER_CHACHA20_POLY1305_KEY_SIZE"
4247
- | "TLS_CIPHER_CHACHA20_POLY1305_SALT_SIZE"
4248
- | "TLS_CIPHER_CHACHA20_POLY1305_TAG_SIZE"
4249
- | "TLS_CIPHER_CHACHA20_POLY1305_REC_SEQ_SIZE"
4250
- if ( aarch64 || arm || i686 || s390x || x86_64) && musl =>
4251
- {
4252
- true
4253
- }
4254
-
4255
- // FIXME: Requires >= 5.3 kernel headers.
4256
- // Everything that uses install-musl.sh has 4.19 kernel headers.
4257
- "XDP_OPTIONS_ZEROCOPY" | "XDP_OPTIONS"
4258
- if musl =>
4259
- {
4260
- true
4261
- }
4262
-
4263
- // FIXME: Requires >= 5.4 kernel headers.
4264
- // Everything that uses install-musl.sh has 4.19 kernel headers.
4265
- "XSK_UNALIGNED_BUF_OFFSET_SHIFT"
4266
- | "XSK_UNALIGNED_BUF_ADDR_MASK"
4267
- | "XDP_UMEM_UNALIGNED_CHUNK_FLAG"
4268
- | "XDP_RING_NEED_WAKEUP"
4269
- | "XDP_USE_NEED_WAKEUP"
4270
- if musl =>
4271
- {
4272
- true
4273
- }
4274
-
4275
4143
// FIXME: Requires >= 6.6 kernel headers.
4276
4144
"XDP_USE_SG"
4277
4145
| "XDP_PKT_CONTD"
@@ -4330,14 +4198,6 @@ fn test_linux(target: &str) {
4330
4198
| "PF_MCE_EARLY"
4331
4199
| "PF_MEMALLOC_PIN" => true ,
4332
4200
4333
- "SCHED_FLAG_KEEP_POLICY"
4334
- | "SCHED_FLAG_KEEP_PARAMS"
4335
- | "SCHED_FLAG_UTIL_CLAMP_MIN"
4336
- | "SCHED_FLAG_UTIL_CLAMP_MAX"
4337
- | "SCHED_FLAG_KEEP_ALL"
4338
- | "SCHED_FLAG_UTIL_CLAMP"
4339
- | "SCHED_FLAG_ALL" if musl => true , // Needs more recent linux headers.
4340
-
4341
4201
// FIXME: Requires >= 6.9 kernel headers.
4342
4202
"EPIOCSPARAMS"
4343
4203
| "EPIOCGPARAMS" => true ,
0 commit comments