@@ -3223,9 +3223,6 @@ fn test_linux(target: &str) {
3223
3223
let arm = target. contains ( "arm" ) ;
3224
3224
let aarch64 = target. contains ( "aarch64" ) ;
3225
3225
let i686 = target. contains ( "i686" ) ;
3226
- let mips = target. contains ( "mips" ) ;
3227
- let mips32 = mips && !target. contains ( "64" ) ;
3228
- let mips64 = mips && target. contains ( "64" ) ;
3229
3226
let ppc = target. contains ( "powerpc" ) ;
3230
3227
let ppc64 = target. contains ( "powerpc64" ) ;
3231
3228
let s390x = target. contains ( "s390x" ) ;
@@ -3596,17 +3593,15 @@ fn test_linux(target: &str) {
3596
3593
// FIXME: Requires >= 5.1 kernel headers.
3597
3594
// Everything that uses install-musl.sh has 4.19 kernel headers.
3598
3595
"tls12_crypto_info_aes_gcm_256"
3599
- if ( aarch64 || arm || i686 || mips64 || s390x || x86_64) && musl =>
3596
+ if ( aarch64 || arm || i686 || s390x || x86_64) && musl =>
3600
3597
{
3601
3598
true
3602
3599
}
3603
3600
3604
3601
// FIXME: Requires >= 5.11 kernel headers.
3605
3602
// Everything that uses install-musl.sh has 4.19 kernel headers.
3606
- // mips-unknown-linux-musl and mips64-unknown-linux-musl use
3607
- // openwrt-sdk which has 5.4 kernel headers.
3608
3603
"tls12_crypto_info_chacha20_poly1305"
3609
- if ( aarch64 || arm || i686 || mips || s390x || x86_64) && musl =>
3604
+ if ( aarch64 || arm || i686 || s390x || x86_64) && musl =>
3610
3605
{
3611
3606
true
3612
3607
}
@@ -3727,16 +3722,11 @@ fn test_linux(target: &str) {
3727
3722
| "IPPROTO_ETHERNET"
3728
3723
| "IPPROTO_MPTCP" => true ,
3729
3724
3730
- // FIXME: Not currently available in headers
3731
- "P_PIDFD" if mips => true ,
3732
- "SYS_pidfd_open" if mips => true ,
3725
+ // FIXME: Not yet implemented on sparc64
3726
+ "SYS_clone3" if sparc64 => true ,
3733
3727
3734
- // FIXME: Not currently available in headers on MIPS
3735
- // Not yet implemented on sparc64
3736
- "SYS_clone3" if mips | sparc64 => true ,
3737
-
3738
- // FIXME: Not defined on ARM, gnueabihf, MIPS, musl, PowerPC, riscv64, s390x, and sparc64.
3739
- "SYS_memfd_secret" if arm | gnueabihf | mips | musl | ppc | riscv64 | s390x | sparc64 => true ,
3728
+ // FIXME: Not defined on ARM, gnueabihf, musl, PowerPC, riscv64, s390x, and sparc64.
3729
+ "SYS_memfd_secret" if arm | gnueabihf | musl | ppc | riscv64 | s390x | sparc64 => true ,
3740
3730
3741
3731
// FIXME: Added in Linux 5.16
3742
3732
// https://github.com/torvalds/linux/commit/039c0ec9bb77446d7ada7f55f90af9299b28ca49
@@ -3754,10 +3744,10 @@ fn test_linux(target: &str) {
3754
3744
| "UINPUT_VERSION"
3755
3745
| "SW_MAX"
3756
3746
| "SW_CNT"
3757
- if mips || ppc64 || riscv64 => true ,
3747
+ if ppc64 || riscv64 => true ,
3758
3748
3759
- // FIXME: Not currently available in headers on ARM, MIPS and musl.
3760
- "NETLINK_GET_STRICT_CHK" if arm || mips || musl => true ,
3749
+ // FIXME: Not currently available in headers on ARM and musl.
3750
+ "NETLINK_GET_STRICT_CHK" if arm || musl => true ,
3761
3751
3762
3752
// kernel constants not available in uclibc 1.0.34
3763
3753
| "EXTPROC"
@@ -3946,22 +3936,20 @@ fn test_linux(target: &str) {
3946
3936
| "TLS_CIPHER_AES_GCM_256_SALT_SIZE"
3947
3937
| "TLS_CIPHER_AES_GCM_256_TAG_SIZE"
3948
3938
| "TLS_CIPHER_AES_GCM_256_REC_SEQ_SIZE"
3949
- if ( aarch64 || arm || i686 || mips64 || s390x || x86_64) && musl =>
3939
+ if ( aarch64 || arm || i686 || s390x || x86_64) && musl =>
3950
3940
{
3951
3941
true
3952
3942
}
3953
3943
3954
3944
// FIXME: Requires >= 5.11 kernel headers.
3955
3945
// Everything that uses install-musl.sh has 4.19 kernel headers.
3956
- // mips-unknown-linux-musl and mips64-unknown-linux-musl use
3957
- // openwrt-sdk which has 5.4 kernel headers.
3958
3946
"TLS_CIPHER_CHACHA20_POLY1305"
3959
3947
| "TLS_CIPHER_CHACHA20_POLY1305_IV_SIZE"
3960
3948
| "TLS_CIPHER_CHACHA20_POLY1305_KEY_SIZE"
3961
3949
| "TLS_CIPHER_CHACHA20_POLY1305_SALT_SIZE"
3962
3950
| "TLS_CIPHER_CHACHA20_POLY1305_TAG_SIZE"
3963
3951
| "TLS_CIPHER_CHACHA20_POLY1305_REC_SEQ_SIZE"
3964
- if ( aarch64 || arm || i686 || mips || s390x || x86_64) && musl =>
3952
+ if ( aarch64 || arm || i686 || s390x || x86_64) && musl =>
3965
3953
{
3966
3954
true
3967
3955
}
@@ -4155,15 +4143,11 @@ fn test_linux(target: &str) {
4155
4143
} ) ;
4156
4144
4157
4145
cfg. skip_roundtrip ( move |s| match s {
4158
- // FIXME:
4159
- "utsname" if mips32 || mips64 => true ,
4160
4146
// FIXME:
4161
4147
"mcontext_t" if s390x => true ,
4162
4148
// FIXME: This is actually a union.
4163
4149
"fpreg_t" if s390x => true ,
4164
4150
4165
- "sockaddr_un" | "sembuf" | "ff_constant_effect" if mips32 && ( gnu || musl) => true ,
4166
-
4167
4151
// The test doesn't work on some env:
4168
4152
"ipv6_mreq"
4169
4153
| "ip_mreq_source"
@@ -4183,7 +4167,7 @@ fn test_linux(target: &str) {
4183
4167
| "sockaddr_nl"
4184
4168
| "termios"
4185
4169
| "nlmsgerr"
4186
- if ( mips64 || sparc64) && gnu =>
4170
+ if sparc64 && gnu =>
4187
4171
{
4188
4172
true
4189
4173
}
@@ -4196,7 +4180,7 @@ fn test_linux(target: &str) {
4196
4180
"cmsghdr" => true ,
4197
4181
4198
4182
// FIXME: the call ABI of max_align_t is incorrect on these platforms:
4199
- "max_align_t" if i686 || mips64 || ppc64 => true ,
4183
+ "max_align_t" if i686 || ppc64 => true ,
4200
4184
4201
4185
_ => false ,
4202
4186
} ) ;
0 commit comments