Bug 261014 - arch-handbook/driverbasics: Fix example code
Summary: arch-handbook/driverbasics: Fix example code
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Books & Articles (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Danilo G. Baio
URL: https://docs.freebsd.org/en/books/arc...
Keywords:
: 261013 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-01-07 21:33 UTC by david.elliott3040
Modified: 2022-01-11 02:35 UTC (History)
2 users (show)

See Also:


Attachments
diff for documentation (401 bytes, patch)
2022-01-07 21:34 UTC, david.elliott3040
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description david.elliott3040 2022-01-07 21:33:21 UTC
The driver code in documentation/content/en/books/arch-handbook/driverbasics/_index.adoc
does not compile as it includes sys/module.h before sys/param.h
Comment 1 david.elliott3040 2022-01-07 21:34:51 UTC
Created attachment 230797 [details]
diff for documentation

Moved include headers around
Comment 2 david.elliott3040 2022-01-07 21:40:26 UTC
*** Bug 261013 has been marked as a duplicate of this bug. ***
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-01-11 02:32:57 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/doc/commit/?id=d00b3eb7681921e974ca687151eea5f42fe81b53

commit d00b3eb7681921e974ca687151eea5f42fe81b53
Author:     blitztide <david.elliott3040@gmail.com>
AuthorDate: 2022-01-10 13:10:00 +0000
Commit:     Danilo G. Baio <dbaio@FreeBSD.org>
CommitDate: 2022-01-11 02:16:25 +0000

    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

 documentation/content/en/books/arch-handbook/driverbasics/_index.adoc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 4 Danilo G. Baio freebsd_committer freebsd_triage 2022-01-11 02:35:27 UTC
Committed.

Thanks for your contribution.