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 D51D843C60 for ; Thu, 7 Mar 2024 02:33:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CA1E142E64; Thu, 7 Mar 2024 02:33:23 +0100 (CET) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by mails.dpdk.org (Postfix) with ESMTP id 7D07242E64 for ; Thu, 7 Mar 2024 02:33:22 +0100 (CET) Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4130df89d3aso2598615e9.0 for ; Wed, 06 Mar 2024 17:33:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709775202; x=1710380002; 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=xihGNUURiWOT5WNWy0s5/Y8qGv8Z/ftXkTg/LcACp+w=; b=ZNo4PvxEw+59aF1GPQaSfyXYNKVVXj2dfg5Lkach1eBLYb/TDgpVUDfyX9lVaZ2Nkl 0jpMpDunsYvjw/GL2NlHb6nfBMhmdFYf3RS9NGTqPpkjBtPggOYy/KS8VwwPQP0o34cN sqx/fTU3GFw+mZfrast8wdfgfJxZB7mNVRMukDKFBQtia1yhVtXVXeM22wpSVtiKcTeo jP8f5UXmeP8D8j1qnf44vekZ7hkH7+h53QI7WVVibz/541EEVSiuu02n1yTohT5ixIx7 zby2W8Sw4ElyyER6APYMYT2sUKn7qslvFrWnMV61xgXoWM6dwK2IxqkcnH5VQc+SX2aC ImYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709775202; x=1710380002; 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=xihGNUURiWOT5WNWy0s5/Y8qGv8Z/ftXkTg/LcACp+w=; b=VWz/eOjKkNZ7f0Sm8igUfMYdabNCdRKSIcfxiELpVfk7/Cv1cfk1BKt6ilMMUf+WQ0 UO0gPx8iOtGzcZ7jFGP07pBhWTFXpyR+OSX8JrQoG2DbPTwC0HnBVNckT+k6eeInotLz MaXT0oRAy67h+IherOXbAkkHn8oZUdyJRo5fNg31SaPk5SRksp6lb534VkFKk9BSBd/6 Ge/SCR7/VmmWynRAYEUAsOdZAeWzFvunoUaNaN4UCzxuj/5rzKGJnH7EtpiOId3kGNjP X/VxBiEnq11pfZtFti9QCYOlZ6DOouf8wsraYPqhI5ZjT6RUmTbMkQxp546N+feufenm kLDg== X-Forwarded-Encrypted: i=1; AJvYcCXjPBX+c3eiqp171sedKDlRK19KTAPz0w5dKfeWNkVwsxjyyCQ4Nj1vGQqinR0TlJZ46AhDsYcuyFex8FLWam8= X-Gm-Message-State: AOJu0Yx9Anf7iB74WqJOdKHNC6l9LUnmiLs38CmUudNVFYP1wla16+Or wr82kttZGosfV8WxKmFOuRBQQPK1iQi4pnnQgqGkQTmglsrXg4zU X-Google-Smtp-Source: AGHT+IFULi00GlJigTKeKNucfJgmcL+jVw2pxFypN5gg+Gsl4m5ECu4joAxeCx++u441Ew6Yn3SJDQ== X-Received: by 2002:a05:600c:198c:b0:412:c7d9:bd96 with SMTP id t12-20020a05600c198c00b00412c7d9bd96mr13093550wmq.8.1709775202130; Wed, 06 Mar 2024 17:33:22 -0800 (PST) Received: from localhost ([137.220.120.171]) by smtp.gmail.com with ESMTPSA id d13-20020a05600c34cd00b00412ff1acf05sm893037wmq.7.2024.03.06.17.33.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 17:33:21 -0800 (PST) From: luca.boccassi@gmail.com To: Stephen Hemminger Cc: Bruce Richardson , Tyler Retzlaff , Andrew Rybchenko , dpdk stable Subject: patch 'event/opdl: fix compile-time check' has been queued to stable release 22.11.5 Date: Thu, 7 Mar 2024 01:30:37 +0000 Message-Id: <20240307013159.1735343-20-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240307013159.1735343-1-luca.boccassi@gmail.com> References: <20240307013159.1735343-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 22.11.5 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/09/24. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/0de12cad1bc1661272a25f59a8767a8c38743843 Thanks. Luca Boccassi --- >From 0de12cad1bc1661272a25f59a8767a8c38743843 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 18 Jan 2024 08:50:57 -0800 Subject: [PATCH] event/opdl: fix compile-time check [ upstream commit 3b342be177979eeaf020b75a2c5ec21bcdbc07ea ] RTE_BUILD_BUG_ON() was being used with a non-constant value. The inline function rte_is_power_of_2() is not constant since inline expansion happens later in the compile process. Replace it with the macro which will be constant. Fixes: 4236ce9bf5bf ("event/opdl: add OPDL ring infrastructure library") Signed-off-by: Stephen Hemminger Acked-by: Bruce Richardson Acked-by: Tyler Retzlaff Acked-by: Andrew Rybchenko --- drivers/event/opdl/opdl_ring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/event/opdl/opdl_ring.c b/drivers/event/opdl/opdl_ring.c index 69392b56bb..da5ea02d19 100644 --- a/drivers/event/opdl/opdl_ring.c +++ b/drivers/event/opdl/opdl_ring.c @@ -910,7 +910,7 @@ opdl_ring_create(const char *name, uint32_t num_slots, uint32_t slot_size, RTE_CACHE_LINE_MASK) != 0); RTE_BUILD_BUG_ON((offsetof(struct opdl_ring, slots) & RTE_CACHE_LINE_MASK) != 0); - RTE_BUILD_BUG_ON(!rte_is_power_of_2(OPDL_DISCLAIMS_PER_LCORE)); + RTE_BUILD_BUG_ON(!RTE_IS_POWER_OF_2(OPDL_DISCLAIMS_PER_LCORE)); /* Parameter checking */ if (name == NULL) { -- 2.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-03-07 01:05:36.741659262 +0000 +++ 0020-event-opdl-fix-compile-time-check.patch 2024-03-07 01:05:34.694937810 +0000 @@ -1 +1 @@ -From 3b342be177979eeaf020b75a2c5ec21bcdbc07ea Mon Sep 17 00:00:00 2001 +From 0de12cad1bc1661272a25f59a8767a8c38743843 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,2 @@ + +[ upstream commit 3b342be177979eeaf020b75a2c5ec21bcdbc07ea ]