diff options
author | phk <phk@FreeBSD.org> | 1995-11-20 12:08:08 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-11-20 12:08:08 +0000 |
commit | d8a08a76c99f2a2d2af55613a95b505889c39d25 (patch) | |
tree | 9dd3cd5dd282eab557183a48dcee4ab4f3c9c584 /sys/kern/kern_lkm.c | |
parent | 5bd563609a8d17c64e5644105de7e6850e1f77bf (diff) | |
download | FreeBSD-src-d8a08a76c99f2a2d2af55613a95b505889c39d25.zip FreeBSD-src-d8a08a76c99f2a2d2af55613a95b505889c39d25.tar.gz |
Close the "unused" warning for things in linker-sets.
This will also allow us to catch typos in the setname by running a
nm through a grep.
Diffstat (limited to 'sys/kern/kern_lkm.c')
-rw-r--r-- | sys/kern/kern_lkm.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/sys/kern/kern_lkm.c b/sys/kern/kern_lkm.c index 06f3e5b..ad78d28 100644 --- a/sys/kern/kern_lkm.c +++ b/sys/kern/kern_lkm.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: kern_lkm.c,v 1.17 1995/11/06 00:35:50 bde Exp $ + * $Id: kern_lkm.c,v 1.18 1995/11/09 09:43:32 bde Exp $ */ /* @@ -923,11 +923,15 @@ _lkm_exec(lkmtp, cmd) return(err); } -static const struct execsw lkm_exec_dummy = { NULL, "lkm" }; -TEXT_SET(execsw_set, lkm_exec_dummy); -TEXT_SET(execsw_set, lkm_exec_dummy); -TEXT_SET(execsw_set, lkm_exec_dummy); -TEXT_SET(execsw_set, lkm_exec_dummy); +/* XXX: This is bogus. we should find a better method RSN! */ +static const struct execsw lkm_exec_dummy1 = { NULL, "lkm" }; +static const struct execsw lkm_exec_dummy2 = { NULL, "lkm" }; +static const struct execsw lkm_exec_dummy3 = { NULL, "lkm" }; +static const struct execsw lkm_exec_dummy4 = { NULL, "lkm" }; +TEXT_SET(execsw_set, lkm_exec_dummy1); +TEXT_SET(execsw_set, lkm_exec_dummy2); +TEXT_SET(execsw_set, lkm_exec_dummy3); +TEXT_SET(execsw_set, lkm_exec_dummy4); /* * This code handles the per-module type "wiring-in" of loadable modules |