Set the "required modules" to NULL, not to an empty string.

It really doesn't make that much difference to the code, but the output
from modstat(8) is different!  (With an empty string in the MODULE() macro
modstat reports an empty string, but with a NULL in the macro, modstat
prints a '-' just like it does for other "empty" fields.)
This commit is contained in:
pgoyette 2019-04-26 08:38:25 +00:00
parent 39e6bc2ccf
commit dc68f5827a
4 changed files with 12 additions and 12 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: sysmon.c,v 1.28 2015/05/05 09:22:33 pgoyette Exp $ */
/* $NetBSD: sysmon.c,v 1.29 2019/04/26 08:38:25 pgoyette Exp $ */
/*-
* Copyright (c) 2000 Zembu Labs, Inc.
@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sysmon.c,v 1.28 2015/05/05 09:22:33 pgoyette Exp $");
__KERNEL_RCSID(0, "$NetBSD: sysmon.c,v 1.29 2019/04/26 08:38:25 pgoyette Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@ -307,7 +307,7 @@ sysmonkqfilter(dev_t dev, struct knote *kn)
return (error);
}
MODULE(MODULE_CLASS_DRIVER, sysmon, "");
MODULE(MODULE_CLASS_DRIVER, sysmon, NULL);
static int
sm_init_once(void)

View File

@ -1,4 +1,4 @@
/* $NetBSD: sys_ptrace_common.c,v 1.47 2019/02/03 03:19:28 mrg Exp $ */
/* $NetBSD: sys_ptrace_common.c,v 1.48 2019/04/26 08:38:25 pgoyette Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@ -118,7 +118,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.47 2019/02/03 03:19:28 mrg Exp $");
__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.48 2019/04/26 08:38:25 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_ptrace.h"
@ -1576,7 +1576,7 @@ process_auxv_offset(struct proc *p, struct uio *uio)
}
#endif /* PTRACE */
MODULE(MODULE_CLASS_EXEC, ptrace_common, "");
MODULE(MODULE_CLASS_EXEC, ptrace_common, NULL);
static int
ptrace_common_modcmd(modcmd_t cmd, void *arg)

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_loop.c,v 1.106 2018/11/15 10:06:07 maxv Exp $ */
/* $NetBSD: if_loop.c,v 1.107 2019/04/26 08:38:25 pgoyette Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_loop.c,v 1.106 2018/11/15 10:06:07 maxv Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_loop.c,v 1.107 2019/04/26 08:38:25 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@ -530,4 +530,4 @@ loioctl(struct ifnet *ifp, u_long cmd, void *data)
*/
#include "if_module.h"
IF_MODULE(MODULE_CLASS_DRIVER, loop, "")
IF_MODULE(MODULE_CLASS_DRIVER, loop, NULL)

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_tun.c,v 1.155 2019/03/25 10:04:48 pgoyette Exp $ */
/* $NetBSD: if_tun.c,v 1.156 2019/04/26 08:38:25 pgoyette Exp $ */
/*
* Copyright (c) 1988, Julian Onions <jpo@cs.nott.ac.uk>
@ -19,7 +19,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.155 2019/03/25 10:04:48 pgoyette Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.156 2019/04/26 08:38:25 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@ -1142,4 +1142,4 @@ out_nolock:
*/
#include "if_module.h"
IF_MODULE(MODULE_CLASS_DRIVER, tun, "")
IF_MODULE(MODULE_CLASS_DRIVER, tun, NULL)