aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_module.c
diff options
context:
space:
mode:
authorKa Ho Ng <khng@FreeBSD.org>2023-07-07 04:21:01 +0000
committerKa Ho Ng <khng@FreeBSD.org>2023-07-07 04:22:59 +0000
commit034c0856018ccf73c0f2d6140825f3edf43f47b2 (patch)
tree41231a0a8fdd3c02229ea92872d6ccd8f69a9617 /sys/kern/kern_module.c
parent97f14168f21f7d618c413946b83a2a6adfc6527a (diff)
downloadsrc-034c0856018ccf73c0f2d6140825f3edf43f47b2.tar.gz
src-034c0856018ccf73c0f2d6140825f3edf43f47b2.zip
Diffstat (limited to 'sys/kern/kern_module.c')
-rw-r--r--sys/kern/kern_module.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/kern_module.c b/sys/kern/kern_module.c
index 40e47868481c..d4edc64a5ce4 100644
--- a/sys/kern/kern_module.c
+++ b/sys/kern/kern_module.c
@@ -520,10 +520,9 @@ freebsd32_modstat(struct thread *td, struct freebsd32_modstat_args *uap)
id = mod->id;
refs = mod->refs;
name = mod->name;
- CP(mod->data, data32, intval);
+ _Static_assert(sizeof(data32) == sizeof(data32.uintval),
+ "bad modspecific32_t size");
CP(mod->data, data32, uintval);
- CP(mod->data, data32, longval);
- CP(mod->data, data32, ulongval);
MOD_SUNLOCK;
stat32 = uap->stat;