summaryrefslogtreecommitdiff
path: root/usr/src/uts
diff options
context:
space:
mode:
authorBayard Bell <buffer.g.overflow@gmail.com>2011-09-15 18:27:52 +0100
committerBayard Bell <buffer.g.overflow@gmail.com>2011-09-15 18:27:52 +0100
commit89b43686db1fe9681d80a7cf5662730cb9378cae (patch)
tree6febacd926efb6c58bf500d08334a48f0114afe3 /usr/src/uts
parentb5f3c6ffe7f93e6132a702a851a69b5ecd78c066 (diff)
downloadillumos-joyent-89b43686db1fe9681d80a7cf5662730cb9378cae.tar.gz
1073 migrate kernel modules from ancient _depends_on to true ELF dependencies
Reviewed by: Adam Leventhal <ahl@delphix.com> Reviewed by: Garrett D'Amore <garrett@nexenta.com> Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/uts')
-rw-r--r--usr/src/uts/Makefile.uts3
-rw-r--r--usr/src/uts/common/c2/audit_event.c4
-rw-r--r--usr/src/uts/common/cpr/cpr_mod.c3
-rw-r--r--usr/src/uts/common/disp/ia.c7
-rw-r--r--usr/src/uts/common/exec/aout/aout.c5
-rw-r--r--usr/src/uts/common/fs/autofs/auto_vfsops.c6
-rw-r--r--usr/src/uts/common/fs/cachefs/cachefs_module.c5
-rw-r--r--usr/src/uts/common/fs/hsfs/hsfs_vfsops.c3
-rw-r--r--usr/src/uts/common/fs/nfs/nfs_common.c7
-rw-r--r--usr/src/uts/common/fs/nfs/nfs_server.c3
-rw-r--r--usr/src/uts/common/fs/udfs/udf_vfsops.c5
-rw-r--r--usr/src/uts/common/gssapi/gssdmod.c5
-rw-r--r--usr/src/uts/common/gssapi/mechs/dummy/dmech.c5
-rw-r--r--usr/src/uts/common/gssapi/mechs/krb5/krb5mech.c5
-rw-r--r--usr/src/uts/common/inet/nca/ncaddi.c5
-rw-r--r--usr/src/uts/common/io/emul64.c3
-rw-r--r--usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c9
-rw-r--r--usr/src/uts/common/io/lvm/hotspares/hotspares.c4
-rw-r--r--usr/src/uts/common/io/lvm/md/md.c4
-rw-r--r--usr/src/uts/common/io/lvm/mirror/mirror.c2
-rw-r--r--usr/src/uts/common/io/lvm/notify/md_notify.c4
-rw-r--r--usr/src/uts/common/io/lvm/raid/raid.c2
-rw-r--r--usr/src/uts/common/io/lvm/softpart/sp.c2
-rw-r--r--usr/src/uts/common/io/lvm/stripe/stripe.c2
-rw-r--r--usr/src/uts/common/io/lvm/trans/mdtrans.c2
-rw-r--r--usr/src/uts/common/io/mega_sas/megaraid_sas.c3
-rw-r--r--usr/src/uts/common/io/mr_sas/mr_sas.c3
-rw-r--r--usr/src/uts/common/io/ppp/spppasyn/spppasyn_mod.c17
-rw-r--r--usr/src/uts/common/io/ppp/spppcomp/spppcomp_mod.c13
-rw-r--r--usr/src/uts/common/io/scsi/targets/sd.c3
-rw-r--r--usr/src/uts/common/io/scsi/targets/ses.c2
-rw-r--r--usr/src/uts/common/io/scsi/targets/st.c2
-rw-r--r--usr/src/uts/common/io/tty_pts.c3
-rw-r--r--usr/src/uts/common/pcmcia/nexus/pcmcia.c2
-rw-r--r--usr/src/uts/common/rpc/sec/secmod.c5
-rw-r--r--usr/src/uts/common/rpc/sec_gss/rpcsec_gssmod.c5
-rw-r--r--usr/src/uts/common/syscall/pipe.c5
-rw-r--r--usr/src/uts/i86pc/acpippm/Makefile8
-rw-r--r--usr/src/uts/i86pc/cpr/Makefile9
-rw-r--r--usr/src/uts/i86pc/io/ppm/acpippm.c3
-rw-r--r--usr/src/uts/i86pc/io/rootnex.c5
-rw-r--r--usr/src/uts/i86pc/rootnex/Makefile5
-rw-r--r--usr/src/uts/intel/IA/Makefile8
-rw-r--r--usr/src/uts/intel/amr/Makefile8
-rw-r--r--usr/src/uts/intel/ata/Makefile6
-rw-r--r--usr/src/uts/intel/autofs/Makefile8
-rw-r--r--usr/src/uts/intel/c2audit/Makefile6
-rw-r--r--usr/src/uts/intel/cachefs/Makefile8
-rw-r--r--usr/src/uts/intel/emlxs/Makefile7
-rw-r--r--usr/src/uts/intel/emul64/Makefile8
-rw-r--r--usr/src/uts/intel/hsfs/Makefile8
-rw-r--r--usr/src/uts/intel/intel_nb5000/Makefile6
-rw-r--r--usr/src/uts/intel/io/amr/amr.c2
-rw-r--r--usr/src/uts/intel/io/dktp/controller/ata/atapi.c6
-rw-r--r--usr/src/uts/intel/io/intel_nb5000/intel_nbdrv.c3
-rw-r--r--usr/src/uts/intel/kgssapi/Makefile8
-rw-r--r--usr/src/uts/intel/kmech_dummy/Makefile8
-rw-r--r--usr/src/uts/intel/kmech_krb5/Makefile8
-rw-r--r--usr/src/uts/intel/md/Makefile8
-rw-r--r--usr/src/uts/intel/md_hotspares/Makefile8
-rw-r--r--usr/src/uts/intel/md_mirror/Makefile8
-rw-r--r--usr/src/uts/intel/md_notify/Makefile8
-rw-r--r--usr/src/uts/intel/md_raid/Makefile8
-rw-r--r--usr/src/uts/intel/md_sp/Makefile8
-rw-r--r--usr/src/uts/intel/md_stripe/Makefile8
-rw-r--r--usr/src/uts/intel/md_trans/Makefile8
-rw-r--r--usr/src/uts/intel/nfs/Makefile8
-rw-r--r--usr/src/uts/intel/pipe/Makefile8
-rw-r--r--usr/src/uts/intel/ptsl/Makefile8
-rw-r--r--usr/src/uts/intel/rpcsec/Makefile8
-rw-r--r--usr/src/uts/intel/rpcsec_gss/Makefile8
-rw-r--r--usr/src/uts/intel/sd/Makefile8
-rw-r--r--usr/src/uts/intel/ses/Makefile8
-rw-r--r--usr/src/uts/intel/spppasyn/Makefile8
-rw-r--r--usr/src/uts/intel/spppcomp/Makefile8
-rw-r--r--usr/src/uts/intel/st/Makefile8
-rw-r--r--usr/src/uts/intel/udfs/Makefile8
-rw-r--r--usr/src/uts/sparc/IA/Makefile8
-rw-r--r--usr/src/uts/sparc/aoutexec/Makefile8
-rw-r--r--usr/src/uts/sparc/autofs/Makefile8
-rw-r--r--usr/src/uts/sparc/c2audit/Makefile6
-rw-r--r--usr/src/uts/sparc/cachefs/Makefile8
-rw-r--r--usr/src/uts/sparc/emlxs/Makefile3
-rw-r--r--usr/src/uts/sparc/emul64/Makefile8
-rw-r--r--usr/src/uts/sparc/fas/Makefile8
-rw-r--r--usr/src/uts/sparc/fcode/Makefile8
-rw-r--r--usr/src/uts/sparc/fcpci/Makefile8
-rw-r--r--usr/src/uts/sparc/hsfs/Makefile8
-rw-r--r--usr/src/uts/sparc/kgssapi/Makefile8
-rw-r--r--usr/src/uts/sparc/kmech_dummy/Makefile8
-rw-r--r--usr/src/uts/sparc/kmech_krb5/Makefile8
-rw-r--r--usr/src/uts/sparc/md/Makefile8
-rw-r--r--usr/src/uts/sparc/md_hotspares/Makefile8
-rw-r--r--usr/src/uts/sparc/md_mirror/Makefile8
-rw-r--r--usr/src/uts/sparc/md_notify/Makefile8
-rw-r--r--usr/src/uts/sparc/md_raid/Makefile8
-rw-r--r--usr/src/uts/sparc/md_sp/Makefile8
-rw-r--r--usr/src/uts/sparc/md_stripe/Makefile8
-rw-r--r--usr/src/uts/sparc/md_trans/Makefile8
-rw-r--r--usr/src/uts/sparc/nfs/Makefile8
-rw-r--r--usr/src/uts/sparc/pipe/Makefile8
-rw-r--r--usr/src/uts/sparc/ptsl/Makefile8
-rw-r--r--usr/src/uts/sparc/rpcsec/Makefile8
-rw-r--r--usr/src/uts/sparc/rpcsec_gss/Makefile8
-rw-r--r--usr/src/uts/sparc/sd/Makefile8
-rw-r--r--usr/src/uts/sparc/ses/Makefile8
-rw-r--r--usr/src/uts/sparc/spppasyn/Makefile8
-rw-r--r--usr/src/uts/sparc/spppcomp/Makefile8
-rw-r--r--usr/src/uts/sparc/ssd/Makefile8
-rw-r--r--usr/src/uts/sparc/st/Makefile8
-rw-r--r--usr/src/uts/sparc/udfs/Makefile8
-rw-r--r--usr/src/uts/sun/io/scsi/adapters/fas.c3
-rw-r--r--usr/src/uts/sun/io/scsi/adapters/sf.c4
-rw-r--r--usr/src/uts/sun/io/zs_hdlc.c4
-rw-r--r--usr/src/uts/sun4/io/efcode/fcode.c5
-rw-r--r--usr/src/uts/sun4/io/efcode/fcpci.c5
-rw-r--r--usr/src/uts/sun4u/cpr/Makefile8
-rw-r--r--usr/src/uts/sun4u/montecarlo/io/pcf8574_nct.c3
-rw-r--r--usr/src/uts/sun4u/montecarlo/io/pcf8591_nct.c3
-rw-r--r--usr/src/uts/sun4u/sf/Makefile8
-rw-r--r--usr/src/uts/sun4u/starfire/cvcredir/Makefile8
-rw-r--r--usr/src/uts/sun4u/starfire/cvcredir/cvcredir.c3
-rw-r--r--usr/src/uts/sun4u/starfire/io/drmach.c9
-rw-r--r--usr/src/uts/sun4u/starfire/ngdrmach/Makefile8
-rw-r--r--usr/src/uts/sun4u/sunfire/ac/Makefile8
-rw-r--r--usr/src/uts/sun4u/sunfire/environ/Makefile8
-rw-r--r--usr/src/uts/sun4u/sunfire/io/ac.c5
-rw-r--r--usr/src/uts/sun4u/sunfire/io/environ.c5
-rw-r--r--usr/src/uts/sun4u/sunfire/io/simmstat.c5
-rw-r--r--usr/src/uts/sun4u/sunfire/io/sram.c5
-rw-r--r--usr/src/uts/sun4u/sunfire/io/sysctrl.c5
-rw-r--r--usr/src/uts/sun4u/sunfire/simmstat/Makefile8
-rw-r--r--usr/src/uts/sun4u/sunfire/sram/Makefile8
-rw-r--r--usr/src/uts/sun4u/sunfire/sysctrl/Makefile8
-rw-r--r--usr/src/uts/sun4u/zsh/Makefile8
135 files changed, 545 insertions, 322 deletions
diff --git a/usr/src/uts/Makefile.uts b/usr/src/uts/Makefile.uts
index bc90d534a2..aff16d477d 100644
--- a/usr/src/uts/Makefile.uts
+++ b/usr/src/uts/Makefile.uts
@@ -21,6 +21,7 @@
#
# Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
#
@@ -150,7 +151,7 @@ LHEAD = $(ECHO) "\n$@";
# Note: egrep returns "failure" if there are no matches, which is
# exactly the opposite of what we need.
-LGREP.2 = if egrep -v ' (_init|_fini|_info|_depends_on) '; then false; else true; fi
+LGREP.2 = if egrep -v ' (_init|_fini|_info) '; then false; else true; fi
LTAIL =
diff --git a/usr/src/uts/common/c2/audit_event.c b/usr/src/uts/common/c2/audit_event.c
index 81ee3e7f69..3ca2c75070 100644
--- a/usr/src/uts/common/c2/audit_event.c
+++ b/usr/src/uts/common/c2/audit_event.c
@@ -21,6 +21,7 @@
/*
* Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
/*
@@ -77,9 +78,6 @@
#include <sys/ddi.h>
#include <sys/port_impl.h>
-
-char _depends_on[] = "fs/sockfs";
-
static au_event_t aui_fchownat(au_event_t);
static au_event_t aui_fchmodat(au_event_t);
static au_event_t aui_open(au_event_t);
diff --git a/usr/src/uts/common/cpr/cpr_mod.c b/usr/src/uts/common/cpr/cpr_mod.c
index 901d21bceb..23f9d69f48 100644
--- a/usr/src/uts/common/cpr/cpr_mod.c
+++ b/usr/src/uts/common/cpr/cpr_mod.c
@@ -21,6 +21,7 @@
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
/*
@@ -66,8 +67,6 @@ static struct modlinkage modlinkage = {
MODREV_1, (void *)&modlmisc, NULL
};
-char _depends_on[] = "misc/bootdev"; /* i_devname_to_promname() */
-
int cpr_reusable_mode;
kmutex_t cpr_slock; /* cpr serial lock */
diff --git a/usr/src/uts/common/disp/ia.c b/usr/src/uts/common/disp/ia.c
index 982035d9b9..63ddbe5485 100644
--- a/usr/src/uts/common/disp/ia.c
+++ b/usr/src/uts/common/disp/ia.c
@@ -21,10 +21,9 @@
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/types.h>
#include <sys/param.h>
#include <sys/class.h>
@@ -50,10 +49,6 @@ static struct modlinkage modlinkage = {
MODREV_1, (void *)&modlsched, NULL
};
-#ifndef lint
-char _depends_on[] = "sched/TS";
-#endif
-
int
_init()
{
diff --git a/usr/src/uts/common/exec/aout/aout.c b/usr/src/uts/common/exec/aout/aout.c
index 56f890bfab..fc45bd9544 100644
--- a/usr/src/uts/common/exec/aout/aout.c
+++ b/usr/src/uts/common/exec/aout/aout.c
@@ -21,10 +21,9 @@
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/types.h>
#include <sys/param.h>
#include <sys/systm.h>
@@ -65,8 +64,6 @@ extern int elf32exec(vnode_t *, execa_t *, uarg_t *, intpdata_t *, int,
extern int elf32core(vnode_t *, proc_t *, cred_t *, rlim64_t, int,
core_content_t);
-char _depends_on[] = "exec/elfexec";
-
static struct execsw nesw = {
aout_nmagicstr,
2,
diff --git a/usr/src/uts/common/fs/autofs/auto_vfsops.c b/usr/src/uts/common/fs/autofs/auto_vfsops.c
index 52c0368dda..f8c6169d47 100644
--- a/usr/src/uts/common/fs/autofs/auto_vfsops.c
+++ b/usr/src/uts/common/fs/autofs/auto_vfsops.c
@@ -20,6 +20,7 @@
*/
/*
* Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
#include <sys/param.h>
@@ -109,11 +110,6 @@ static struct modlinkage modlinkage = {
};
/*
- * There are not enough stubs for rpcmod so we must force load it
- */
-char _depends_on[] = "strmod/rpcmod misc/rpcsec fs/mntfs";
-
-/*
* This is the module initialization routine.
*/
int
diff --git a/usr/src/uts/common/fs/cachefs/cachefs_module.c b/usr/src/uts/common/fs/cachefs/cachefs_module.c
index 5e68d9f4ce..12eeb2b837 100644
--- a/usr/src/uts/common/fs/cachefs/cachefs_module.c
+++ b/usr/src/uts/common/fs/cachefs/cachefs_module.c
@@ -22,10 +22,9 @@
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/errno.h>
#include <sys/param.h>
#include <sys/types.h>
@@ -89,8 +88,6 @@ static struct modlinkage modlinkage = {
MODREV_1, (void *)&modlfs, NULL
};
-char _depends_on[] = "strmod/rpcmod";
-
int
_init(void)
{
diff --git a/usr/src/uts/common/fs/hsfs/hsfs_vfsops.c b/usr/src/uts/common/fs/hsfs/hsfs_vfsops.c
index 058d6925e3..9b11f3bddf 100644
--- a/usr/src/uts/common/fs/hsfs/hsfs_vfsops.c
+++ b/usr/src/uts/common/fs/hsfs/hsfs_vfsops.c
@@ -20,6 +20,7 @@
*/
/*
* Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
/*
@@ -160,8 +161,6 @@ static struct modlinkage modlinkage = {
MODREV_1, (void *)&modlfs, NULL
};
-char _depends_on[] = "fs/specfs";
-
extern void hsched_init_caches(void);
extern void hsched_fini_caches(void);
diff --git a/usr/src/uts/common/fs/nfs/nfs_common.c b/usr/src/uts/common/fs/nfs/nfs_common.c
index 5588a511c8..16a467e64c 100644
--- a/usr/src/uts/common/fs/nfs/nfs_common.c
+++ b/usr/src/uts/common/fs/nfs/nfs_common.c
@@ -20,6 +20,7 @@
*/
/*
* Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
/*
@@ -195,12 +196,6 @@ static struct modlinkage_big modlinkage = {
};
/*
- * specfs - for getfsname only??
- * rpcmod - too many symbols to build stubs for them all
- */
-char _depends_on[] = "fs/specfs strmod/rpcmod misc/rpcsec";
-
-/*
* This routine is invoked automatically when the kernel module
* containing this routine is loaded. This allows module specific
* initialization to be done when the module is loaded.
diff --git a/usr/src/uts/common/fs/nfs/nfs_server.c b/usr/src/uts/common/fs/nfs/nfs_server.c
index 71e068887a..ad2fed01dc 100644
--- a/usr/src/uts/common/fs/nfs/nfs_server.c
+++ b/usr/src/uts/common/fs/nfs/nfs_server.c
@@ -20,6 +20,7 @@
*/
/*
* Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
/*
@@ -103,8 +104,6 @@ static struct modlinkage modlinkage = {
MODREV_1, (void *)&modlmisc, NULL
};
-char _depends_on[] = "misc/klmmod";
-
kmem_cache_t *nfs_xuio_cache;
int nfs_loaned_buffers = 0;
diff --git a/usr/src/uts/common/fs/udfs/udf_vfsops.c b/usr/src/uts/common/fs/udfs/udf_vfsops.c
index bc8ca1096d..479898fe9c 100644
--- a/usr/src/uts/common/fs/udfs/udf_vfsops.c
+++ b/usr/src/uts/common/fs/udfs/udf_vfsops.c
@@ -21,10 +21,9 @@
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/types.h>
#include <sys/t_lock.h>
#include <sys/param.h>
@@ -144,8 +143,6 @@ static struct modlinkage modlinkage = {
MODREV_1, (void *)&modlfs, NULL
};
-char _depends_on[] = "fs/specfs";
-
int32_t udf_fstype = -1;
int
diff --git a/usr/src/uts/common/gssapi/gssdmod.c b/usr/src/uts/common/gssapi/gssdmod.c
index f47ae5c297..e41b44088b 100644
--- a/usr/src/uts/common/gssapi/gssdmod.c
+++ b/usr/src/uts/common/gssapi/gssdmod.c
@@ -22,17 +22,14 @@
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/types.h>
#include <sys/modctl.h>
#include <sys/errno.h>
#include <gssapi/kgssapi_defs.h>
-char _depends_on[] = "strmod/rpcmod misc/rpcsec misc/tlimod";
-
static struct modlmisc modlmisc = {
&mod_miscops, "in-kernel GSSAPI"
};
diff --git a/usr/src/uts/common/gssapi/mechs/dummy/dmech.c b/usr/src/uts/common/gssapi/mechs/dummy/dmech.c
index 9adf29bc40..04f0949d24 100644
--- a/usr/src/uts/common/gssapi/mechs/dummy/dmech.c
+++ b/usr/src/uts/common/gssapi/mechs/dummy/dmech.c
@@ -22,10 +22,9 @@
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* A module that implements a dummy security mechanism.
* It's mainly used to test GSS-API application. Multiple tokens
@@ -33,8 +32,6 @@
* specified through dummy_mech.conf located in /etc.
*/
-char _depends_on[] = "misc/kgssapi";
-
#include <sys/types.h>
#include <sys/modctl.h>
#include <sys/errno.h>
diff --git a/usr/src/uts/common/gssapi/mechs/krb5/krb5mech.c b/usr/src/uts/common/gssapi/mechs/krb5/krb5mech.c
index cd93a6a8fb..00a8d7be18 100644
--- a/usr/src/uts/common/gssapi/mechs/krb5/krb5mech.c
+++ b/usr/src/uts/common/gssapi/mechs/krb5/krb5mech.c
@@ -21,15 +21,12 @@
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*
* A module for Kerberos V5 security mechanism.
*
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-char _depends_on[] = "misc/kgssapi crypto/md5";
-
#include <sys/types.h>
#include <sys/modctl.h>
#include <sys/errno.h>
diff --git a/usr/src/uts/common/inet/nca/ncaddi.c b/usr/src/uts/common/inet/nca/ncaddi.c
index 737f16775f..233fc4e5e3 100644
--- a/usr/src/uts/common/inet/nca/ncaddi.c
+++ b/usr/src/uts/common/inet/nca/ncaddi.c
@@ -21,10 +21,9 @@
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/types.h>
#include <sys/conf.h>
#include <sys/modctl.h>
@@ -39,8 +38,6 @@
#include "ncaconf.h"
-char _depends_on[] = "fs/sockfs drv/ip";
-
extern caddr_t nca_g_nd; /* Head of 'named dispatch' variable list */
#define INET_NAME "nca"
diff --git a/usr/src/uts/common/io/emul64.c b/usr/src/uts/common/io/emul64.c
index f5e5166223..e8d18d109f 100644
--- a/usr/src/uts/common/io/emul64.c
+++ b/usr/src/uts/common/io/emul64.c
@@ -21,6 +21,7 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
@@ -204,8 +205,6 @@ static struct dev_ops emul64_ops = {
ddi_quiesce_not_needed, /* quiesce */
};
-char _depends_on[] = "misc/scsi";
-
static struct modldrv modldrv = {
&mod_driverops, /* module type - driver */
"emul64 SCSI Host Bus Adapter", /* module name */
diff --git a/usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c b/usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
index d8cb82076d..695bf6a712 100644
--- a/usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
+++ b/usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
@@ -22,6 +22,7 @@
/*
* Copyright 2010 Emulex. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
@@ -384,14 +385,6 @@ static fc_fca_tran_t emlxs_fca_tran = {
#endif /* EMLXS_MODREV2 */
/*
- * This is needed when the module gets loaded by the kernel
- * so ddi library calls get resolved.
- */
-#ifndef MODSYM_SUPPORT
-char _depends_on[] = "misc/fctl";
-#endif /* MODSYM_SUPPORT */
-
-/*
* state pointer which the implementation uses as a place to
* hang a set of per-driver structures;
*
diff --git a/usr/src/uts/common/io/lvm/hotspares/hotspares.c b/usr/src/uts/common/io/lvm/hotspares/hotspares.c
index 59251a571f..13ce78287d 100644
--- a/usr/src/uts/common/io/lvm/hotspares/hotspares.c
+++ b/usr/src/uts/common/io/lvm/hotspares/hotspares.c
@@ -21,10 +21,9 @@
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/conf.h>
@@ -52,7 +51,6 @@
md_ops_t hotspares_md_ops;
#ifndef lint
-char _depends_on[] = "drv/md";
md_ops_t *md_interface_ops = &hotspares_md_ops;
#endif
diff --git a/usr/src/uts/common/io/lvm/md/md.c b/usr/src/uts/common/io/lvm/md/md.c
index 89a329e1b9..4fcd89708a 100644
--- a/usr/src/uts/common/io/lvm/md/md.c
+++ b/usr/src/uts/common/io/lvm/md/md.c
@@ -21,6 +21,7 @@
/*
* Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
/*
@@ -75,9 +76,6 @@
#include <sys/priv_names.h>
#include <sys/modhash.h>
-#ifndef lint
-char _depends_on[] = "strmod/rpcmod";
-#endif /* lint */
int md_init_debug = 0; /* module binding debug */
/*
diff --git a/usr/src/uts/common/io/lvm/mirror/mirror.c b/usr/src/uts/common/io/lvm/mirror/mirror.c
index 121a8cf33c..e138fe2f64 100644
--- a/usr/src/uts/common/io/lvm/mirror/mirror.c
+++ b/usr/src/uts/common/io/lvm/mirror/mirror.c
@@ -21,6 +21,7 @@
/*
* Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
#include <sys/param.h>
@@ -60,7 +61,6 @@
md_ops_t mirror_md_ops;
#ifndef lint
-char _depends_on[] = "drv/md";
md_ops_t *md_interface_ops = &mirror_md_ops;
#endif
diff --git a/usr/src/uts/common/io/lvm/notify/md_notify.c b/usr/src/uts/common/io/lvm/notify/md_notify.c
index a96b201887..693793f285 100644
--- a/usr/src/uts/common/io/lvm/notify/md_notify.c
+++ b/usr/src/uts/common/io/lvm/notify/md_notify.c
@@ -21,10 +21,9 @@
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/systm.h>
#include <sys/cmn_err.h>
#include <sys/errno.h>
@@ -37,7 +36,6 @@
md_ops_t event_md_ops;
#ifndef lint
-char _depends_on[] = "drv/md";
md_ops_t *md_interface_ops = &event_md_ops;
#endif
diff --git a/usr/src/uts/common/io/lvm/raid/raid.c b/usr/src/uts/common/io/lvm/raid/raid.c
index 2240e46aa9..940a3e99df 100644
--- a/usr/src/uts/common/io/lvm/raid/raid.c
+++ b/usr/src/uts/common/io/lvm/raid/raid.c
@@ -22,6 +22,7 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
/*
@@ -75,7 +76,6 @@
md_ops_t raid_md_ops;
#ifndef lint
-char _depends_on[] = "drv/md";
md_ops_t *md_interface_ops = &raid_md_ops;
#endif /* lint */
diff --git a/usr/src/uts/common/io/lvm/softpart/sp.c b/usr/src/uts/common/io/lvm/softpart/sp.c
index 1dd17b5b5d..0ffe12a33e 100644
--- a/usr/src/uts/common/io/lvm/softpart/sp.c
+++ b/usr/src/uts/common/io/lvm/softpart/sp.c
@@ -22,6 +22,7 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
/*
@@ -103,7 +104,6 @@
md_ops_t sp_md_ops;
#ifndef lint
-char _depends_on[] = "drv/md";
md_ops_t *md_interface_ops = &sp_md_ops;
#endif
diff --git a/usr/src/uts/common/io/lvm/stripe/stripe.c b/usr/src/uts/common/io/lvm/stripe/stripe.c
index cfc7d6ddcf..79c9590974 100644
--- a/usr/src/uts/common/io/lvm/stripe/stripe.c
+++ b/usr/src/uts/common/io/lvm/stripe/stripe.c
@@ -21,6 +21,7 @@
/*
* Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
#include <sys/param.h>
@@ -55,7 +56,6 @@
md_ops_t stripe_md_ops;
#ifndef lint
-char _depends_on[] = "drv/md";
md_ops_t *md_interface_ops = &stripe_md_ops;
#endif
diff --git a/usr/src/uts/common/io/lvm/trans/mdtrans.c b/usr/src/uts/common/io/lvm/trans/mdtrans.c
index 75c8cb3643..a8a4cb8822 100644
--- a/usr/src/uts/common/io/lvm/trans/mdtrans.c
+++ b/usr/src/uts/common/io/lvm/trans/mdtrans.c
@@ -22,6 +22,7 @@
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
#include <sys/param.h>
@@ -57,7 +58,6 @@
md_ops_t trans_md_ops;
#ifndef lint
-char _depends_on[] = "drv/md fs/ufs";
md_ops_t *md_interface_ops = &trans_md_ops;
#endif /* lint */
diff --git a/usr/src/uts/common/io/mega_sas/megaraid_sas.c b/usr/src/uts/common/io/mega_sas/megaraid_sas.c
index 61515efcc0..a63e7e488a 100644
--- a/usr/src/uts/common/io/mega_sas/megaraid_sas.c
+++ b/usr/src/uts/common/io/mega_sas/megaraid_sas.c
@@ -41,6 +41,7 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
#include <sys/types.h>
@@ -142,8 +143,6 @@ static struct dev_ops megasas_ops = {
ddi_quiesce_not_supported, /* devo_quiesce */
};
-char _depends_on[] = "misc/scsi";
-
static struct modldrv modldrv = {
&mod_driverops, /* module type - driver */
MEGASAS_VERSION,
diff --git a/usr/src/uts/common/io/mr_sas/mr_sas.c b/usr/src/uts/common/io/mr_sas/mr_sas.c
index 2209f389f1..922fc78f8d 100644
--- a/usr/src/uts/common/io/mr_sas/mr_sas.c
+++ b/usr/src/uts/common/io/mr_sas/mr_sas.c
@@ -42,6 +42,7 @@
/*
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
#include <sys/types.h>
@@ -167,8 +168,6 @@ static struct dev_ops mrsas_ops = {
#endif /* __sparc */
};
-char _depends_on[] = "misc/scsi";
-
static struct modldrv modldrv = {
&mod_driverops, /* module type - driver */
MRSAS_VERSION,
diff --git a/usr/src/uts/common/io/ppp/spppasyn/spppasyn_mod.c b/usr/src/uts/common/io/ppp/spppasyn/spppasyn_mod.c
index 64fed2b252..e9ac3f021a 100644
--- a/usr/src/uts/common/io/ppp/spppasyn/spppasyn_mod.c
+++ b/usr/src/uts/common/io/ppp/spppasyn/spppasyn_mod.c
@@ -1,6 +1,20 @@
/*
* spppasyn_mod.c - modload support for PPP AHDLC STREAMS module
*
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
+ * Use is subject to license terms.
+ *
+ * CONTRIBUTOR MAKES NO REPRESENTATION OR WARRANTIES ABOUT THE SUITABILITY
+ * OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+ * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. CONTRIBUTOR SHALL NOT BE LIABLE
+ * FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
+ * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES
+ *
+ * Permission to use, copy, modify, and distribute this software and its
+ * documentation is hereby granted, provided that the above copyright
+ * notice appears in all copies.
+ *
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
@@ -41,8 +55,6 @@
* $Id: ppp_mod.c,v 1.3 1999/02/26 10:53:28 paulus Exp $
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/types.h>
#include <sys/conf.h>
#include <sys/ddi.h>
@@ -53,7 +65,6 @@
/*
* Globals for PPP AHDLC loadable module wrapper
*/
-char _depends_on[] = "drv/sppp"; /* we need some helper routines */
extern struct streamtab spppasyn_tab;
extern const char spppasyn_module_description[];
diff --git a/usr/src/uts/common/io/ppp/spppcomp/spppcomp_mod.c b/usr/src/uts/common/io/ppp/spppcomp/spppcomp_mod.c
index 887e2d5322..db1f052776 100644
--- a/usr/src/uts/common/io/ppp/spppcomp/spppcomp_mod.c
+++ b/usr/src/uts/common/io/ppp/spppcomp/spppcomp_mod.c
@@ -1,6 +1,15 @@
/*
* spppcomp_mod.c - modload support for PPP compression STREAMS module.
*
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
+ *
+ * CONTRIBUTOR MAKES NO REPRESENTATION OR WARRANTIES ABOUT THE SUITABILITY
+ * OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+ * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. CONTRIBUTOR SHALL NOT BE LIABLE
+ * FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
+ * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES
+ *
* Copyright (c) 2000 by Sun Microsystems, Inc.
* All rights reserved.
*
@@ -46,9 +55,6 @@
* performance and scalability.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-#define RCSID "$Id: spppcomp_mod.c,v 1.0 2000/05/08 01:10:12 masputra Exp $"
-
#include <sys/types.h>
#include <sys/syslog.h>
#include <sys/conf.h>
@@ -63,7 +69,6 @@
/*
* Globals for PPP compression loadable module wrapper
*/
-char _depends_on[] = "drv/sppp"; /* we need some helper routines */
extern struct streamtab spppcomp_tab;
extern const char spppcomp_module_description[];
diff --git a/usr/src/uts/common/io/scsi/targets/sd.c b/usr/src/uts/common/io/scsi/targets/sd.c
index fee26825ae..eb5146c668 100644
--- a/usr/src/uts/common/io/scsi/targets/sd.c
+++ b/usr/src/uts/common/io/scsi/targets/sd.c
@@ -24,6 +24,7 @@
*/
/*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
/*
* Copyright 2011 cyril.galibern@opensvc.com
@@ -78,10 +79,8 @@
*/
#if (defined(__fibre))
#define SD_MODULE_NAME "SCSI SSA/FCAL Disk Driver"
-char _depends_on[] = "misc/scsi misc/cmlb drv/fcp";
#else /* !__fibre */
#define SD_MODULE_NAME "SCSI Disk Driver"
-char _depends_on[] = "misc/scsi misc/cmlb";
#endif /* !__fibre */
/*
diff --git a/usr/src/uts/common/io/scsi/targets/ses.c b/usr/src/uts/common/io/scsi/targets/ses.c
index 0894043ec6..cc224296ed 100644
--- a/usr/src/uts/common/io/scsi/targets/ses.c
+++ b/usr/src/uts/common/io/scsi/targets/ses.c
@@ -23,6 +23,7 @@
*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
#include <sys/modctl.h>
@@ -179,7 +180,6 @@ static const char *fail_msg = "%stransport failed: reason '%s': %s";
/*
* autoconfiguration routines.
*/
-char _depends_on[] = "misc/scsi";
static struct modldrv modldrv = {
&mod_driverops,
diff --git a/usr/src/uts/common/io/scsi/targets/st.c b/usr/src/uts/common/io/scsi/targets/st.c
index c797ea120e..431fbaae56 100644
--- a/usr/src/uts/common/io/scsi/targets/st.c
+++ b/usr/src/uts/common/io/scsi/targets/st.c
@@ -21,6 +21,7 @@
/*
* Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
/*
@@ -686,7 +687,6 @@ _NOTE(DATA_READABLE_WITHOUT_LOCK(st_drivetype scsi_address))
/*
* autoconfiguration routines.
*/
-char _depends_on[] = "misc/scsi";
static struct modldrv modldrv = {
&mod_driverops, /* Type of module. This one is a driver */
diff --git a/usr/src/uts/common/io/tty_pts.c b/usr/src/uts/common/io/tty_pts.c
index 84bb7c6ada..1ea7fed353 100644
--- a/usr/src/uts/common/io/tty_pts.c
+++ b/usr/src/uts/common/io/tty_pts.c
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -134,8 +135,6 @@ DDI_DEFINE_STREAM_OPS(ptsl_ops, nulldev, nulldev,
#include <sys/errno.h>
#include <sys/modctl.h>
-char _depends_on[] = "drv/ptc";
-
/*
* Module linkage information for the kernel.
*/
diff --git a/usr/src/uts/common/pcmcia/nexus/pcmcia.c b/usr/src/uts/common/pcmcia/nexus/pcmcia.c
index 069c1897d4..3b08cbcc18 100644
--- a/usr/src/uts/common/pcmcia/nexus/pcmcia.c
+++ b/usr/src/uts/common/pcmcia/nexus/pcmcia.c
@@ -362,7 +362,7 @@ extern pri_t minclsyspri;
* the attach routine must make sure that everything needed is present
* including real hardware. The sequence of events is:
* attempt to load all adapter drivers
- * attempt to load Card Services (which _depends_on pcmcia)
+ * attempt to load Card Services
* initialize logical sockets
* report the nexus exists
*/
diff --git a/usr/src/uts/common/rpc/sec/secmod.c b/usr/src/uts/common/rpc/sec/secmod.c
index 13899480a0..46e472e90d 100644
--- a/usr/src/uts/common/rpc/sec/secmod.c
+++ b/usr/src/uts/common/rpc/sec/secmod.c
@@ -22,16 +22,13 @@
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
-#pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.7 */
-
#include <sys/types.h>
#include <sys/modctl.h>
#include <sys/errno.h>
-char _depends_on[] = "strmod/rpcmod misc/tlimod";
-
/*
* Module linkage information for the kernel.
*/
diff --git a/usr/src/uts/common/rpc/sec_gss/rpcsec_gssmod.c b/usr/src/uts/common/rpc/sec_gss/rpcsec_gssmod.c
index a852f31691..52494f77d1 100644
--- a/usr/src/uts/common/rpc/sec_gss/rpcsec_gssmod.c
+++ b/usr/src/uts/common/rpc/sec_gss/rpcsec_gssmod.c
@@ -22,16 +22,13 @@
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/types.h>
#include <sys/modctl.h>
#include <sys/errno.h>
-char _depends_on[] = "strmod/rpcmod misc/kgssapi";
-
/*
* Module linkage information for the kernel.
*/
diff --git a/usr/src/uts/common/syscall/pipe.c b/usr/src/uts/common/syscall/pipe.c
index 7721cd2764..a626b2364a 100644
--- a/usr/src/uts/common/syscall/pipe.c
+++ b/usr/src/uts/common/syscall/pipe.c
@@ -21,14 +21,13 @@
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
-#pragma ident "%Z%%M% %I% %E% SMI" /* from SVr4.0 1.11 */
-
#include <sys/types.h>
#include <sys/sysmacros.h>
#include <sys/param.h>
@@ -49,8 +48,6 @@
#include <sys/modctl.h>
#include <sys/syscall.h>
-char _depends_on[] = "fs/fifofs";
-
longlong_t pipe();
static struct sysent pipe_sysent = {
diff --git a/usr/src/uts/i86pc/acpippm/Makefile b/usr/src/uts/i86pc/acpippm/Makefile
index 2731469730..5844ddfca1 100644
--- a/usr/src/uts/i86pc/acpippm/Makefile
+++ b/usr/src/uts/i86pc/acpippm/Makefile
@@ -23,8 +23,7 @@
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the power managment
# module for the ACPI subsystem
@@ -65,6 +64,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
CFLAGS += $(CCVERBOSE)
#
+# Declare dependency on misc/acpica
+#
+LDFLAGS += -dy -N misc/acpica
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/i86pc/cpr/Makefile b/usr/src/uts/i86pc/cpr/Makefile
index 115b4d0800..7e07865e48 100644
--- a/usr/src/uts/i86pc/cpr/Makefile
+++ b/usr/src/uts/i86pc/cpr/Makefile
@@ -22,8 +22,7 @@
# uts/i86pc/cpr/Makefile
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the cpr misc kernel module.
#
@@ -55,9 +54,11 @@ ROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE)
include $(UTSBASE)/i86pc/Makefile.i86pc
#
-# Override defaults
+# bootdev required as per previous inline commenting referencing symbol
+# i_devname_to_promname(), which may only be necessary on SPARC. Removing
+# this symbol may be sufficient to remove depedency.
#
-LDFLAGS += -dy -N misc/acpica
+LDFLAGS += -dy -N misc/acpica -N misc/bootdev
#
# Define targets
diff --git a/usr/src/uts/i86pc/io/ppm/acpippm.c b/usr/src/uts/i86pc/io/ppm/acpippm.c
index f5c9004220..476be5fdfb 100644
--- a/usr/src/uts/i86pc/io/ppm/acpippm.c
+++ b/usr/src/uts/i86pc/io/ppm/acpippm.c
@@ -22,6 +22,7 @@
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
#include <sys/types.h>
@@ -139,8 +140,6 @@ static kmutex_t appm_lock;
/*
* S3 stuff:
*/
-char _depends_on[] = "misc/acpica";
-
extern int acpi_enter_sleepstate(s3a_t *);
extern int acpi_exit_sleepstate(s3a_t *);
diff --git a/usr/src/uts/i86pc/io/rootnex.c b/usr/src/uts/i86pc/io/rootnex.c
index c538d6d2b7..ab2ffb503e 100644
--- a/usr/src/uts/i86pc/io/rootnex.c
+++ b/usr/src/uts/i86pc/io/rootnex.c
@@ -23,6 +23,7 @@
*/
/*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
/*
@@ -167,10 +168,6 @@ typedef paddr_t rootnex_addr_t;
#define ROOTNEX_PADDR_TO_RBASE(pa) (pa)
#endif
-#if !defined(__xpv)
-char _depends_on[] = "misc/iommulib misc/acpica";
-#endif
-
static struct cb_ops rootnex_cb_ops = {
nodev, /* open */
nodev, /* close */
diff --git a/usr/src/uts/i86pc/rootnex/Makefile b/usr/src/uts/i86pc/rootnex/Makefile
index 8f7ea9f7f1..2ef85546b3 100644
--- a/usr/src/uts/i86pc/rootnex/Makefile
+++ b/usr/src/uts/i86pc/rootnex/Makefile
@@ -21,6 +21,7 @@
#
# uts/i86pc/rootnex/Makefile
# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
# Use is subject to license terms.
#
# This makefile drives the production of the rootnex driver
@@ -55,9 +56,9 @@ LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
#
-# Overrides.
+# Define dependencies on iommulib and acpica
#
-LDFLAGS += -dy
+LDFLAGS += -dy -N misc/iommulib -N misc/acpica
#
# For now, disable these lint checks; maintainers should endeavor
diff --git a/usr/src/uts/intel/IA/Makefile b/usr/src/uts/intel/IA/Makefile
index c76c8fb950..a8e23b88ff 100644
--- a/usr/src/uts/intel/IA/Makefile
+++ b/usr/src/uts/intel/IA/Makefile
@@ -24,8 +24,7 @@
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#pragma ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the IA scheduling class
# kernel module.
@@ -59,6 +58,11 @@ LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
+# Define dependency on TS
+#
+LDFLAGS += -dy -N sched/TS
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/intel/amr/Makefile b/usr/src/uts/intel/amr/Makefile
index cc29aca0e2..679408abfa 100644
--- a/usr/src/uts/intel/amr/Makefile
+++ b/usr/src/uts/intel/amr/Makefile
@@ -1,8 +1,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the amr driver kernel module.
#
@@ -47,6 +46,11 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
#
+# Depends on scsi
+#
+LDFLAGS += -dy -N misc/scsi
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/intel/ata/Makefile b/usr/src/uts/intel/ata/Makefile
index 769e734f50..ce2e3d5c81 100644
--- a/usr/src/uts/intel/ata/Makefile
+++ b/usr/src/uts/intel/ata/Makefile
@@ -22,6 +22,7 @@
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
#
# This makefile drives the production of the ata "drv"
@@ -72,6 +73,11 @@ INC_PATH += -I$(UTSBASE)/intel/io/dktp/hba/ghd
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
#
+# Depends on scsi
+#
+LDFLAGS += -dy -N misc/scsi
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/intel/autofs/Makefile b/usr/src/uts/intel/autofs/Makefile
index 5cb6e8be32..94c28816c9 100644
--- a/usr/src/uts/intel/autofs/Makefile
+++ b/usr/src/uts/intel/autofs/Makefile
@@ -23,8 +23,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the autofs file system
# kernel module.
@@ -59,6 +58,11 @@ LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK)
#
+# Define dependency on rpcmod, rpcsec, and mntfs
+#
+LDFLAGS += -dy -N strmod/rpcmod -N misc/rpcsec -N fs/mntfs
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/intel/c2audit/Makefile b/usr/src/uts/intel/c2audit/Makefile
index b30966392b..316e3a35ee 100644
--- a/usr/src/uts/intel/c2audit/Makefile
+++ b/usr/src/uts/intel/c2audit/Makefile
@@ -23,6 +23,7 @@
#
# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the c2audit driver kernel module.
#
@@ -55,6 +56,11 @@ LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
+# Define dependency on sockfs
+#
+LDFLAGS += -dy -N fs/sockfs
+
+#
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
diff --git a/usr/src/uts/intel/cachefs/Makefile b/usr/src/uts/intel/cachefs/Makefile
index e574646a0a..b1254fe1df 100644
--- a/usr/src/uts/intel/cachefs/Makefile
+++ b/usr/src/uts/intel/cachefs/Makefile
@@ -23,8 +23,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the cachefs file system
# kernel module.
@@ -58,6 +57,11 @@ LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
+# Define dependency on rpcmod
+#
+LDFLAGS += -dy -N strmod/rpcmod
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/intel/emlxs/Makefile b/usr/src/uts/intel/emlxs/Makefile
index e19aba8b62..637f65b402 100644
--- a/usr/src/uts/intel/emlxs/Makefile
+++ b/usr/src/uts/intel/emlxs/Makefile
@@ -21,6 +21,7 @@
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the emlxs driver kernel module.
#
@@ -73,8 +74,12 @@ INC_PATH += -I$(UTSBASE)/common/sys/fibre-channel/fca/emlxs
INC_PATH += -I$(UTSBASE)/common/sys/fibre-channel/impl
INC_PATH += -I$(UTSBASE)/common/sys/fibre-channel/ulp
+#
+# misc/fctl required because #ifdef MODSYM_LOAD code
+# triggered by -DS11; uses DDI calls to load FCA symbols
+#
LDFLAGS += -dy -Nmisc/md5 -Nmisc/sha1
-LDFLAGS += -Nmisc/bignum
+LDFLAGS += -Nmisc/bignum -Nmisc/fctl
#
# For now, disable these lint checks; maintainers should endeavor
diff --git a/usr/src/uts/intel/emul64/Makefile b/usr/src/uts/intel/emul64/Makefile
index fa08ef8d6e..565c57a367 100644
--- a/usr/src/uts/intel/emul64/Makefile
+++ b/usr/src/uts/intel/emul64/Makefile
@@ -20,8 +20,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the emul64 kernel
# driver to testing hotplugging operations
@@ -69,6 +68,11 @@ CFLAGS += $(CCVERBOSE)
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
#
+# Depends on scsi
+#
+LDFLAGS += -dy -N misc/scsi
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/intel/hsfs/Makefile b/usr/src/uts/intel/hsfs/Makefile
index ad91acc922..ea8c25f22e 100644
--- a/usr/src/uts/intel/hsfs/Makefile
+++ b/usr/src/uts/intel/hsfs/Makefile
@@ -23,8 +23,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the hsfs file system
# kernel module.
@@ -58,6 +57,11 @@ LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
+# Define dependency on specfs
+#
+LDFLAGS += -dy -N fs/specfs
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/intel/intel_nb5000/Makefile b/usr/src/uts/intel/intel_nb5000/Makefile
index 0e862eb9ac..ed3f586289 100644
--- a/usr/src/uts/intel/intel_nb5000/Makefile
+++ b/usr/src/uts/intel/intel_nb5000/Makefile
@@ -19,6 +19,7 @@
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
#
@@ -70,6 +71,11 @@ LINT_TARGET = $(LINT_MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
#
+# Depends on smbios
+#
+LDFLAGS += -dy -N drv/smbios
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/intel/io/amr/amr.c b/usr/src/uts/intel/io/amr/amr.c
index dfb47cb712..7026e4eba7 100644
--- a/usr/src/uts/intel/io/amr/amr.c
+++ b/usr/src/uts/intel/io/amr/amr.c
@@ -1,6 +1,7 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
/*
* Copyright (c) 1999,2000 Michael Smith
@@ -111,7 +112,6 @@ int amr_debug_var = 0;
/*
* driver interfaces
*/
-char _depends_on[] = "misc/scsi";
static uint_t amr_intr(caddr_t arg);
static void amr_done(struct amr_softs *softs);
diff --git a/usr/src/uts/intel/io/dktp/controller/ata/atapi.c b/usr/src/uts/intel/io/dktp/controller/ata/atapi.c
index e98ba68ef1..92b2da6445 100644
--- a/usr/src/uts/intel/io/dktp/controller/ata/atapi.c
+++ b/usr/src/uts/intel/io/dktp/controller/ata/atapi.c
@@ -22,6 +22,7 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
@@ -60,11 +61,6 @@ static void atapi_complete(ata_drv_t *ata_drvp, ata_pkt_t *ata_pktp,
static int atapi_id_update(ata_ctl_t *ata_ctlp, ata_drv_t *ata_drvp,
ata_pkt_t *ata_pktp);
-
-/* external dependencies */
-
-char _depends_on[] = "misc/scsi";
-
/*
* Local static data
*/
diff --git a/usr/src/uts/intel/io/intel_nb5000/intel_nbdrv.c b/usr/src/uts/intel/io/intel_nb5000/intel_nbdrv.c
index 08c15857b5..ce4f8919be 100644
--- a/usr/src/uts/intel/io/intel_nb5000/intel_nbdrv.c
+++ b/usr/src/uts/intel/io/intel_nb5000/intel_nbdrv.c
@@ -22,6 +22,7 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
#include <sys/types.h>
@@ -44,8 +45,6 @@
#include "nb_log.h"
#include "nb5000.h"
-char _depends_on[] = "drv/smbios";
-
nvlist_t *inb_mc_nvl;
krwlock_t inb_mc_lock;
diff --git a/usr/src/uts/intel/kgssapi/Makefile b/usr/src/uts/intel/kgssapi/Makefile
index cc9e3e8eb2..f9eed1a41e 100644
--- a/usr/src/uts/intel/kgssapi/Makefile
+++ b/usr/src/uts/intel/kgssapi/Makefile
@@ -23,8 +23,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the kgssapi kernel module.
#
@@ -56,6 +55,11 @@ LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_KGSS_DIR)
#
+# Define dependencies on rpcmod, rpcsec, and tlimod
+#
+LDFLAGS += -dy -N strmod/rpcmod -N misc/rpcsec -N misc/tlimod
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/intel/kmech_dummy/Makefile b/usr/src/uts/intel/kmech_dummy/Makefile
index 78354d4b91..417f32e2ad 100644
--- a/usr/src/uts/intel/kmech_dummy/Makefile
+++ b/usr/src/uts/intel/kmech_dummy/Makefile
@@ -24,8 +24,7 @@
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#pragma ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the kmech_dummy kernel module.
#
@@ -50,6 +49,11 @@ ROOTMODULE = $(ROOT_KGSS_DIR)/$(MODULE)
include $(UTSBASE)/intel/Makefile.intel
#
+# Define dependency on kgssapi
+#
+LDFLAGS += -dy -N misc/kgssapi
+
+#
# Define targets
#
ALL_TARGET = $(BINARY)
diff --git a/usr/src/uts/intel/kmech_krb5/Makefile b/usr/src/uts/intel/kmech_krb5/Makefile
index 984ab4d199..b1b63e5914 100644
--- a/usr/src/uts/intel/kmech_krb5/Makefile
+++ b/usr/src/uts/intel/kmech_krb5/Makefile
@@ -22,8 +22,7 @@
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the gl_kmech_krb5 kernel module.
@@ -56,6 +55,11 @@ LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
+# Defined kgssapi and md5 as depdencies
+#
+LDFLAGS += -dy -N misc/kgssapi -N misc/md5
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/intel/md/Makefile b/usr/src/uts/intel/md/Makefile
index 0605bdd41c..9c8fee7a19 100644
--- a/usr/src/uts/intel/md/Makefile
+++ b/usr/src/uts/intel/md/Makefile
@@ -22,8 +22,7 @@
# uts/intel/md/Makefile
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the md driver
#
@@ -72,6 +71,11 @@ LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
#
+# Depends on rpcmod
+#
+LDFLAGS += -dy -N strmod/rpcmod
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/intel/md_hotspares/Makefile b/usr/src/uts/intel/md_hotspares/Makefile
index 5dd009774c..61aa35b74b 100644
--- a/usr/src/uts/intel/md_hotspares/Makefile
+++ b/usr/src/uts/intel/md_hotspares/Makefile
@@ -23,8 +23,7 @@
# uts/intel/md_hotspares/Makefile
# Copyright (c) 1999, 2000 by Sun Microsystems, Inc.
# All rights reserved.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell.
#
# This makefile drives the production of the md_hotspares module
#
@@ -57,6 +56,11 @@ LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
+# Depends on md
+#
+LDFLAGS += -dy -N drv/md
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/intel/md_mirror/Makefile b/usr/src/uts/intel/md_mirror/Makefile
index 0e51e4cff3..a07d5b91f5 100644
--- a/usr/src/uts/intel/md_mirror/Makefile
+++ b/usr/src/uts/intel/md_mirror/Makefile
@@ -21,8 +21,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the md_mirror module
#
@@ -55,6 +54,11 @@ LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
+# Define dependency on md
+#
+LDFLAGS += -dy -N drv/md
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/intel/md_notify/Makefile b/usr/src/uts/intel/md_notify/Makefile
index 0a26648a4a..6fb1f8f9af 100644
--- a/usr/src/uts/intel/md_notify/Makefile
+++ b/usr/src/uts/intel/md_notify/Makefile
@@ -23,8 +23,7 @@
# uts/intel/md_notify/Makefile
# Copyright (c) 1999, 2000 by Sun Microsystems, Inc.
# All rights reserved.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the lvm notify module
#
@@ -57,6 +56,11 @@ LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
+# Depends on md
+#
+LDFLAGS += -dy -N drv/md
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/intel/md_raid/Makefile b/usr/src/uts/intel/md_raid/Makefile
index e5d8062d1e..2a52496d9a 100644
--- a/usr/src/uts/intel/md_raid/Makefile
+++ b/usr/src/uts/intel/md_raid/Makefile
@@ -22,8 +22,7 @@
# uts/intel/md_raid/Makefile
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the md_raid module
#
@@ -68,6 +67,11 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
#
+# Depends on md
+#
+LDFLAGS += -dy -N drv/md
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/intel/md_sp/Makefile b/usr/src/uts/intel/md_sp/Makefile
index bf7e8076a0..cf349c711b 100644
--- a/usr/src/uts/intel/md_sp/Makefile
+++ b/usr/src/uts/intel/md_sp/Makefile
@@ -22,8 +22,7 @@
# uts/intel/md_sp/Makefile
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the md_sp module
#
@@ -65,6 +64,11 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
#
+# Depends on md
+#
+LDFLAGS += -dy -N drv/md
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/intel/md_stripe/Makefile b/usr/src/uts/intel/md_stripe/Makefile
index 2bb32547fa..6c018bf3af 100644
--- a/usr/src/uts/intel/md_stripe/Makefile
+++ b/usr/src/uts/intel/md_stripe/Makefile
@@ -22,8 +22,7 @@
# uts/intel/md_stripe/Makefile
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the md_stripe module
#
@@ -68,6 +67,11 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
#
+# Depends on md
+#
+LDFLAGS += -dy -N drv/md
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/intel/md_trans/Makefile b/usr/src/uts/intel/md_trans/Makefile
index 143e93323a..8a6aeaa636 100644
--- a/usr/src/uts/intel/md_trans/Makefile
+++ b/usr/src/uts/intel/md_trans/Makefile
@@ -22,8 +22,7 @@
# uts/intel/md_trans/Makefile
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the md_trans module
#
@@ -64,6 +63,11 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
#
+# Depends on md & ufs
+#
+LDFLAGS += -dy -N drv/md -N fs/ufs
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/intel/nfs/Makefile b/usr/src/uts/intel/nfs/Makefile
index c7e3db9953..28d6ba3a2b 100644
--- a/usr/src/uts/intel/nfs/Makefile
+++ b/usr/src/uts/intel/nfs/Makefile
@@ -23,8 +23,7 @@
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the nfs file system
# kernel module.
@@ -66,6 +65,11 @@ $(MODSTUBS_O) := AS_CPPFLAGS += -DNFS_MODULE
CLEANFILES += $(MODSTUBS_O)
#
+# Define dependencies on specfs, rpcmod, and rpcsec
+#
+LDFLAGS += -dy -N fs/specfs -N strmod/rpcmod -N misc/rpcsec
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/intel/pipe/Makefile b/usr/src/uts/intel/pipe/Makefile
index 8364cad519..98020a0cb0 100644
--- a/usr/src/uts/intel/pipe/Makefile
+++ b/usr/src/uts/intel/pipe/Makefile
@@ -24,8 +24,7 @@
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#pragma ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the pipe syscall module.
#
@@ -58,6 +57,11 @@ LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
+# Define dependency on fifofs
+#
+LDFLAGS += -dy -N fs/fifofs
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/intel/ptsl/Makefile b/usr/src/uts/intel/ptsl/Makefile
index 38714c775f..49506c0ea8 100644
--- a/usr/src/uts/intel/ptsl/Makefile
+++ b/usr/src/uts/intel/ptsl/Makefile
@@ -23,8 +23,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the ptsl driver
#
@@ -66,6 +65,11 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
#
+# Depends on ptc
+#
+LDFLAGS += -dy -N drv/ptc
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/intel/rpcsec/Makefile b/usr/src/uts/intel/rpcsec/Makefile
index b1f4114001..fde53d6aed 100644
--- a/usr/src/uts/intel/rpcsec/Makefile
+++ b/usr/src/uts/intel/rpcsec/Makefile
@@ -23,8 +23,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the kernel rpcsec module.
#
@@ -56,6 +55,11 @@ LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
+# Define dependencies on rpcmod and tlimod
+#
+LDFLAGS += -dy -N strmod/rpcmod -N misc/tlimod
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/intel/rpcsec_gss/Makefile b/usr/src/uts/intel/rpcsec_gss/Makefile
index 2f41d97154..7f34da31c9 100644
--- a/usr/src/uts/intel/rpcsec_gss/Makefile
+++ b/usr/src/uts/intel/rpcsec_gss/Makefile
@@ -23,8 +23,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the kernel rpcsec module.
#
@@ -56,6 +55,11 @@ LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
+# Define dependency on rpcmod and kgssapi
+#
+LDFLAGS += -dy -N strmod/rpcmod -N misc/kgssapi
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/intel/sd/Makefile b/usr/src/uts/intel/sd/Makefile
index d15a46817f..067893854f 100644
--- a/usr/src/uts/intel/sd/Makefile
+++ b/usr/src/uts/intel/sd/Makefile
@@ -22,8 +22,7 @@
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the sd
# kernel module.
@@ -79,6 +78,11 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
#
+# Depends on scsi and cmlb
+#
+LDFLAGS += -dy -N misc/scsi -N misc/cmlb
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/intel/ses/Makefile b/usr/src/uts/intel/ses/Makefile
index 89cc5a426d..0e51fd521e 100644
--- a/usr/src/uts/intel/ses/Makefile
+++ b/usr/src/uts/intel/ses/Makefile
@@ -23,8 +23,7 @@
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the ses (SCSI enclosure
# services) driver kernel module.
@@ -71,6 +70,11 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
#
+# Depends on scsi
+#
+LDFLAGS += -dy -N misc/scsi
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/intel/spppasyn/Makefile b/usr/src/uts/intel/spppasyn/Makefile
index 51519da705..ecbd186207 100644
--- a/usr/src/uts/intel/spppasyn/Makefile
+++ b/usr/src/uts/intel/spppasyn/Makefile
@@ -23,8 +23,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the spppasyn STREAMS
# kernel module.
@@ -76,6 +75,11 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
#
+# Depends on sppp
+#
+LDFLAGS += -dy -N drv/sppp
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/intel/spppcomp/Makefile b/usr/src/uts/intel/spppcomp/Makefile
index 41cb9dc5e5..b97579b4aa 100644
--- a/usr/src/uts/intel/spppcomp/Makefile
+++ b/usr/src/uts/intel/spppcomp/Makefile
@@ -23,8 +23,7 @@
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the spppcomp STREAMS
# kernel module.
@@ -77,6 +76,11 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
#
+# Depends on sppp
+#
+LDFLAGS += -dy -N drv/sppp
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/intel/st/Makefile b/usr/src/uts/intel/st/Makefile
index 996bc01b09..e772736d09 100644
--- a/usr/src/uts/intel/st/Makefile
+++ b/usr/src/uts/intel/st/Makefile
@@ -22,8 +22,7 @@
# uts/intel/st/Makefile
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the st driver
# kernel module.
@@ -76,6 +75,11 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
#
+# Depends on scsi
+#
+LDFLAGS += -dy -N misc/scsi
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/intel/udfs/Makefile b/usr/src/uts/intel/udfs/Makefile
index 235ff96fd6..7f3baea29f 100644
--- a/usr/src/uts/intel/udfs/Makefile
+++ b/usr/src/uts/intel/udfs/Makefile
@@ -19,10 +19,9 @@
# CDDL HEADER END
#
#
-#ident "%Z%%M% %I% %E% SMI"
-#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the udfs file system
# kernel module.
@@ -63,6 +62,11 @@ $(MODSTUBS_O) := AS_CPPFLAGS += -DUDFS_MODULE
CLEANFILES += $(MODSTUBS_O)
#
+# Define dependency on specfs
+#
+LDFLAGS += -dy -N fs/specfs
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sparc/IA/Makefile b/usr/src/uts/sparc/IA/Makefile
index f206599438..c9fb876947 100644
--- a/usr/src/uts/sparc/IA/Makefile
+++ b/usr/src/uts/sparc/IA/Makefile
@@ -23,8 +23,7 @@
# uts/sparc/IA/Makefile
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the IA scheduling class
# kernel module.
@@ -63,6 +62,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
CFLAGS += $(CCVERBOSE)
#
+# Define dependency on TS
+#
+LDFLAGS += -dy -N sched/TS
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/sparc/aoutexec/Makefile b/usr/src/uts/sparc/aoutexec/Makefile
index ff374b7f23..cf30dcf77b 100644
--- a/usr/src/uts/sparc/aoutexec/Makefile
+++ b/usr/src/uts/sparc/aoutexec/Makefile
@@ -23,8 +23,7 @@
# uts/sparc/aoutexec/Makefile
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the aoutexec exec kernel
# module (binary compatibility).
@@ -63,6 +62,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
CFLAGS += $(CCVERBOSE)
#
+# Define dependency on elfexec
+#
+LDFLAGS += -dy -N exec/elfexec
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/sparc/autofs/Makefile b/usr/src/uts/sparc/autofs/Makefile
index 661b9ead06..1c3ad1c0fa 100644
--- a/usr/src/uts/sparc/autofs/Makefile
+++ b/usr/src/uts/sparc/autofs/Makefile
@@ -22,8 +22,7 @@
# uts/sparc/autofs/Makefile
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the
# autofs file system kernel module.
@@ -63,6 +62,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK)
CFLAGS += $(CCVERBOSE)
#
+# Define dependencies on rpmod, rpcsec, and mntfs
+#
+LDFLAGS += -dy -N strmod/rpcmod -N misc/rpcsec -N fs/mntfs
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sparc/c2audit/Makefile b/usr/src/uts/sparc/c2audit/Makefile
index 95a2df98bc..4b75b4db88 100644
--- a/usr/src/uts/sparc/c2audit/Makefile
+++ b/usr/src/uts/sparc/c2audit/Makefile
@@ -23,6 +23,7 @@
#
# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the c2audit driver kernel module.
#
@@ -60,6 +61,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
CFLAGS += $(CCVERBOSE)
#
+# Define dependency on sockfs
+#
+LDFLAGS += -dy -N fs/sockfs
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sparc/cachefs/Makefile b/usr/src/uts/sparc/cachefs/Makefile
index 08568dc058..f584865505 100644
--- a/usr/src/uts/sparc/cachefs/Makefile
+++ b/usr/src/uts/sparc/cachefs/Makefile
@@ -22,8 +22,7 @@
# uts/sparc/cachefs/Makefile
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the Cache file system
# kernel module.
@@ -62,6 +61,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
CFLAGS += $(CCVERBOSE)
#
+# Define dependency on rpcmod
+#
+LDFLAGS += -dy -N strmod/rpcmod
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sparc/emlxs/Makefile b/usr/src/uts/sparc/emlxs/Makefile
index 65ad0f11a7..351d9f934d 100644
--- a/usr/src/uts/sparc/emlxs/Makefile
+++ b/usr/src/uts/sparc/emlxs/Makefile
@@ -21,6 +21,7 @@
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the emlxs driver kernel module.
#
@@ -74,7 +75,7 @@ INC_PATH += -I$(UTSBASE)/common/sys/fibre-channel/impl
INC_PATH += -I$(UTSBASE)/common/sys/fibre-channel/ulp
LDFLAGS += -dy -Nmisc/md5 -Nmisc/sha1
-LDFLAGS += -Nmisc/bignum
+LDFLAGS += -Nmisc/bignum -Nmisc/fctl
#
# For now, disable these lint checks; maintainers should endeavor
diff --git a/usr/src/uts/sparc/emul64/Makefile b/usr/src/uts/sparc/emul64/Makefile
index b5945b8b90..cea352e91c 100644
--- a/usr/src/uts/sparc/emul64/Makefile
+++ b/usr/src/uts/sparc/emul64/Makefile
@@ -20,8 +20,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the emul64 kernel
# driver to testing hotplugging operations
@@ -62,6 +61,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
CFLAGS += $(CCVERBOSE)
#
+# Define dependency on scsi
+#
+LDFLAGS += -dy -N misc/scsi
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sparc/fas/Makefile b/usr/src/uts/sparc/fas/Makefile
index b2fde302f7..06b5cc8e38 100644
--- a/usr/src/uts/sparc/fas/Makefile
+++ b/usr/src/uts/sparc/fas/Makefile
@@ -23,12 +23,11 @@
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the fas driver kernel module.
#
# sparc architecture dependent
-#
-#ident "%Z%%M% %I% %E% SMI"
#
# Path to the base of the uts directory tree (usually /usr/src/uts).
@@ -64,6 +63,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
CFLAGS += $(CCVERBOSE)
#
+# Defines dependency on scsi
+#
+LDFLAGS += -dy -N misc/scsi
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sparc/fcode/Makefile b/usr/src/uts/sparc/fcode/Makefile
index 09e5ad00c5..6077d2646a 100644
--- a/usr/src/uts/sparc/fcode/Makefile
+++ b/usr/src/uts/sparc/fcode/Makefile
@@ -23,8 +23,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the fcode driver kernel module
#
@@ -76,6 +75,11 @@ CFLAGS += $(CCVERBOSE)
CFLAGS += -dalign
#
+# Define dependency on fcodem
+#
+LDFLAGS += -dy -N misc/fcodem
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/sparc/fcpci/Makefile b/usr/src/uts/sparc/fcpci/Makefile
index 5459084bf2..d491489be4 100644
--- a/usr/src/uts/sparc/fcpci/Makefile
+++ b/usr/src/uts/sparc/fcpci/Makefile
@@ -23,8 +23,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the fcpci kernel misc module
#
@@ -74,6 +73,11 @@ CFLAGS += $(CCVERBOSE)
CFLAGS += -dalign
#
+# Define dependency on fcodem and busra
+#
+LDFLAGS += -dy -N misc/fcodem -N misc/busra
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sparc/hsfs/Makefile b/usr/src/uts/sparc/hsfs/Makefile
index 8f6c85b3a2..7b3d8c6e79 100644
--- a/usr/src/uts/sparc/hsfs/Makefile
+++ b/usr/src/uts/sparc/hsfs/Makefile
@@ -22,8 +22,7 @@
# uts/sparc/hsfs/Makefile
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the hsfs file system
# kernel module.
@@ -62,6 +61,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
CFLAGS += $(CCVERBOSE)
#
+# Define dependency on specfs
+#
+LDFLAGS += -dy -N fs/specfs
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sparc/kgssapi/Makefile b/usr/src/uts/sparc/kgssapi/Makefile
index a54888afb1..ed0eed4bfb 100644
--- a/usr/src/uts/sparc/kgssapi/Makefile
+++ b/usr/src/uts/sparc/kgssapi/Makefile
@@ -21,8 +21,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the kgssapi kernel module.
#
@@ -59,6 +58,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_KGSS_DIR)
CFLAGS += $(CCVERBOSE)
#
+# Define dependencies on rpc, rpcsec, and tlimod
+#
+LDFLAGS += -dy -N strmod/rpcmod -N misc/rpcsec -N misc/tlimod
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sparc/kmech_dummy/Makefile b/usr/src/uts/sparc/kmech_dummy/Makefile
index d4c1cc59da..5741b4445d 100644
--- a/usr/src/uts/sparc/kmech_dummy/Makefile
+++ b/usr/src/uts/sparc/kmech_dummy/Makefile
@@ -22,8 +22,7 @@
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#pragma ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the kmech_dummy kernel module.
#
@@ -60,6 +59,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
CFLAGS += $(CCVERBOSE)
#
+# Define dependency on kgssapi
+#
+LDFLAGS += -dy -N misc/kgssapi
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/sparc/kmech_krb5/Makefile b/usr/src/uts/sparc/kmech_krb5/Makefile
index cbc8770096..ffaa3f2a94 100644
--- a/usr/src/uts/sparc/kmech_krb5/Makefile
+++ b/usr/src/uts/sparc/kmech_krb5/Makefile
@@ -22,8 +22,7 @@
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the gl_kmech_krb5 kernel module.
@@ -61,6 +60,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
CFLAGS += $(CCVERBOSE)
#
+# Define dependencies on kgssapi and md5
+#
+LDFLAGS += -dy -N misc/kgssapi -N crypto/md5
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sparc/md/Makefile b/usr/src/uts/sparc/md/Makefile
index d5ef775ebe..e5e32074e1 100644
--- a/usr/src/uts/sparc/md/Makefile
+++ b/usr/src/uts/sparc/md/Makefile
@@ -22,8 +22,7 @@
# uts/sparc/md/Makefile
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the SLVM's md driver module.
#
@@ -65,6 +64,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
CFLAGS += $(CCVERBOSE)
#
+# Define dependency on rpcmod
+#
+LDFLAGS += -dy -N strmod/rpcmod
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sparc/md_hotspares/Makefile b/usr/src/uts/sparc/md_hotspares/Makefile
index 586a181b08..1f607f4e6a 100644
--- a/usr/src/uts/sparc/md_hotspares/Makefile
+++ b/usr/src/uts/sparc/md_hotspares/Makefile
@@ -23,8 +23,7 @@
# uts/sparc/md_hotspares/Makefile
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the SLVM's hotspares misc module.
#
@@ -62,6 +61,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
CFLAGS += $(CCVERBOSE)
#
+# Define dependency on md
+#
+LDFLAGS += -dy -N drv/md
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/sparc/md_mirror/Makefile b/usr/src/uts/sparc/md_mirror/Makefile
index cb007fee9e..57cc631696 100644
--- a/usr/src/uts/sparc/md_mirror/Makefile
+++ b/usr/src/uts/sparc/md_mirror/Makefile
@@ -22,8 +22,7 @@
# uts/sparc/md_mirror/Makefile
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the SLVM's mirror misc module.
#
@@ -61,6 +60,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
CFLAGS += $(CCVERBOSE)
#
+# Define dependency on md
+#
+LDFLAGS += -dy -N drv/md
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sparc/md_notify/Makefile b/usr/src/uts/sparc/md_notify/Makefile
index a4b095ea04..3d58c5da0b 100644
--- a/usr/src/uts/sparc/md_notify/Makefile
+++ b/usr/src/uts/sparc/md_notify/Makefile
@@ -23,8 +23,7 @@
# uts/sparc/notify/Makefile
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the SLVM's notify misc module.
#
@@ -62,6 +61,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
CFLAGS += $(CCVERBOSE)
#
+# Define dependency on md
+#
+LDFLAGS += -dy -N drv/md
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/sparc/md_raid/Makefile b/usr/src/uts/sparc/md_raid/Makefile
index 1665eeffcc..246808fe0b 100644
--- a/usr/src/uts/sparc/md_raid/Makefile
+++ b/usr/src/uts/sparc/md_raid/Makefile
@@ -22,8 +22,7 @@
# uts/sparc/raid/Makefile
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the SLVM's raid misc module.
#
@@ -61,6 +60,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
CFLAGS += $(CCVERBOSE)
#
+# Define dependency on md
+#
+LDFLAGS += -dy -N drv/md
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sparc/md_sp/Makefile b/usr/src/uts/sparc/md_sp/Makefile
index 3eab2a4781..4e3a8bef82 100644
--- a/usr/src/uts/sparc/md_sp/Makefile
+++ b/usr/src/uts/sparc/md_sp/Makefile
@@ -22,8 +22,7 @@
# uts/sparc/md_sp/Makefile
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the soft partitioning module.
#
@@ -56,6 +55,11 @@ LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
+# Define dependency on md
+#
+LDFLAGS += -dy -N drv/md
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sparc/md_stripe/Makefile b/usr/src/uts/sparc/md_stripe/Makefile
index 3a94d01447..b5ceaf8aa2 100644
--- a/usr/src/uts/sparc/md_stripe/Makefile
+++ b/usr/src/uts/sparc/md_stripe/Makefile
@@ -22,8 +22,7 @@
# uts/sparc/stripe/Makefile
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the SLVM's stripe misc module.
#
@@ -61,6 +60,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
CFLAGS += $(CCVERBOSE)
#
+# Define dependency on md
+#
+LDFLAGS += -dy -N drv/md
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sparc/md_trans/Makefile b/usr/src/uts/sparc/md_trans/Makefile
index d0015c57ed..4f42b3cc68 100644
--- a/usr/src/uts/sparc/md_trans/Makefile
+++ b/usr/src/uts/sparc/md_trans/Makefile
@@ -22,8 +22,7 @@
# uts/sparc/md_trans/Makefile
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the SLVM's trans misc module.
#
@@ -61,6 +60,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
CFLAGS += $(CCVERBOSE)
#
+# Define dependencies on md and specfs
+#
+LDFLAGS += -dy -N drv/md -N fs/ufs
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sparc/nfs/Makefile b/usr/src/uts/sparc/nfs/Makefile
index b6e45f1197..59443a2fdf 100644
--- a/usr/src/uts/sparc/nfs/Makefile
+++ b/usr/src/uts/sparc/nfs/Makefile
@@ -23,8 +23,7 @@
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the nfs file system
# kernel module.
@@ -67,6 +66,11 @@ CLEANFILES += $(MODSTUBS_O)
CFLAGS += $(CCVERBOSE)
#
+# Define dependencies on specfs, rpcmod, and rpcsec
+#
+LDFLAGS += -dy -N fs/specfs -N strmod/rpcmod -N misc/rpcsec
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sparc/pipe/Makefile b/usr/src/uts/sparc/pipe/Makefile
index 4f005eb3a8..9db83bf5e7 100644
--- a/usr/src/uts/sparc/pipe/Makefile
+++ b/usr/src/uts/sparc/pipe/Makefile
@@ -23,8 +23,7 @@
# uts/sparc/pipe/Makefile
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the pipe system call module.
#
@@ -69,6 +68,11 @@ CLEANFILES += $(MODSTUBS_O)
CFLAGS += $(CCVERBOSE)
#
+# Define dependency on fifofs
+#
+LDFLAGS += -dy -N fs/fifofs
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/sparc/ptsl/Makefile b/usr/src/uts/sparc/ptsl/Makefile
index b59c1385db..7ee339ee9b 100644
--- a/usr/src/uts/sparc/ptsl/Makefile
+++ b/usr/src/uts/sparc/ptsl/Makefile
@@ -22,8 +22,7 @@
# uts/sparc/ptsl/Makefile
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the ptsl driver
#
@@ -62,6 +61,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
CFLAGS += $(CCVERBOSE)
#
+# Define dependency on ptc
+#
+LDFLAGS += -dy -N drv/ptc
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sparc/rpcsec/Makefile b/usr/src/uts/sparc/rpcsec/Makefile
index f07e244bf9..9b5bd81913 100644
--- a/usr/src/uts/sparc/rpcsec/Makefile
+++ b/usr/src/uts/sparc/rpcsec/Makefile
@@ -21,8 +21,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the kernel rpcsec module.
#
@@ -59,6 +58,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
CFLAGS += $(CCVERBOSE)
#
+# Define dependencies on rpcmod and tlimod
+#
+LDFLAGS += -dy -N strmod/rpcmod -N misc/tlimod
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sparc/rpcsec_gss/Makefile b/usr/src/uts/sparc/rpcsec_gss/Makefile
index 4239c405f9..7bc39e9739 100644
--- a/usr/src/uts/sparc/rpcsec_gss/Makefile
+++ b/usr/src/uts/sparc/rpcsec_gss/Makefile
@@ -21,8 +21,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the kernel
# rpcsec_gss module.
@@ -60,6 +59,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
CFLAGS += $(CCVERBOSE)
#
+# Define dependencies on rpcmod and kgssapi
+#
+LDFLAGS += -dy -N strmod/rpcmod -N misc/kgssapi
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sparc/sd/Makefile b/usr/src/uts/sparc/sd/Makefile
index b734011655..b7d788d5d3 100644
--- a/usr/src/uts/sparc/sd/Makefile
+++ b/usr/src/uts/sparc/sd/Makefile
@@ -23,8 +23,7 @@
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the sd driver kernel module.
#
@@ -66,6 +65,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
CFLAGS += $(CCVERBOSE)
#
+# Define dependencies on scsi and cmlb
+#
+LDFLAGS += -dy -N misc/scsi -N misc/cmlb
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sparc/ses/Makefile b/usr/src/uts/sparc/ses/Makefile
index a65269d89b..76d1cd762c 100644
--- a/usr/src/uts/sparc/ses/Makefile
+++ b/usr/src/uts/sparc/ses/Makefile
@@ -23,8 +23,7 @@
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the ses driver kernel module.
#
@@ -62,6 +61,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
CLEANFILES += $(WARLOCK_TARGETS)
#
+# Define dependency on scsi
+#
+LDFLAGS += -dy -N misc/scsi
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sparc/spppasyn/Makefile b/usr/src/uts/sparc/spppasyn/Makefile
index 0d519055ad..60acb99288 100644
--- a/usr/src/uts/sparc/spppasyn/Makefile
+++ b/usr/src/uts/sparc/spppasyn/Makefile
@@ -23,8 +23,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the spppasyn STREAMS
# kernel module.
@@ -68,6 +67,11 @@ CPPFLAGS += -DINTERNAL_BUILD -DSOL2
INC_PATH += -I$(UTSBASE)/common/io/ppp/common
CFLAGS += $(CCVERBOSE)
+#
+# Define dependency on sppp
+#
+LDFLAGS += -dy -N drv/sppp
+
CLEANLINTFILES += $(LINT64_FILES)
#
diff --git a/usr/src/uts/sparc/spppcomp/Makefile b/usr/src/uts/sparc/spppcomp/Makefile
index 3f4a4d5cdb..9955b7f5a8 100644
--- a/usr/src/uts/sparc/spppcomp/Makefile
+++ b/usr/src/uts/sparc/spppcomp/Makefile
@@ -23,8 +23,7 @@
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the spppcomp STREAMS
# kernel module.
@@ -68,6 +67,11 @@ CPPFLAGS += -DINTERNAL_BUILD -DSOL2 -DMUX_FRAME
INC_PATH += -I$(UTSBASE)/common/io/ppp/common
CFLAGS += $(CCVERBOSE)
+#
+# Define dependency on sppp
+#
+LDFLAGS += -dy -N drv/sppp
+
CLEANLINTFILES += $(LINT64_FILES)
#
diff --git a/usr/src/uts/sparc/ssd/Makefile b/usr/src/uts/sparc/ssd/Makefile
index b9e44c0db5..524f11220e 100644
--- a/usr/src/uts/sparc/ssd/Makefile
+++ b/usr/src/uts/sparc/ssd/Makefile
@@ -23,8 +23,8 @@
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
-#ident "%Z%%M% %I% %E% SMI"
#
# This makefile drives the production of the ssd driver kernel module.
@@ -79,6 +79,12 @@ LINTTAGS += -erroff=E_STATIC_UNUSED
LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
#
+# Depends on scsi and cmlb
+# fcp included for fibre support
+#
+LDFLAGS += -dy -N misc/scsi -N misc/cmlb -N drv/fcp
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/sparc/st/Makefile b/usr/src/uts/sparc/st/Makefile
index 3de91cd4d6..1b5bc60dfa 100644
--- a/usr/src/uts/sparc/st/Makefile
+++ b/usr/src/uts/sparc/st/Makefile
@@ -22,8 +22,7 @@
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the st driver kernel module.
#
@@ -65,6 +64,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
CFLAGS += $(CCVERBOSE)
#
+# Define dependency on scsi
+#
+LDFLAGS += -dy -N misc/scsi
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sparc/udfs/Makefile b/usr/src/uts/sparc/udfs/Makefile
index 984e69ba3a..8dec1e2f68 100644
--- a/usr/src/uts/sparc/udfs/Makefile
+++ b/usr/src/uts/sparc/udfs/Makefile
@@ -19,10 +19,9 @@
# CDDL HEADER END
#
#
-# ident "%Z%%M% %I% %E% SMI"
-#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the udfs file system
# kernel module.
@@ -64,6 +63,11 @@ CLEANFILES += $(MODSTUBS_O)
CFLAGS += $(CCVERBOSE)
#
+# Define dependency on specfs
+#
+LDFLAGS += -dy -N fs/specfs
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sun/io/scsi/adapters/fas.c b/usr/src/uts/sun/io/scsi/adapters/fas.c
index 06816a06ed..12e3aa3102 100644
--- a/usr/src/uts/sun/io/scsi/adapters/fas.c
+++ b/usr/src/uts/sun/io/scsi/adapters/fas.c
@@ -21,6 +21,7 @@
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
@@ -382,8 +383,6 @@ static struct dev_ops fas_ops = {
ddi_quiesce_not_supported, /* devo_quiesce */
};
-char _depends_on[] = "misc/scsi";
-
static struct modldrv modldrv = {
&mod_driverops, /* Type of module. This one is a driver */
"FAS SCSI HBA Driver", /* Name of the module. */
diff --git a/usr/src/uts/sun/io/scsi/adapters/sf.c b/usr/src/uts/sun/io/scsi/adapters/sf.c
index 57e486d7cb..8bd12cd74e 100644
--- a/usr/src/uts/sun/io/scsi/adapters/sf.c
+++ b/usr/src/uts/sun/io/scsi/adapters/sf.c
@@ -21,6 +21,7 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
/*
@@ -212,9 +213,6 @@ static struct dev_ops sf_ops = {
ddi_quiesce_not_supported, /* devo_quiesce */
};
-/* to ensure this module gets loaded in memory when we do */
-char _depends_on[] = "misc/scsi";
-
#define SF_NAME "FC-AL FCP Nexus Driver" /* Name of the module. */
static char sf_version[] = "1.72 08/19/2008"; /* version of the module */
diff --git a/usr/src/uts/sun/io/zs_hdlc.c b/usr/src/uts/sun/io/zs_hdlc.c
index 99a41283af..229747ec03 100644
--- a/usr/src/uts/sun/io/zs_hdlc.c
+++ b/usr/src/uts/sun/io/zs_hdlc.c
@@ -21,6 +21,7 @@
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
@@ -135,9 +136,6 @@ int zsh_h_log_n[2];
}
#endif
-
-char _depends_on[] = "drv/zs";
-
#ifndef MAXZSH
#define MAXZSH 2
#define MAXZSHCLONES (80) /* three clone opens per instance */
diff --git a/usr/src/uts/sun4/io/efcode/fcode.c b/usr/src/uts/sun4/io/efcode/fcode.c
index 94059a56f5..8610697835 100644
--- a/usr/src/uts/sun4/io/efcode/fcode.c
+++ b/usr/src/uts/sun4/io/efcode/fcode.c
@@ -21,6 +21,7 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
@@ -128,10 +129,6 @@ static struct modlinkage modlinkage = {
NULL
};
-#ifndef lint
-char _depends_on[] = "misc/fcodem";
-#endif
-
int
_init(void)
{
diff --git a/usr/src/uts/sun4/io/efcode/fcpci.c b/usr/src/uts/sun4/io/efcode/fcpci.c
index 85e3c6c746..cdebc156f3 100644
--- a/usr/src/uts/sun4/io/efcode/fcpci.c
+++ b/usr/src/uts/sun4/io/efcode/fcpci.c
@@ -22,6 +22,7 @@
/*
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
/*
@@ -93,10 +94,6 @@ static ddi_dma_attr_t fcpci_dma_attr = {
0 /* DMA transfer flags */
};
-#ifndef lint
-char _depends_on[] = "misc/fcodem misc/busra";
-#endif
-
#define HIADDR(n) ((uint32_t)(((uint64_t)(n) & 0xFFFFFFFF00000000)>> 32))
#define LOADDR(n)((uint32_t)((uint64_t)(n) & 0x00000000FFFFFFFF))
#define LADDR(lo, hi) (((uint64_t)(hi) << 32) | (uint32_t)(lo))
diff --git a/usr/src/uts/sun4u/cpr/Makefile b/usr/src/uts/sun4u/cpr/Makefile
index a0389c669d..89f17571e7 100644
--- a/usr/src/uts/sun4u/cpr/Makefile
+++ b/usr/src/uts/sun4u/cpr/Makefile
@@ -22,8 +22,7 @@
# uts/sun4u/cpr/Makefile
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the cpr misc kernel module.
#
@@ -76,6 +75,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
CFLAGS += $(CCVERBOSE)
#
+# Depends on bootdev
+#
+LDFLAGS += -dy -N misc/bootdev
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sun4u/montecarlo/io/pcf8574_nct.c b/usr/src/uts/sun4u/montecarlo/io/pcf8574_nct.c
index 7e55a79b10..409d50a8d8 100644
--- a/usr/src/uts/sun4u/montecarlo/io/pcf8574_nct.c
+++ b/usr/src/uts/sun4u/montecarlo/io/pcf8574_nct.c
@@ -22,6 +22,7 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
#include <sys/param.h>
@@ -178,8 +179,6 @@ static struct modlinkage pcf8574_modlinkage = {
0
};
-/* char _depends_on[] = "misc/i2c_svc drv/scsb"; */
-
int
_init(void)
{
diff --git a/usr/src/uts/sun4u/montecarlo/io/pcf8591_nct.c b/usr/src/uts/sun4u/montecarlo/io/pcf8591_nct.c
index 75b3b78924..2ec1b326ab 100644
--- a/usr/src/uts/sun4u/montecarlo/io/pcf8591_nct.c
+++ b/usr/src/uts/sun4u/montecarlo/io/pcf8591_nct.c
@@ -21,6 +21,7 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
/*
@@ -168,8 +169,6 @@ static struct modlinkage pcf8591_modlinkage = {
0
};
-char _depends_on[] = "misc/i2c_svc";
-
int pcf8591_debug = 0x02;
static uint8_t translate_cputemp(uint8_t value);
diff --git a/usr/src/uts/sun4u/sf/Makefile b/usr/src/uts/sun4u/sf/Makefile
index b60b37657a..0fa186b7fa 100644
--- a/usr/src/uts/sun4u/sf/Makefile
+++ b/usr/src/uts/sun4u/sf/Makefile
@@ -23,8 +23,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the sf driver kernel module.
#
@@ -64,6 +63,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
CFLAGS += $(CCVERBOSE)
#
+# Define dependency on scsi
+#
+LDFLAGS += -dy -N misc/scsi
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
diff --git a/usr/src/uts/sun4u/starfire/cvcredir/Makefile b/usr/src/uts/sun4u/starfire/cvcredir/Makefile
index 7604cb170b..6725d33bef 100644
--- a/usr/src/uts/sun4u/starfire/cvcredir/Makefile
+++ b/usr/src/uts/sun4u/starfire/cvcredir/Makefile
@@ -20,10 +20,9 @@
# CDDL HEADER END
#
#
-# ident "%Z%%M% %I% %E% SMI"
-#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the cvcredir driver module.
#
@@ -62,6 +61,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
CFLAGS += $(CCVERBOSE)
#
+# Define dependency on cvc
+#
+LDFLAGS += -dy -N drv/cvc
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/sun4u/starfire/cvcredir/cvcredir.c b/usr/src/uts/sun4u/starfire/cvcredir/cvcredir.c
index 7a823e92f6..05e9784933 100644
--- a/usr/src/uts/sun4u/starfire/cvcredir/cvcredir.c
+++ b/usr/src/uts/sun4u/starfire/cvcredir/cvcredir.c
@@ -21,6 +21,7 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
@@ -107,8 +108,6 @@ DDI_DEFINE_STREAM_OPS(cvcrops, nulldev, nulldev, cvcr_attach,
cvcr_detach, nodev, cvcr_info, (D_MTPERQ | D_MP), &cvcrinfo,
ddi_quiesce_not_supported);
-char _depends_on[] = "drv/cvc";
-
static struct modldrv modldrv = {
&mod_driverops, /* Type of module. This one is a pseudo driver */
"CVC redirect driver 'cvcredir'",
diff --git a/usr/src/uts/sun4u/starfire/io/drmach.c b/usr/src/uts/sun4u/starfire/io/drmach.c
index d0dca88eb8..799a3417cb 100644
--- a/usr/src/uts/sun4u/starfire/io/drmach.c
+++ b/usr/src/uts/sun4u/starfire/io/drmach.c
@@ -22,6 +22,7 @@
/*
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
#include <sys/debug.h>
@@ -295,14 +296,6 @@ static struct {
#define MBYTE (1048576ull)
/*
- * This is necessary because the CPU support needs
- * to call cvc_assign_iocpu.
- */
-#ifndef lint
-char _depends_on[] = "drv/cvc";
-#endif /* lint */
-
-/*
* drmach autoconfiguration data structures and interfaces
*/
diff --git a/usr/src/uts/sun4u/starfire/ngdrmach/Makefile b/usr/src/uts/sun4u/starfire/ngdrmach/Makefile
index 9bfcfec543..8ad6a1b342 100644
--- a/usr/src/uts/sun4u/starfire/ngdrmach/Makefile
+++ b/usr/src/uts/sun4u/starfire/ngdrmach/Makefile
@@ -22,8 +22,7 @@
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the ngdrmach loadable module.
#
@@ -61,6 +60,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
CFLAGS += $(CCVERBOSE)
#
+# Define dependency on cvc
+#
+LDFLAGS += -dy -N drv/cvc
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/sun4u/sunfire/ac/Makefile b/usr/src/uts/sun4u/sunfire/ac/Makefile
index 3201c46ef4..ca2e2cb4d6 100644
--- a/usr/src/uts/sun4u/sunfire/ac/Makefile
+++ b/usr/src/uts/sun4u/sunfire/ac/Makefile
@@ -22,8 +22,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the ac driver kernel module.
#
@@ -66,6 +65,11 @@ CFLAGS += $(CCVERBOSE)
CFLAGS += -dalign
#
+# Define dependency on fhc
+#
+LDFLAGS += -dy -N drv/fhc
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/sun4u/sunfire/environ/Makefile b/usr/src/uts/sun4u/sunfire/environ/Makefile
index 33d361c1cf..c3cf7a0f0f 100644
--- a/usr/src/uts/sun4u/sunfire/environ/Makefile
+++ b/usr/src/uts/sun4u/sunfire/environ/Makefile
@@ -22,8 +22,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the environ driver kernel
# module.
@@ -67,6 +66,11 @@ CFLAGS += $(CCVERBOSE)
CFLAGS += -dalign
#
+# Define dependency on fhc
+#
+LDFLAGS += -dy -N drv/fhc
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/sun4u/sunfire/io/ac.c b/usr/src/uts/sun4u/sunfire/io/ac.c
index 621890b640..c19cad9264 100644
--- a/usr/src/uts/sun4u/sunfire/io/ac.c
+++ b/usr/src/uts/sun4u/sunfire/io/ac.c
@@ -22,6 +22,7 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
@@ -173,10 +174,6 @@ static struct modlinkage modlinkage = {
NULL
};
-#ifndef lint
-char _depends_on[] = "drv/fhc";
-#endif /* lint */
-
/*
* These are the module initialization routines.
*/
diff --git a/usr/src/uts/sun4u/sunfire/io/environ.c b/usr/src/uts/sun4u/sunfire/io/environ.c
index 19bf15e75c..4b27fa088e 100644
--- a/usr/src/uts/sun4u/sunfire/io/environ.c
+++ b/usr/src/uts/sun4u/sunfire/io/environ.c
@@ -22,6 +22,7 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
@@ -139,10 +140,6 @@ static struct modlinkage modlinkage = {
NULL
};
-#ifndef lint
-char _depends_on[] = "drv/fhc";
-#endif /* lint */
-
/*
* These are the module initialization routines.
*/
diff --git a/usr/src/uts/sun4u/sunfire/io/simmstat.c b/usr/src/uts/sun4u/sunfire/io/simmstat.c
index 6637f5e9f7..2fe1d3c6c7 100644
--- a/usr/src/uts/sun4u/sunfire/io/simmstat.c
+++ b/usr/src/uts/sun4u/sunfire/io/simmstat.c
@@ -22,6 +22,7 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
@@ -121,10 +122,6 @@ static struct modlinkage modlinkage = {
NULL
};
-#ifndef lint
-char _depends_on[] = "drv/fhc";
-#endif /* lint */
-
/*
* These are the module initialization routines.
*/
diff --git a/usr/src/uts/sun4u/sunfire/io/sram.c b/usr/src/uts/sun4u/sunfire/io/sram.c
index a07f5e600c..426c8b8cd1 100644
--- a/usr/src/uts/sun4u/sunfire/io/sram.c
+++ b/usr/src/uts/sun4u/sunfire/io/sram.c
@@ -22,6 +22,7 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
@@ -117,10 +118,6 @@ static struct modlinkage modlinkage = {
NULL
};
-#ifndef lint
-char _depends_on[] = "drv/fhc";
-#endif /* lint */
-
/*
* These are the module initialization routines.
*/
diff --git a/usr/src/uts/sun4u/sunfire/io/sysctrl.c b/usr/src/uts/sun4u/sunfire/io/sysctrl.c
index df45a0e0d5..206829b2a2 100644
--- a/usr/src/uts/sun4u/sunfire/io/sysctrl.c
+++ b/usr/src/uts/sun4u/sunfire/io/sysctrl.c
@@ -22,6 +22,7 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
*/
@@ -326,10 +327,6 @@ static struct modlinkage modlinkage = {
NULL
};
-#ifndef lint
-char _depends_on[] = "drv/fhc";
-#endif /* lint */
-
/*
* These are the module initialization routines.
*/
diff --git a/usr/src/uts/sun4u/sunfire/simmstat/Makefile b/usr/src/uts/sun4u/sunfire/simmstat/Makefile
index 0d18c647fc..e893eed9a9 100644
--- a/usr/src/uts/sun4u/sunfire/simmstat/Makefile
+++ b/usr/src/uts/sun4u/sunfire/simmstat/Makefile
@@ -22,8 +22,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the simmstat driver kernel
# module.
@@ -67,6 +66,11 @@ CFLAGS += $(CCVERBOSE)
CFLAGS += -dalign
#
+# Define dependency on fhc
+#
+LDFLAGS += -dy -N drv/fhc
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/sun4u/sunfire/sram/Makefile b/usr/src/uts/sun4u/sunfire/sram/Makefile
index 2c9ded11b6..2b27795593 100644
--- a/usr/src/uts/sun4u/sunfire/sram/Makefile
+++ b/usr/src/uts/sun4u/sunfire/sram/Makefile
@@ -22,8 +22,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the sram driver kernel module.
#
@@ -66,6 +65,11 @@ CFLAGS += $(CCVERBOSE)
CFLAGS += -dalign
#
+# Define dependency on fhc
+#
+LDFLAGS += -dy -N drv/fhc
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/sun4u/sunfire/sysctrl/Makefile b/usr/src/uts/sun4u/sunfire/sysctrl/Makefile
index 4f2ff2f3e9..e89213b440 100644
--- a/usr/src/uts/sun4u/sunfire/sysctrl/Makefile
+++ b/usr/src/uts/sun4u/sunfire/sysctrl/Makefile
@@ -22,8 +22,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the sysctrl driver
# kernel module.
@@ -67,6 +66,11 @@ CFLAGS += $(CCVERBOSE)
CFLAGS += -dalign
#
+# Define dependency on fhc
+#
+LDFLAGS += -dy -N drv/fhc
+
+#
# Default build targets.
#
.KEEP_STATE:
diff --git a/usr/src/uts/sun4u/zsh/Makefile b/usr/src/uts/sun4u/zsh/Makefile
index 0a196d3c1d..d48b7080ba 100644
--- a/usr/src/uts/sun4u/zsh/Makefile
+++ b/usr/src/uts/sun4u/zsh/Makefile
@@ -22,8 +22,7 @@
# uts/sun4u/zsh/Makefile
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
#
# This makefile drives the production of the sun4u "zsh" driver module.
#
@@ -62,6 +61,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
CFLAGS += $(CCVERBOSE)
#
+# Defined dependency on zs
+#
+LDFLAGS += -dy -N drv/zs
+
+#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.