From nobody Wed Nov 24 04:22:18 2021 X-Original-To: dev-commits-src-main@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 84A201889BC2; Wed, 24 Nov 2021 04:22:19 +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 4HzSXB5mGKz3HZ7; Wed, 24 Nov 2021 04:22:18 +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 941C6237A6; Wed, 24 Nov 2021 04:22:18 +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 1AO4MILv049694; Wed, 24 Nov 2021 04:22:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AO4MIXh049693; Wed, 24 Nov 2021 04:22:18 GMT (envelope-from git) Date: Wed, 24 Nov 2021 04:22:18 GMT Message-Id: <202111240422.1AO4MIXh049693@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: ee2c52fd3fd9 - main - sys/devctl.h: Only declare kernel functions in kernel. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ee2c52fd3fd9dd19c1f7117cdda968ec4e08c898 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637727739; 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=7o6x7ZYnI0+ChWOmFSnSzpsmGOGaJSDzZdfpIYXi0Aw=; b=C+n2HqmJp2ff/WoHO6WXcfcLFvA3wfxc8nZE0HJ8rBHDbUI9e4ZogW1gQRIWvUZwK/zRCl H6JdilGLJzAtgtlaRh5T1sZj9jZdoAWAnqxHvIdpXlNFZxe/kzMHduEbsKX+BwKargS1xQ ah23w3phePNFljos2+zWmH7QfryP3PSLHERZ0h0Y7EMUo3obgU1OibP/fz71hv1B8Lpgsq F18IMytqiZ6ydXXgOVuIprnBfQnmBXlBqUe2bL/D4HgR2jCAmd45DMGdKi9Ye7zd3/Iu3X oeGT4gARk4LMSNFIR49BjlX3D08Lp4/kZZi6mXlXMTd6xutaGQ1/IZIjXyrTAw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637727739; a=rsa-sha256; cv=none; b=cbh6m9GvajQboDGJ43r6GtjaFShpYJdswj6xM0qOMPBgzxTwLUc/fsJtLxpk7JYLp0fqnb /FGxmVL/k+AQhNQanJoT6nmY9wpxzSVQVFNf94r9X0JM+SBjr2LVuGJDck+tFj8JA4yPau L6NvqAk7hiG0goKNQJS48hK28Az9nTzGaajqc4iIalH+Ky6Wp1dE9Ul9waO86w2nbriJe3 VnBg+W/u4L8BtIZHwk5r9vzgGYqB822clRAMaLm5nBlyFmZVOwZr8s+RjxeEBGeIk/wKw8 UUBs93GpnoKCQAkFg1m3uqu9X9iG/wKY8R8jzrA0AlrkrNlScx9cQI9xXZf6KQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=ee2c52fd3fd9dd19c1f7117cdda968ec4e08c898 commit ee2c52fd3fd9dd19c1f7117cdda968ec4e08c898 Author: Warner Losh AuthorDate: 2021-11-24 03:28:45 +0000 Commit: Warner Losh CommitDate: 2021-11-24 04:21:18 +0000 sys/devctl.h: Only declare kernel functions in kernel. Also, while I'm here, switch to newer, shorter format and fix my copyright to match the others in the tree. Sponsored by: Netflix --- sys/sys/devctl.h | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/sys/sys/devctl.h b/sys/sys/devctl.h index 144a091a3a81..2cf84e420874 100644 --- a/sys/sys/devctl.h +++ b/sys/sys/devctl.h @@ -1,28 +1,7 @@ /*- - * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * Copyright 2020 M. Warner Losh * - * Copyright 2020 M. Warner Losh. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. + * SPDX-License-Idnetifier: BSD-2-Clause * * $FreeBSD$ * @@ -31,6 +10,7 @@ #ifndef _SYS_DEVCTL_H_ #define _SYS_DEVCTL_H_ +#ifdef _KERNEL /** * devctl hooks. Typically one should use the devctl_notify * hook to send the message. @@ -40,5 +20,6 @@ void devctl_notify(const char *__system, const char *__subsystem, const char *__type, const char *__data); struct sbuf; void devctl_safe_quote_sb(struct sbuf *__sb, const char *__src); +#endif #endif /* _SYS_DEVCTL_H_ */