From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C2A394331D; Mon, 13 Nov 2023 18:06:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 366E8402CF; Mon, 13 Nov 2023 18:06:18 +0100 (CET) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTP id 510374026C for ; Mon, 13 Nov 2023 18:06:16 +0100 (CET) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1cc938f9612so28595105ad.1 for ; Mon, 13 Nov 2023 09:06:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1699895175; x=1700499975; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=IhqeX7JZWrkYMET5qnE3Y+/pwN/cRB7Pk/+QwGtFOr0=; b=RncOLlqaA6YvHBRz6f/RSfiuCA6jucuEU3xfn7Sl0JoWjSKSozzcxnHOWWBy40ub9U StnADCOX2hdsNf+7Wru4NvMZXT2KuoAjiNm23n9ZFHw1oShfQsKpg3ZYwvLKMp/g1XPL XEtxzkC+TEkayG8bDbIydQQF4YAzYTogkGOOUE81kL+8YzDxzSlep1J6H8NuXC81UJes 9KfpWW3emjFA1DI4ToIJJdgRP8J5LYBGXM+DtumjNmFm5MYqdaAcwbF6REGAGXr1XHlp f0drJvczqUJUSSw2GTev55AdoFJlP/em6f96FnCJtGPt048dSXgf9HFCDtWA+DE/ISRf SxaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699895175; x=1700499975; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IhqeX7JZWrkYMET5qnE3Y+/pwN/cRB7Pk/+QwGtFOr0=; b=qjOFSRYGfRFJclpTzY17JynHj1ScMz5liTAC5eD6pg95Nc+9nkzX2Uk7E3CV46qOnS osZGjFlr3rYcJfm+4gVlf3hW0Lw5n+z2vH+qS9sLy4V/BjqTQrtuwX6tcs0veNBxUJxD YMKDKXjhMTMuRx3/ogYN4+yvnaUcvyGcsa2+TSwD9XgANIm2UkVAHAEhk1iTqbXMfY8o MN0dEy9k/4Z6T1ekJpaLFWdlRwOzY8gcFBkSR3nWaRivIFyVl1SKiJzw6iNcnmBg4Goi CIx1r1QEUH0At/dUPwrbYCqIXoA5U5K7XJM8GqX2tdALeQy3vweIGBnTez1AEbmiO6c7 VL+A== X-Gm-Message-State: AOJu0YxBqbfuZ6l2+CQZtB3rKy5qMrZYyBbbWPFQj7wLSMAmib/j1Dj8 5ZVSLF4eVPIvL238a2VIq1cuMUPZVM8LHteeHDs= X-Google-Smtp-Source: AGHT+IHXPJu7/0Fe/MNSL5NmkHLWycvzGwp2vbVrHnUnUEaeHmWJJi8T3y60H9CDjkpXOVArrmkzsA== X-Received: by 2002:a17:903:41c2:b0:1cc:45df:4701 with SMTP id u2-20020a17090341c200b001cc45df4701mr177205ple.26.1699895175046; Mon, 13 Nov 2023 09:06:15 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id l4-20020a170902eb0400b001c61901ed2esm4232051plb.219.2023.11.13.09.06.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 09:06:14 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v2 0/3] use static_assertion for build errors Date: Mon, 13 Nov 2023 09:06:02 -0800 Message-Id: <20231113170605.408281-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231111172153.57461-1-stephen@networkplumber.org> References: <20231111172153.57461-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This series fixes a couple places where expressions that could not be evaluated as constant early in compiler passes were used. And then converts RTE_BUILD_BUG_ON() with static_assert. Stephen Hemminger (3): event/opdl: fix non-constant compile time assertion net/sfc: fix non-constant expression inr RTE_BUILD_BUG_ON() eal: replace out of bounds VLA with static_assert drivers/event/opdl/opdl_ring.c | 5 ++++- drivers/net/sfc/sfc_ef100_tx.c | 7 +++++-- lib/eal/include/rte_common.h | 3 ++- 3 files changed, 11 insertions(+), 4 deletions(-) -- 2.39.2