From 7485dac765253c701a97a0ecb94fefd223c9ea62 Mon Sep 17 00:00:00 2001 From: dufault Date: Sun, 6 Apr 1997 10:49:22 +0000 Subject: Make MOD_* macros almost consistent: Use the name argument almost the same in all LKM types. Maintain the current behavior for the external (e.g., modstat) name for DEV, EXEC, and MISC types being #name ## "_mod" and SYCALL and VFS only #name. This is a candidate for change and I vote just the name without the "_mod". Change the DISPATCH macro to MOD_DISPATCH for consistency with the other macros. Add an LKM_ANON #define to eliminate the magic -1 and associated signed/unsigned warnings. Add MOD_PRIVATE to support wcd.c's poking around in the lkm structure. Change source in tree to use the new interface. Reviewed by: Bruce Evans --- lkm/syscons/fade/fade_saver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lkm/syscons/fade') diff --git a/lkm/syscons/fade/fade_saver.c b/lkm/syscons/fade/fade_saver.c index 0eec4f6..4fda21c 100644 --- a/lkm/syscons/fade/fade_saver.c +++ b/lkm/syscons/fade/fade_saver.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id$ + * $Id: fade_saver.c,v 1.9 1997/02/22 12:49:10 peter Exp $ */ #include @@ -93,6 +93,6 @@ fade_saver_unload(struct lkm_table *lkmtp, int cmd) int fade_saver_mod(struct lkm_table *lkmtp, int cmd, int ver) { - DISPATCH(lkmtp, cmd, ver, fade_saver_load, fade_saver_unload, - lkm_nullcmd); + MOD_DISPATCH(fade_saver, lkmtp, cmd, ver, + fade_saver_load, fade_saver_unload, lkm_nullcmd); } -- cgit v1.1