From nobody Fri Jun 16 15:54:36 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 4QjNyN3qdcz4dGsF; Fri, 16 Jun 2023 15:54:36 +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 4QjNyN3Pscz4KTG; Fri, 16 Jun 2023 15:54:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686930876; 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=7MaV+v3P2t7Y71vqBVg7Y+wZfVmymebZQ9qDTwIQsjQ=; b=kaOttbPo47IRKA5OuQCq7vB/wZ7ijKt6lukljIESP7fMw9RVrMv7jjeuXMqxemowd9D7QQ 7nLh713z9eLbu/HCGKsBXCvnKdSYLL8T0QxlKWWYqGEQC522jvXTWYVZaZjXvD4c2D7YuN L7nEtoYdZzLGhCxPDG4EjQt6T7kXchbU0P3gVb5n2Vd8wAyUaahv9PMUwk8WKq9QbVHXng 03+dwtQZWkiqwT3W6KT/yWXZYl2oGa2XvuzBFOP2Wn87Fjb6HRZcfFYOPjLjGPb+LjT0uw yQAl524aOtUnFi+wZUywj7vxTgFziQiU1dxdHetoNYFnISW3ALnOb7ncPBeYQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686930876; 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=7MaV+v3P2t7Y71vqBVg7Y+wZfVmymebZQ9qDTwIQsjQ=; b=HLJXKNNO6BeyViOJ/BPVnheytIt8SF9Q+pk8vxek+tEDn3QbMANH0dyHbKztjXuhro2lDX O4ysWFM06FlYwf93SYFvYZ+gaawUS7Uji5N6hamN7EcL838AWenZ/D7KlNfxWTU6Gt4kao nTzXAqJ3Gh14hp0PPiQOOS3OGvLC40g5Wvw+IyYGGT+6/YplZX3fPYMUThCdsrKNw5lLVA 0o4k6WILkAQ/s/MPr1Hb1unYxGGwe8cH7ig9tBcwNK4s73U+r2c53yrfRfn3GsaejAzly2 jnD5SzTo9VQBiyBsw1ZzVvV62H3IpDYnjV28xADLXf3WUsJ7T2t9vycFqEpVHg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686930876; a=rsa-sha256; cv=none; b=grDyb3jp2KmHtgWkMjGQe9PxTs/5enT3GanPlCApOGJ/DpgHbE3+kFa4KZ/qqyMQPhzFxR ZOAWev9bDudlNOLUezI3w5ixY/EFMzsUtEdBJ+Btl07+GZmIaYwTHBtjIElbLIiB1gHog4 DyZHyfs+5DytrboNo4CxvDQCg6kb2PZusJSmi5I33oHzE0Q3oONiHPNNG8rjXK2svalouU oa1wb2ivOn9R7q+nMGU9MnZq1d0DrS7cknFjZxYmcf/yXbMKBxfS+k1DzaKlo6E5rOuP09 lkZK+2ekrND28JbWXYCz54DWwOVSJQYtwCjh5YmGF8Qf9MuUnO3/jXVNgFyIMQ== 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 4QjNyN2StJzYkw; Fri, 16 Jun 2023 15:54:36 +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 35GFsard089902; Fri, 16 Jun 2023 15:54:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35GFsaLQ089901; Fri, 16 Jun 2023 15:54:36 GMT (envelope-from git) Date: Fri, 16 Jun 2023 15:54:36 GMT Message-Id: <202306161554.35GFsaLQ089901@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: 511b35866a8a - main - ifnet: fix if_strings.h build check 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: 511b35866a8af69998f37be3b67859daddf5824e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=511b35866a8af69998f37be3b67859daddf5824e commit 511b35866a8af69998f37be3b67859daddf5824e Author: Alexander V. Chernikov AuthorDate: 2023-06-16 15:54:29 +0000 Commit: Alexander V. Chernikov CommitDate: 2023-06-16 15:54:29 +0000 ifnet: fix if_strings.h build check --- sys/net/if_strings.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/net/if_strings.h b/sys/net/if_strings.h index 95d85f5370ed..bea15cfa9de5 100644 --- a/sys/net/if_strings.h +++ b/sys/net/if_strings.h @@ -100,7 +100,10 @@ static const char *ifcap_bit_names[] = { IFCAP_RXTLS4_NAME, IFCAP_RXTLS6_NAME, }; + +#ifdef IFCAP_B_SIZE _Static_assert(sizeof(ifcap_bit_names) >= IFCAP_B_SIZE * sizeof(char *), "ifcap bit names missing from ifcap_bit_names"); +#endif #endif