From nobody Mon Dec 06 15:56:30 2021 X-Original-To: dev-commits-src-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 CBFF218C58E8; Mon, 6 Dec 2021 15:56:34 +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 4J77Mh34vwz4blh; Mon, 6 Dec 2021 15:56:32 +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 4AA086925; Mon, 6 Dec 2021 15:56:30 +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 1B6FuUSx033613; Mon, 6 Dec 2021 15:56:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B6FuUJ0033612; Mon, 6 Dec 2021 15:56:30 GMT (envelope-from git) Date: Mon, 6 Dec 2021 15:56:30 GMT Message-Id: <202112061556.1B6FuUJ0033612@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: e680a6674485 - stable/13 - sys/devctl.h: Only declare kernel functions in kernel. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/stable/13 X-Git-Reftype: branch X-Git-Commit: e680a66744859427c5ed2f610cbfbd23668295bb Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638806193; 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=fUSKbekQnmQZdhv85tlW+CbX1FRd4JyvIqsOuJ1FP4o=; b=kcthAcZPaS74IkMt3vmHwGT5s/v8P7SeVVVQnrGRaxLjwCzVrSw8cBdxE+qGS8kPgaTLSu j5rhUPsebIEhZ27AZGjMbgeH8/SHSL9PuJLe3z00HZ4M6enQr1Kg2olZi/9hrd7R/DKnD5 EhOJ+0WR9LMh0LoBDhoGIn0wktCsA9AANjWJdRGRVQppCWHbvXFAF8ualr9USLU7lltyIq jD+4gZXTsmyWOv8yVibG15vEt7csn9DBHWhNdSECl3ekzpe3B9J8FVuoVvNr9BO7aizOa4 pdOYu46Hj6mTIZLkXyiwKJdcNl3JSxL+hVi8eMrw/RoL6ZonWAiSTo+AszAaxA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638806193; a=rsa-sha256; cv=none; b=jer8jYVEoHpHOAhDHwcREha4V+G20371o1gymFpR3fQVCotNcU6rOxSBf3MSsAfzq9EnAh a3sXCpHKoSRZMpBYaEOjQDB5i3lVzJ/e/aV1O7lDk6oZKvk0cw3s5fJP4HWlz9D1JxYwrt JLJXvgBQc1h2fv5fixL6YXKQVR8mD0bqUHmsS18q5u7+wz9UZy2VSso4tJuEi/ncZXLFtx mHseRCh63zvqkb6+OUnQFXHSs15gHup+7ojnJ65eBZWsIfz9ZErphjvEYfZozr7vir/gQK frq5DaZzZ3tNx0OlBkIj+PvmJa6hZE+Y9yz2iwMVfEejX7QEJ7l+bUdAtR9GWg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=e680a66744859427c5ed2f610cbfbd23668295bb commit e680a66744859427c5ed2f610cbfbd23668295bb Author: Warner Losh AuthorDate: 2021-11-24 03:28:45 +0000 Commit: Warner Losh CommitDate: 2021-12-06 15:55:57 +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 (cherry picked from commit ee2c52fd3fd9dd19c1f7117cdda968ec4e08c898) --- 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_ */