From cb167da1e83ff5fa0f949e5bfc57b995474f5ef5 Mon Sep 17 00:00:00 2001 From: sinkingpoint Date: Mon, 22 Jul 2024 14:33:54 +1000 Subject: [PATCH] Add MODULE_INIT_COMPRESSED_FILE definition Signed-off-by: sinkingpoint --- libc-test/semver/android.txt | 1 + libc-test/semver/linux.txt | 1 + src/unix/linux_like/android/mod.rs | 1 + src/unix/linux_like/linux/mod.rs | 1 + 4 files changed, 4 insertions(+) diff --git a/libc-test/semver/android.txt b/libc-test/semver/android.txt index 67138f23dfd40..bc8089481f49b 100644 --- a/libc-test/semver/android.txt +++ b/libc-test/semver/android.txt @@ -1260,6 +1260,7 @@ MNT_EXPIRE MNT_FORCE MODULE_INIT_IGNORE_MODVERSIONS MODULE_INIT_IGNORE_VERMAGIC +MODULE_INIT_COMPRESSED_FILE MPOL_BIND MPOL_DEFAULT MPOL_F_NUMA_BALANCING diff --git a/libc-test/semver/linux.txt b/libc-test/semver/linux.txt index a983d62341dcf..f578e6e40eea6 100644 --- a/libc-test/semver/linux.txt +++ b/libc-test/semver/linux.txt @@ -1649,6 +1649,7 @@ MNT_EXPIRE MNT_FORCE MODULE_INIT_IGNORE_MODVERSIONS MODULE_INIT_IGNORE_VERMAGIC +MODULE_INIT_COMPRESSED_FILE MON_1 MON_10 MON_11 diff --git a/src/unix/linux_like/android/mod.rs b/src/unix/linux_like/android/mod.rs index 6cc8051c243fb..da6dec0a46f11 100644 --- a/src/unix/linux_like/android/mod.rs +++ b/src/unix/linux_like/android/mod.rs @@ -2941,6 +2941,7 @@ pub const SIOCPROTOPRIVATE: ::c_ulong = 0x000089E0; // linux/module.h pub const MODULE_INIT_IGNORE_MODVERSIONS: ::c_uint = 0x0001; pub const MODULE_INIT_IGNORE_VERMAGIC: ::c_uint = 0x0002; +pub const MODULE_INIT_COMPRESSED_FILE: ::c_uint = 0x0004; // linux/net_tstamp.h pub const SOF_TIMESTAMPING_TX_HARDWARE: ::c_uint = 1 << 0; diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index 2bfd2fc145a97..8f9db4ac6f348 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -4519,6 +4519,7 @@ pub const RTNLGRP_STATS: ::c_uint = 0x24; // linux/module.h pub const MODULE_INIT_IGNORE_MODVERSIONS: ::c_uint = 0x0001; pub const MODULE_INIT_IGNORE_VERMAGIC: ::c_uint = 0x0002; +pub const MODULE_INIT_COMPRESSED_FILE: ::c_uint = 0x0004; // linux/net_tstamp.h pub const SOF_TIMESTAMPING_TX_HARDWARE: ::c_uint = 1 << 0;