diff --git a/sys/sys/conf.h b/sys/sys/conf.h index c18d5b40baf0..87687f61e681 100644 --- a/sys/sys/conf.h +++ b/sys/sys/conf.h @@ -261,6 +261,10 @@ void ldisc_deregister(int); #define NUMCDEVSW 256 +/* + * XXX: do not use MAJOR_AUTO unless you have no choice. In general drivers + * should just not initialize .d_maj and that will DTRT. + */ #define MAJOR_AUTO 0 /* XXX: Not GM */ l_ioctl_t l_nullioctl; diff --git a/sys/sys/linedisc.h b/sys/sys/linedisc.h index c18d5b40baf0..87687f61e681 100644 --- a/sys/sys/linedisc.h +++ b/sys/sys/linedisc.h @@ -261,6 +261,10 @@ void ldisc_deregister(int); #define NUMCDEVSW 256 +/* + * XXX: do not use MAJOR_AUTO unless you have no choice. In general drivers + * should just not initialize .d_maj and that will DTRT. + */ #define MAJOR_AUTO 0 /* XXX: Not GM */ l_ioctl_t l_nullioctl;