From nobody Mon Oct 31 15:04:11 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 4N1GdR2wb9z4gQrC; Mon, 31 Oct 2022 15:04:11 +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 4N1GdR2Rgwz3S0C; Mon, 31 Oct 2022 15:04:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667228651; 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=R2ipV27ja7py/0R8LJaeAirXnlIDLkFYM1pPjMpBEE8=; b=xOwo4ggWpuLWVc9q8jLpKl5+MKsUK6rDHPXYaz5EVvjk1V9WNH86L2NX/PIGYyz9QsRXNB gLrqgeT0EnE/u0A2VIflysY9Z53oK3e/VzrLidqZCiNGrxD7oNBEnrD8/yVnfMpRbp+2Xu HbEXOj+ROBQlNnG6D2R6YJ0yZdFBnYZKqo7IFyhNXV9pFQGdeEcEeCJ0c1eEpYqfgCSXC9 geApMNhFdqlBPZFW4vYpIH/F+LSIW6vC2DcKc9BP+O35FvE0/J/nFEiBmM69KIzEyLNWGQ 7mWD6HTahJTL2UxT/wxtIsGYvwq6q4i+6Y4P8nzpRDv9h5rjXrxxHX4XshKY0A== 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 4N1GdR1SzZzgMV; Mon, 31 Oct 2022 15:04:11 +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 29VF4BsF019012; Mon, 31 Oct 2022 15:04:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29VF4Bsk019011; Mon, 31 Oct 2022 15:04:11 GMT (envelope-from git) Date: Mon, 31 Oct 2022 15:04:11 GMT Message-Id: <202210311504.29VF4Bsk019011@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: 03de61aabb40 - main - netlink: fix NLMSG_SPACE() macro. 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: 03de61aabb40dab3c7311e1664c85e41dafe29b4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667228651; 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=R2ipV27ja7py/0R8LJaeAirXnlIDLkFYM1pPjMpBEE8=; b=rQgITdDwjFBMOmBpuO+aLmAxES8EEcLxtDb5p/O2Oym27PvzRjuLunHQnB1xP2B9z5XqbN qIgW+cKF5nbI5L7EgDWWlD2k5d96KiTnrlCengmRk0OWIZPLp35mUclJwsrkCTMQ2/hWm6 K/K+efnVeoS+nsuNwW25V9Jka7bWjuwZcJkE84+aW6AiShHkCotafsoY4tIl5Dlmf6Rv6k ftYJlFfBjFmQoOq/mIEgjyR5z8pHwR/4GtpljQsRxP689Kq79jQHNtCL/AADlVo87b7E9R eLSdmKKasvXrGobSJ0Re+Zdv1A3mngKc8oFjZabOb26rx7wgr7jP/tgs7N80mQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667228651; a=rsa-sha256; cv=none; b=W8czP1ExO66GcrB4CVioRUxYrEl6Fm/ka8EVA3dyyZBg5TRm/VK3SDn6NDemkvCKlPCbpj yu4pDxNMDbmtCL1WP62NorphIObytPSiGpkHKHnR2nYDFUXoPcR+x5sUAXH+sLTRLy297K zzCt+qDp8WVMtF/bJsbh7osAV8XMBAlpB373KW+YQkbzD8ArzMV7wthtPp0Ws9CGLkVYID d2xknPfM7fSXsnDljIJJZ7cWzsA7fU8m6wIKkKKnaVNdoESr0MzQv5bksmO42tFiyQCmqZ nUXu2vOg/Mg2iriLPqMKh+ah8CGQ9LYUatCxbhHQLbc/Chiet4C+AqPKhro+Aw== 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=03de61aabb40dab3c7311e1664c85e41dafe29b4 commit 03de61aabb40dab3c7311e1664c85e41dafe29b4 Author: Alexander V. Chernikov AuthorDate: 2022-10-31 15:02:12 +0000 Commit: Alexander V. Chernikov CommitDate: 2022-10-31 15:02:12 +0000 netlink: fix NLMSG_SPACE() macro. Reported by: bapt --- sys/netlink/netlink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netlink/netlink.h b/sys/netlink/netlink.h index 6a68dcec1382..3623ae754951 100644 --- a/sys/netlink/netlink.h +++ b/sys/netlink/netlink.h @@ -205,7 +205,7 @@ enum nlmsgerr_attrs { #define NLMSG_ALIGN(_len) NL_ITEM_ALIGN(_len) #define NLMSG_HDRLEN ((int)sizeof(struct nlmsghdr)) #define NLMSG_LENGTH(_len) ((_len) + NLMSG_HDRLEN) -#define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(_len)) +#define NLMSG_SPACE(_len) NLMSG_ALIGN(NLMSG_LENGTH(_len)) #define NLMSG_DATA(_hdr) NL_ITEM_DATA(_hdr, NLMSG_HDRLEN) #define _NLMSG_LEN(_hdr) ((int)(_hdr)->nlmsg_len) #define _NLMSG_ALIGNED_LEN(_hdr) NLMSG_ALIGN(_NLMSG_LEN(_hdr))