From nobody Tue Jan 11 02:31:55 2022 X-Original-To: dev-commits-doc-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 9DB68193788A for ; Tue, 11 Jan 2022 02:31:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JXvpg2ZTfz4WT3; Tue, 11 Jan 2022 02:31:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 389E410F17; Tue, 11 Jan 2022 02:31:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 20B2VtHn043508; Tue, 11 Jan 2022 02:31:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20B2VtAN043507; Tue, 11 Jan 2022 02:31:55 GMT (envelope-from git) Date: Tue, 11 Jan 2022 02:31:55 GMT Message-Id: <202201110231.20B2VtAN043507@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: "Danilo G. Baio" Subject: git: d00b3eb768 - main - arch-handbook/driverbasics: Fix example code List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-doc-all@freebsd.org X-BeenThere: dev-commits-doc-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dbaio X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d00b3eb7681921e974ca687151eea5f42fe81b53 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641868315; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FYIcWQDnFOEdl1dti1Neip5jDRHVT29lQf4cVxljYkI=; b=ijHO3hpuvKpDgB7JFQqXg+/63P8wv4fwuNzbL0VgPX+u9eYzUMb6U+tPRI4QimGpi1Unhz ir32QNOpYPkT66xv5WpDJNfkSpCnXg25Abfe/6XuPZHlWd2+uLBiOorESsX19XHNWqrNYC hnR8yngwInjPv5/BfA9DhKtTHIcaHheImpeHG7yjtgO35Pg4WBMMOGEpeqp/EL0AWMNiKL Rn758x5+7SRUfV9ShMYvurlmp9fO4gaNhtFucV8T6Gh7ZRNR0yWJAJVQL6txIWae7M777b AEEaHzlKyOTmh1fSM0KkgNLI+KgXQl7i8aOW0uR5iE7TlA131bbZqCqPSLNTSg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641868315; a=rsa-sha256; cv=none; b=sk/icjT7VhS8ZX6wwWQQIUSG8hMtZwBIwkXXqO4+sAInwVhYgjWsrA7GzAKqrik/kDHXs6 Y+yqf6IewlTbnKpMim4oFumJmH5jvRXnTR4QbhTrCAgW42j/seerJ1wcNdAsCDaEOKzOFM UuAeqOPwJElO3zO2in5ht3NPMTyFNQu4RFSISeEalQDm8NxTzncDsR2iXF4tL6raG/RyV0 rut/S+J+o4A0eax+xqDH4PiiFH18obfZ4X3I8dl+8sjZtRl8Mz1h/7qdyKuPnQCVMCCJ22 jOkfoE4SbdnBGmtyv+hMiyhVIraBdMm7qQ3BOgRmh6X/zm4k2/Vjkc8Uq3kMoA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dbaio: URL: https://cgit.FreeBSD.org/doc/commit/?id=d00b3eb7681921e974ca687151eea5f42fe81b53 commit d00b3eb7681921e974ca687151eea5f42fe81b53 Author: blitztide AuthorDate: 2022-01-10 13:10:00 +0000 Commit: Danilo G. Baio 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(-) 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 -#include #include /* uprintf */ #include #include /* defines used in kernel.h */ +#include #include /* types used in module initialization */ /* @@ -157,9 +157,9 @@ This simple example pseudo-device remembers whatever values are written to it an */ #include -#include #include /* uprintf */ #include /* defines used in kernel.h */ +#include #include /* types used in module initialization */ #include /* cdevsw struct */ #include /* uio struct */