diff options
author | blitztide <david.elliott3040@gmail.com> | 2022-01-10 13:10:00 +0000 |
---|---|---|
committer | Danilo G. Baio <dbaio@FreeBSD.org> | 2022-01-11 02:16:25 +0000 |
commit | d00b3eb7681921e974ca687151eea5f42fe81b53 (patch) | |
tree | eca2a25821fc88381748bdab643cb406395d990e | |
parent | 11f31ba26afeb7b0049eae39f148e558a7e3858d (diff) | |
download | doc-d00b3eb768.tar.gz doc-d00b3eb768.zip |
arch-handbook/driverbasics: Fix example code
The driver code does not compile as it includes sys/module.h before
sys/param.h.
PR: 261014
Reviewed by: allanjude
Pull Request: https://github.com/freebsd/freebsd-doc/pull/50
-rw-r--r-- | documentation/content/en/books/arch-handbook/driverbasics/_index.adoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/documentation/content/en/books/arch-handbook/driverbasics/_index.adoc b/documentation/content/en/books/arch-handbook/driverbasics/_index.adoc index 6e9fa92f61..acaca6502e 100644 --- a/documentation/content/en/books/arch-handbook/driverbasics/_index.adoc +++ b/documentation/content/en/books/arch-handbook/driverbasics/_index.adoc @@ -77,10 +77,10 @@ Skeleton Layout of a kernel module */ #include <sys/types.h> -#include <sys/module.h> #include <sys/systm.h> /* uprintf */ #include <sys/errno.h> #include <sys/param.h> /* defines used in kernel.h */ +#include <sys/module.h> #include <sys/kernel.h> /* types used in module initialization */ /* @@ -157,9 +157,9 @@ This simple example pseudo-device remembers whatever values are written to it an */ #include <sys/types.h> -#include <sys/module.h> #include <sys/systm.h> /* uprintf */ #include <sys/param.h> /* defines used in kernel.h */ +#include <sys/module.h> #include <sys/kernel.h> /* types used in module initialization */ #include <sys/conf.h> /* cdevsw struct */ #include <sys/uio.h> /* uio struct */ |