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 69DB845E33; Wed, 4 Dec 2024 22:41:17 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 97C7E40E50; Wed, 4 Dec 2024 22:41:13 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 3CAA34029B for ; Wed, 4 Dec 2024 22:41:10 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1213) id 57F1720BCAF9; Wed, 4 Dec 2024 13:41:09 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 57F1720BCAF9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1733348469; bh=+01XTszN4KSSnFUOGxhcaMh7w8UwiGw0R/znjDkYVi8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n7Lw+FJG4hmZnKtg5MsxmWd5ZeqPYvjRnwCyjDYnD1H9w3hKqDtYkz3/TYVDfRlhI rEzWoGyznuCB/xdKEhik/0mqwjP9Qt3HRhpHIAroxaQ21AL0yBucPXjyT6PX2AVwoK 6th+Q4XO/KJRFMFAUzLg+v3KmBFr8hC/1w4jwA68= From: Andre Muezerie To: dev@dpdk.org Cc: Andre Muezerie Subject: [PATCH v2 0/6] eliminate dependency on non-portable __SIZEOF_LONG__ Date: Wed, 4 Dec 2024 13:41:00 -0800 Message-Id: <1733348466-16057-1-git-send-email-andremue@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1733342995-3722-2-git-send-email-andremue@linux.microsoft.com> References: <1733342995-3722-2-git-send-email-andremue@linux.microsoft.com> 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 Macro __SIZEOF_LONG__ is not standardized and MSVC does not define it. Therefore the errors below are seen with MSVC: ../lib/mldev/mldev_utils_scalar.c(465): error C2065: '__SIZEOF_LONG__': undeclared identifier ../lib/mldev/mldev_utils_scalar.c(478): error C2051: case expression not constant ../lib/mldev/mldev_utils_scalar_bfloat16.c(33): error C2065: '__SIZEOF_LONG__': undeclared identifier ../lib/mldev/mldev_utils_scalar_bfloat16.c(49): error C2051: case expression not constant Turns out that the places where __SIZEOF_LONG__ is currently being used can equally well use sizeof(long) instead. v2: * fixed typo in commit message Andre Muezerie (6): drivers/bus: eliminate dependency on non-portable __SIZEOF_LONG__ drivers/common: eliminate dependency on non-portable __SIZEOF_LONG__ drivers/dma: eliminate dependency on non-portable __SIZEOF_LONG__ drivers/net: eliminate dependency on non-portable __SIZEOF_LONG__ drivers/raw: eliminate dependency on non-portable __SIZEOF_LONG__ lib/mldev: eliminate dependency on non-portable __SIZEOF_LONG__ drivers/bus/fslmc/mc/fsl_mc_cmd.h | 2 +- drivers/common/cnxk/roc_bits.h | 4 ++-- drivers/common/nfp/nfp_platform.h | 4 ++-- drivers/dma/dpaa/dpaa_qdma.h | 2 +- drivers/dma/hisilicon/hisi_dmadev.h | 2 +- drivers/net/ena/base/ena_plat_dpdk.h | 4 ++-- drivers/net/hns3/hns3_ethdev.h | 2 +- drivers/raw/ifpga/base/opae_osdep.h | 4 ++-- lib/mldev/mldev_utils_scalar.h | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) -- 2.47.0.vfs.0.3