From nobody Tue Jan 17 14:45:44 2023 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 4NxBX868wfz2sTZG; Tue, 17 Jan 2023 14:45:44 +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 4NxBX85NR1z4CVq; Tue, 17 Jan 2023 14:45:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673966744; 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=30n47W6KlxnhgI19vWZr4Uu5639oGKopROhJU+sOIEQ=; b=JD0WdYbjj/6MAm/BARntI5FFVuJx8pXOGJ5gqCn2z6gK/kBMEwzyij4zeQX6Ms7As1qmwB 1e0iDEHTe9VEGAdcAgJ0qogejtLsQGZJQXhagk6wY2Hp+S/xRXLRRABkNvcABNFUqqgOLA 6dDl4XzyUqrsUhn0eF/L9yiSS4eYEJ6IVbRVtBFs9g5ma31YcrpiGKrcsSdZ0jQmFBfO+f Wrsa0DUdD5kLoX+RKpUQ2xs4iKpzeUaLP5BrbvAm3mvTVC1DFV/FSXSk8/Wvc1kTQG0iAE 7QwcfckyZA89HHA4SbmkxWCSri8byNieMpdCeaQib67FBJU+3KF9trUrhsxPNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673966744; 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=30n47W6KlxnhgI19vWZr4Uu5639oGKopROhJU+sOIEQ=; b=BlzrmEsOKXz95UOTLDCKRlKP7eI4T3FasYsas2zkl0XWaA7f28Gt14iumgdK4KrTXmdB4t t9Y/9XSPv7aNyoGuiZA0hRQpE/4TbjtVyC5Ey0VT5AHcWu8RdAs8khRJ3mwe380kqGW4Sq JUnXxh0vlrDVIU3x1L6LAn7vCD6IOGvJLaA2EuAFoxEUigDgEnYvGbV6Dis5t1Y/0D6eMy hDzowI6tWSWAHjizVWZsW1xDlyiL7AVRufZ+1ZXXOtKxaI+mMDPgTTebvEZX31x+g0V7S8 Rs44q8U2JhROrKT9mTsC55vsNyEZdValdr2696EVxDa2utwYmYgRClH3U3Kb8A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673966744; a=rsa-sha256; cv=none; b=C0ij22F/Wyh5ES9RclzZ8LDs6+bUSif3zOJ1fDRUyz0kf4Y92tbsfA4uwiSx8pO7bStTFY u55uiAvgvSw+jC13G1405tuO+XaJ5ersaP/MfZ1Nyq1Vb/dqUpZ1kfvUt9zNTKfpDGsJF4 /Kbe5JC+ki6S7XJ3QWcBDk0rtF0vnHReMeq2VOqp9N6gE4kaiHJ9J6enM2qq1gA9opbxvc 4Ktbpj8YTKYtw/hUwdoA7M9Y3lcyq67+irrieN6v5O4QE3var15+rlH+W+pxaWEjH869Kq CnHHxaEJz27lnp39pky5Pamo6p4OfOTqfQKoaIGDxiU4swJxNEcmQ1KKe5qyOQ== 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 4NxBX84PftzbPr; Tue, 17 Jan 2023 14:45:44 +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 30HEjibj033666; Tue, 17 Jan 2023 14:45:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30HEji7c033665; Tue, 17 Jan 2023 14:45:44 GMT (envelope-from git) Date: Tue, 17 Jan 2023 14:45:44 GMT Message-Id: <202301171445.30HEji7c033665@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: e262610007f0 - main - netlink: Make the writers function table static and const 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e262610007f01398630dc8ce7bf404dbcfd6350c Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=e262610007f01398630dc8ce7bf404dbcfd6350c commit e262610007f01398630dc8ce7bf404dbcfd6350c Author: Mark Johnston AuthorDate: 2023-01-17 14:37:21 +0000 Commit: Mark Johnston CommitDate: 2023-01-17 14:37:21 +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 --- 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: