From nobody Sat Feb 18 11:55:49 2023 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 4PJnFK364Vz3s7V6; Sat, 18 Feb 2023 11:55:49 +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 4PJnFK2HGyz3CMc; Sat, 18 Feb 2023 11:55:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676721349; 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=untMvK1kQj28LK/GIPu4D3FNJgkF3pl3xJ4QIdlP0Es=; b=TfQOoFdDSGRZFClUvGIG1IUmnVjcktArjBb4xL8LyBLj1S3SkHnBFbK7+ts6sKWhO2lB7R uoMF3CHHPHpUBkNpTgEcef4BwpLalNPKmU95sUYhd9f+UiPqhnhRFObwJ3A/dBSCFXPvHV zHt0GFplS4rANYTrS3BjCjt2h2Gtzx+Sn42IIoFG8MQWLs28+8xdhEBhJK4R3omktoS+t9 103rMXhHMNPuc0mOIAri7YIIc6WpHVkgejkzsMbX5JlWf4H11Y0mCoXjpipUZjwJ8yHkdd ZR3iP6kXBYJUpjkcExDkOSOloD79inFMho95zy9kPy42W+/yN+B2nooOi0R6Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676721349; 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=untMvK1kQj28LK/GIPu4D3FNJgkF3pl3xJ4QIdlP0Es=; b=iMS9ISA57YAOXJXNC7EL93zBmtgLmwWAtDZWX2noo2iNVLnCqX9heORgNtgT+0NGJEwJYh ibbVw3mquEmsdJuzHGai8leb2eD3lIfF8sW/Cj/OO/g1WvXB/dUWB1S7a3aWuxLjZYa6nt yPvv/0IRhYvyei64Ju6k04K6mg6jpCVwLgwXVn42CoQvXRenfTG2xTqpgQAIyve90wliCu 8+ja2WQQ6E1sLqF0xlnPrvpMrMIC3GMPT0sJjaFe91ZiPbdLC2VbDUgYEaJpItGMdIz/y+ Daq+dJkVweBOZb1Gr0JNf2sEOkIvK7N1F3Dsu9pq0lpnV+ibA7lsbwLlRja4LQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676721349; a=rsa-sha256; cv=none; b=dTcuLYgh0KcyI4ORbW4py7cQbE3ME7tY4mwoFDywhcklIApRd7NUrNyo6QeNkXJLTR5sZA 8Eh6cljEstXWhH0rwncvSdjIs9nYAfWIiWXKZeDg7p25i5WRpPzvC/ml0FTMI6KnGiSVMz vkPaLelL99rj7fAE1WzhO1kJ5ou5qNk4g5wPUYqYbg+KRQF7WXucBR1D/ksPFD19+gNzRR 1c67pB8icAaVqZH8Pu6AB+APXNOQQXLB0w+bOgfK4vREniPraP4FUByQPbzKtywxypJ/Yd RfG6zug5D+bASc6plb+ssK9vM26XhqR7uq+XYlzCCUplvZKugeskM/MrP2lJJg== 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 4PJnFK1HfTzMgS; Sat, 18 Feb 2023 11:55:49 +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 31IBtnLk069549; Sat, 18 Feb 2023 11:55:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31IBtnXl069548; Sat, 18 Feb 2023 11:55:49 GMT (envelope-from git) Date: Sat, 18 Feb 2023 11:55:49 GMT Message-Id: <202302181155.31IBtnXl069548@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Alexander V. Chernikov" Subject: git: a672b35811a6 - stable/13 - netlink: Make the writers function table static and const 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/stable/13 X-Git-Reftype: branch X-Git-Commit: a672b35811a67b57cf0fc1bee8d7c5b1785f1bee Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=a672b35811a67b57cf0fc1bee8d7c5b1785f1bee commit a672b35811a67b57cf0fc1bee8d7c5b1785f1bee Author: Mark Johnston AuthorDate: 2023-01-17 14:37:21 +0000 Commit: Alexander V. Chernikov CommitDate: 2023-02-18 11:53:54 +0000 netlink: Make the writers function table static and const No functional change intended. Reviewed by: melifaro Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D38099 (cherry picked from commit e262610007f01398630dc8ce7bf404dbcfd6350c) --- sys/netlink/netlink_message_writer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netlink/netlink_message_writer.c b/sys/netlink/netlink_message_writer.c index 6573394eb881..0d27d5d0d47c 100644 --- a/sys/netlink/netlink_message_writer.c +++ b/sys/netlink/netlink_message_writer.c @@ -368,7 +368,7 @@ nlmsg_write_group_lbuf(struct nl_writer *nw, void *buf, int datalen, int cnt) return (true); } -struct nlwriter_ops nlmsg_writers[] = { +static const struct nlwriter_ops nlmsg_writers[] = { /* NS_WRITER_TYPE_MBUF */ { .init = nlmsg_get_ns_mbuf, @@ -394,7 +394,7 @@ struct nlwriter_ops nlmsg_writers[] = { static void nlmsg_set_callback(struct nl_writer *nw) { - struct nlwriter_ops *pops = &nlmsg_writers[nw->writer_type]; + const struct nlwriter_ops *pops = &nlmsg_writers[nw->writer_type]; switch (nw->writer_target) { case NS_WRITER_TARGET_SOCKET: