Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Oct 2023 11:48:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 274388] Several modules declare dependency on non-existent 'g_flashmap' kmod
Message-ID:  <bug-274388-227-58s4LSkj7R@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-274388-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-274388-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274388

--- Comment #3 from Colin Gordon <csgordon@fastmail.com> ---
I'm relatively new to working in the FreeBSD kernel, so it's quite possible
there's a subtlety in missing or some kind of module validation check in not
aware of that has broken. But the C code itself doesn't care about the
dependency declaration, so geom_flashmap itself is fine, but does declare a
module name that's not tied to the *filename* of the final kld, and kld loa=
ding
assumes the declared dependency name matches the filename, which is what fa=
ils.
That's why my local fix is to change the module declarations to match the
filename.

On amd64 it appears that both geom_flashmap and mmcsd are linked directly i=
nto
the kernel, so the kld loading code doesn't encounter the name mismatch.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-274388-227-58s4LSkj7R>