Created attachment 225199 [details] patch to remove incorrect argument in man page SYNOPSIS The man page SYNOPSIS for EARLY_DRIVER_MODULE() shows that it has an "enum sysinit_elem_order order" argument. The actual macro in sys/bus.h does not have an order argument. Can be MFC'd to 13 and 12.
I created a differential based on your patch.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3fdd5c1e49cbc0a77935eb34e3561c6021b93650 commit 3fdd5c1e49cbc0a77935eb34e3561c6021b93650 Author: J.R. Oldroyd <fbsd@opal.com> AuthorDate: 2021-05-24 14:54:45 +0000 Commit: Gordon Bergling <gbe@FreeBSD.org> CommitDate: 2021-05-24 14:54:45 +0000 DRIVER_MODULE(9): Correct the SYNOPSIS of EARLY_DRIVER_MODULE() The man page SYNOPSIS for EARLY_DRIVER_MODULE() shows that it has an "enum sysinit_elem_order order" argument. The actual macro in sys/bus.h does not have an order argument. PR: 256103 Reported by: J.R. Oldroyd <fbsd at opal dot com> Reviewed by: markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D30411 share/man/man9/DRIVER_MODULE.9 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=fe0ff38bf1570936a7155d6dbae97aaaba3b667f commit fe0ff38bf1570936a7155d6dbae97aaaba3b667f Author: J.R. Oldroyd <fbsd@opal.com> AuthorDate: 2021-05-24 14:54:45 +0000 Commit: Gordon Bergling <gbe@FreeBSD.org> CommitDate: 2021-06-01 05:32:48 +0000 DRIVER_MODULE(9): Correct the SYNOPSIS of EARLY_DRIVER_MODULE() The man page SYNOPSIS for EARLY_DRIVER_MODULE() shows that it has an "enum sysinit_elem_order order" argument. The actual macro in sys/bus.h does not have an order argument. PR: 256103 Reported by: J.R. Oldroyd <fbsd at opal dot com> Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D30411 (cherry picked from commit 3fdd5c1e49cbc0a77935eb34e3561c6021b93650) share/man/man9/DRIVER_MODULE.9 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
A commit in branch stable/12 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=e303e19dfc0d2fd94301f213e8f7be1dcf597dc2 commit e303e19dfc0d2fd94301f213e8f7be1dcf597dc2 Author: J.R. Oldroyd <fbsd@opal.com> AuthorDate: 2021-05-24 14:54:45 +0000 Commit: Gordon Bergling <gbe@FreeBSD.org> CommitDate: 2021-06-01 05:34:07 +0000 DRIVER_MODULE(9): Correct the SYNOPSIS of EARLY_DRIVER_MODULE() The man page SYNOPSIS for EARLY_DRIVER_MODULE() shows that it has an "enum sysinit_elem_order order" argument. The actual macro in sys/bus.h does not have an order argument. PR: 256103 Reported by: J.R. Oldroyd <fbsd at opal dot com> Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D30411 (cherry picked from commit 3fdd5c1e49cbc0a77935eb34e3561c6021b93650) share/man/man9/DRIVER_MODULE.9 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Corrected in main stable/13 and stable/12. Thanks for spotting this.