From nobody Sat Oct 01 17:03:30 2022 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 4Mfthy38nSz4d33K; Sat, 1 Oct 2022 17:03:30 +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 4Mfthy2cLXz46H6; Sat, 1 Oct 2022 17:03:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664643810; 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=q6XEktVkd8nHbaKBYmkVIOssTTeSVLp9JIbFYtzDy8E=; b=I0Z/bN4iDXaV5BHa/HenVI7gryt+Sk3rLlNqMloKqXmLaOtyjS+tK5ILVlQ/NzNf9phOF5 9Rq/fMMtH4a81P2y1XYhoxt6LwT1J+ILDM+MBjioblEIAPSPjLpK8N+eLHaxvIMtZCJSSs i1C7rnLQVCgfuemfqWsd9y262JPNRYGlaFUitj0ZaMQTnjf7GcaC4CVuZSTYd2vHvKiSHL DbHBEc2bCVb9ApZvWWso1CjwMYxtdTHUZZZo2g228YD3L0EdUubJXrxcE/QDwm9ssL5cAK CUZBBTiioo+DoGmssi3IXuCLHqDwaAHjuhuuL+xd6Ntp/VXS+QDZzG0ACrBxZQ== 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 4Mfthy1dDTzbbB; Sat, 1 Oct 2022 17:03: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 291H3Ub6010742; Sat, 1 Oct 2022 17:03:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 291H3Up6010741; Sat, 1 Oct 2022 17:03:30 GMT (envelope-from git) Date: Sat, 1 Oct 2022 17:03:30 GMT Message-Id: <202210011703.291H3Up6010741@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Alexander V. Chernikov" Subject: git: dddafa8d25c6 - main - netlink: make test-includes happy by hiding most of the header contents under _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: melifaro X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dddafa8d25c6ba57c64c0363d8a4791470d465e0 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664643810; 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=q6XEktVkd8nHbaKBYmkVIOssTTeSVLp9JIbFYtzDy8E=; b=P12Drs8CzLx/dvQCL67ar0nnrngvLGn3uUcGD2hK0oK33sPVZfENCWMvBF9PCEkV05IZMC uqbsx9+vGkDxBsORIA8DLXK9Wg1hdoZDLpfNHdXHoiY+UNjvmYsyzHxB1UO3ApSfOWJmw0 z+t36Ui+IbS+potQkF38wFWm03EtYI83yReL98gQjYxBdohogmEL7fI5xHfRvSjJYmQ9Ee Q/cDRk45Xg4gOxB0RpUdFEbzGjpZFQlRmOJiX/TixVeDZZaGmSZvyWJ6jsXWAGkK5ainvM Brjo+ubSXZY9dI2VyCM9k/ZMYWOm7n3hK4B5En5taT6Z6ZYwweZ33JdyC25cNA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664643810; a=rsa-sha256; cv=none; b=A9oFz4rjoO1zNlV4o00tYaPwpHeNtqSrt9pnq0CcPJ0gFi4CamcI/Db0btxXIRAn4xfuG6 KTdkpv2A35DcnsDrSbSxtTj/IdaabOZX13GCvjBTK4DKigwGG628Sx7CUJwp5DI5z3DETA tQ4sHaYNIHpM1jW9brFUR7kvs9Dg4a5H6LmxCGpm4aoMAciAVEpN1hMEq5w9q5v2m4DpFk tXmpQUnZMPaysU1XI1qAvlWSuUbqMqB1N6Tu3zs4GCb6J6FW8IXrorrcWTzEBTOiLmy7QX 0aEALURJWtBYcTRV6ylwayXPDarjLVxl/8rrLgEB+cWXKrzlYkrnyKNVzbHgHw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=dddafa8d25c6ba57c64c0363d8a4791470d465e0 commit dddafa8d25c6ba57c64c0363d8a4791470d465e0 Author: Alexander V. Chernikov AuthorDate: 2022-10-01 17:01:53 +0000 Commit: Alexander V. Chernikov CommitDate: 2022-10-01 17:01:53 +0000 netlink: make test-includes happy by hiding most of the header contents under _KERNEL. --- sys/netlink/netlink_ctl.h | 2 ++ sys/netlink/netlink_debug.h | 3 +++ sys/netlink/netlink_generic.h | 2 ++ sys/netlink/netlink_message_parser.h | 2 ++ sys/netlink/netlink_message_writer.h | 2 ++ sys/netlink/netlink_var.h | 3 +++ 6 files changed, 14 insertions(+) diff --git a/sys/netlink/netlink_ctl.h b/sys/netlink/netlink_ctl.h index fb5a8b30e0aa..1310a5a5493a 100644 --- a/sys/netlink/netlink_ctl.h +++ b/sys/netlink/netlink_ctl.h @@ -28,6 +28,7 @@ #ifndef _NETLINK_NETLINK_CTL_H_ #define _NETLINK_NETLINK_CTL_H_ +#ifdef _KERNEL /* * This file provides headers for the public KPI of the netlink * subsystem @@ -100,3 +101,4 @@ uint32_t genl_register_group(const char *family_name, const char *group_name); uint32_t nlp_get_pid(const struct nlpcb *nlp); #endif +#endif diff --git a/sys/netlink/netlink_debug.h b/sys/netlink/netlink_debug.h index 6ff6811c6a5a..5d8fe0352a79 100644 --- a/sys/netlink/netlink_debug.h +++ b/sys/netlink/netlink_debug.h @@ -31,6 +31,8 @@ #ifndef _NETLINK_NETLINK_DEBUG_H_ #define _NETLINK_NETLINK_DEBUG_H_ +#ifdef _KERNEL + #define _DEBUG_SYSCTL_OID _net_netlink_debug #include @@ -79,4 +81,5 @@ SYSCTL_DECL(_net_netlink_debug); +#endif #endif diff --git a/sys/netlink/netlink_generic.h b/sys/netlink/netlink_generic.h index 9b411a67ab2a..f88b6b5f5429 100644 --- a/sys/netlink/netlink_generic.h +++ b/sys/netlink/netlink_generic.h @@ -31,6 +31,8 @@ #ifndef _NETLINK_NETLINK_GENERIC_H_ #define _NETLINK_NETLINK_GENERIC_H_ +#include + /* Base header for all of the relevant messages */ struct genlmsghdr { uint8_t cmd; /* CTRL_CMD_ */ diff --git a/sys/netlink/netlink_message_parser.h b/sys/netlink/netlink_message_parser.h index 06a6788b7de5..2f802b0961ad 100644 --- a/sys/netlink/netlink_message_parser.h +++ b/sys/netlink/netlink_message_parser.h @@ -28,6 +28,7 @@ #ifndef _NETLINK_NETLINK_MESSAGE_PARSER_H_ #define _NETLINK_NETLINK_MESSAGE_PARSER_H_ +#ifdef _KERNEL /* * It is not meant to be included directly */ @@ -268,3 +269,4 @@ nl_parse_nlmsg(struct nlmsghdr *hdr, const struct nlhdr_parser *parser, } #endif +#endif diff --git a/sys/netlink/netlink_message_writer.h b/sys/netlink/netlink_message_writer.h index 95f6dd8e6da0..424983282e59 100644 --- a/sys/netlink/netlink_message_writer.h +++ b/sys/netlink/netlink_message_writer.h @@ -29,6 +29,7 @@ #ifndef _NETLINK_NETLINK_MESSAGE_WRITER_H_ #define _NETLINK_NETLINK_MESSAGE_WRITER_H_ +#ifdef _KERNEL /* * It is not meant to be included directly */ @@ -248,3 +249,4 @@ nlattr_add_string(struct nl_writer *nw, int attrtype, const char *str) #endif +#endif diff --git a/sys/netlink/netlink_var.h b/sys/netlink/netlink_var.h index 40d3870fd795..130f3d40a1a3 100644 --- a/sys/netlink/netlink_var.h +++ b/sys/netlink/netlink_var.h @@ -28,6 +28,8 @@ #ifndef _NETLINK_NETLINK_VAR_H_ #define _NETLINK_NETLINK_VAR_H_ +#ifdef _KERNEL + #include #include #include @@ -140,3 +142,4 @@ int nl_receive_async(struct mbuf *m, struct socket *so); void nl_process_receive_locked(struct nlpcb *nlp); #endif +#endif