From nobody Mon Apr 08 19:04:17 2024 X-Original-To: dev-commits-src-branches@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 4VCz695XbWz5HYlB; Mon, 8 Apr 2024 19:04:17 +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 4VCz691sj3z4fyx; Mon, 8 Apr 2024 19:04:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712603057; 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=dsQkTde43qrA3/qdbR2yd6Tyzv3jIhHlaExpY7KAPyA=; b=iNFC+gtMwfT9sI6xwBy6FlIKAEd3rjCsGx+kKL3Vo0u0zyRu7Ie0AWc4ES4f7lBSBKPso2 3+HonxL+fv533q7hTR5+niMjawJxKsm/cgxSGYvSPlNrSU6t05vkeKOuyAdrnbeDD42gLZ HnyELxpOo6NpvTLK5J7GVqR62Qtq9Zh90BaEB10g0gvDgfRkOuA1t3F4CSYEwN/31qp2yI y8cDRRuR66CfhXU+nXm+uFFC8Keve6m7Nta3v5cqvY7MdYBWvAb1VXR5jSekCwT0Kaqk/z e/3pVLrzZQJ3UkpRs7vKBUrhnk0VyYWYkSkK0nhLt+4Mc/uzEZ8AsQljV86zXw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712603057; a=rsa-sha256; cv=none; b=lAlWO+u2RtFW0r48wk7CuovwE0FiQU79ocliESPkq3XWT+odbpJAYAcakALkkvSDT0/s4B gQ3f6JuiW5yiGSRyNMFMz7eP9rdLpxEyn7B98bR4nGXuUa0CflT4RAooBVzJ48n6h5HckK IDZcndbSml3SKMtGQJcUFpncUYMzTUtU+CbcjQK9v+IL8kfKxMqJxj62AA/8oJl5zUOG6v 1YN1QmX9p8mMBgUMpIzyUIDsj0mtEzJV+PHXrNZbN4M3SPgg+NCIeeitp86I37PeC+9P7K XJeVbX79xCQSQlFvF0RTtBOq+evx6tJ/UPoh4NfFGdiB3E+WxL+sDqTD3Mm4HQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712603057; 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=dsQkTde43qrA3/qdbR2yd6Tyzv3jIhHlaExpY7KAPyA=; b=VyIqqoQiiy9VcPyY3VY+zs+YU397mwectbNIlgn9I1iQJUZbv3ocTk8vAkxXcSgWSdSVIh pUO1aLjFjWgoplXYizCf9PFAYqTmMEnrn/hjmQ45c4Fh9jsr8qQ81RVH7PWKAe9QgrOWz0 YIUjVgbrp4/rb4ckQZ3/bgU5INuVD2JRz0PYxKGXq+5v0/Z52WTLVmbfzaCWHnkhR/VYR9 UK1cDQWVcNNAjIpRpOdA7+M+izrVa+7jzAHcrvG2BShPo5XohtPNRiIhXEOS0BZNa2QIPr D1upWcWaH4i8XoRQ1l/fEaOuTl6rYvubCWYuhUprgKP0pW7iaOLN/96T7XgXsA== 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 4VCz691ML4zNQ9; Mon, 8 Apr 2024 19:04:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 438J4HPD093696; Mon, 8 Apr 2024 19:04:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 438J4HRh093693; Mon, 8 Apr 2024 19:04:17 GMT (envelope-from git) Date: Mon, 8 Apr 2024 19:04:17 GMT Message-Id: <202404081904.438J4HRh093693@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 4fa4e6a3c80e - stable/14 - netlink.h: s/typeof/__typeof List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 4fa4e6a3c80eb3a4f34877fcff60016e93e4be9d Auto-Submitted: auto-generated The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=4fa4e6a3c80eb3a4f34877fcff60016e93e4be9d commit 4fa4e6a3c80eb3a4f34877fcff60016e93e4be9d Author: Lexi Winter AuthorDate: 2024-01-18 02:34:39 +0000 Commit: John Baldwin CommitDate: 2024-04-08 17:37:44 +0000 netlink.h: s/typeof/__typeof typeof() does not exist in -std=c99 mode and the relevant #define is only for _KERNEL, so use __typeof here instead. Reviewed by: jhb MFC after: 2 weeks Pull Request: https://github.com/freebsd/freebsd-src/pull/1070 (cherry picked from commit 4261507a5e3e73ef6f9535935d22785056954b19) --- 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 759bbed6139c..2cffa7299ef4 100644 --- a/sys/netlink/netlink.h +++ b/sys/netlink/netlink.h @@ -204,7 +204,7 @@ enum nlmsginfo_attrs { #define NL_ITEM_OK(_ptr, _len, _hlen, _LEN_M) \ ((_len) >= _hlen && _LEN_M(_ptr) >= _hlen && _LEN_M(_ptr) <= (_len)) -#define NL_ITEM_NEXT(_ptr, _LEN_M) ((typeof(_ptr))((char *)(_ptr) + _LEN_M(_ptr))) +#define NL_ITEM_NEXT(_ptr, _LEN_M) ((__typeof(_ptr))((char *)(_ptr) + _LEN_M(_ptr))) #define NL_ITEM_ITER(_ptr, _len, _LEN_MACRO) \ ((_len) -= _LEN_MACRO(_ptr), NL_ITEM_NEXT(_ptr, _LEN_MACRO))