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 AE68E43A4A; Fri, 2 Feb 2024 06:13:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 365764026E; Fri, 2 Feb 2024 06:13:51 +0100 (CET) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id 024064021D; Fri, 2 Feb 2024 06:13:48 +0100 (CET) Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1d928a8dee8so19723695ad.1; Thu, 01 Feb 2024 21:13:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706850827; x=1707455627; darn=dpdk.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=4JSKdPEGErL430CMGN7lUjKMWV7dace+0tHoM2575RY=; b=KAZV6ejBPysouxxe2ecHN8RxkiloSwXWQZNbIthUg4wIPt3pIiYmtcIWS/Hy5At7yN +7y5ZU4s+1IkBVpozbZ6dtgTS5SEwfzyO+zLdMfImvbo3vdU55Qf7rumHyRGCHq0uMjo 3mfHcp+iAKsKtojLv/c/6/Y1Ii2W1Gm0ZM0q7mQSAif2yS+BiNOpM3RrT7CgIbKkrjAo QgudecpanHlk1UZg+VAUDz8GvEe9H+o8br4vd+yO2sWdaK/5IMqCAJFMIQuHvMo19Rdd PB9f7rWB//AlGBMbgQLWTiI440I1EmKrln9RrwiXbQKUnI9YWa1ERlptxQzDjA76jJcv 4w7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706850827; x=1707455627; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4JSKdPEGErL430CMGN7lUjKMWV7dace+0tHoM2575RY=; b=oL0FIRH7t/m25DnFwPsJSqFsUzoC/6aosIUBlyxpt+9Dbm7wJOx/zou+VUa+rmoAIx jlyzJUPCBf1sQ6ZIk8TDIMITQKabcUVe3gi4kohbRgaksusRcIX+CMCF/QEe+CB5/TuE 7uLJYrOjK0IwphEmsv57pkm4NeT+XnDWV/d3CU5FkgoZvx46UuUszxJvN1QnddLym3wb t0BiKChZR7O0PlMCpcF4gC7Gqnk9kFu0XGD+nu/zRBQoDd4iVH8bDImor88+hysdnOfq dX25XZTzUaBLVqBo1DWGJgQacXtGlZKM5jLGN1PE6aSE4pvLDJBhRiCkDpXOO/jSfIrD U4pA== X-Gm-Message-State: AOJu0Yzmljs05AnOZpFLH1GP85IKw2Gb+UzkEiqQ6f7oVx0ISGXAvbgb Pf9ElFs8niKGlKjkPv+oBRO9rMcdEFtYTPNR3L7MkJXkve0N99LTpQ6hiwcda9U= X-Google-Smtp-Source: AGHT+IFs7RpJT7vS/mnLFl6BcbSeAQswYzRedPNOEnRfAD56SqJsJCqNVl8AMnkXZ42v8KZKEPzzJA== X-Received: by 2002:a17:902:ecc6:b0:1d8:cfc9:a323 with SMTP id a6-20020a170902ecc600b001d8cfc9a323mr1625169plh.34.1706850827141; Thu, 01 Feb 2024 21:13:47 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVAgm2mw7nx/RD8WKCZlNL9U/EGCzbcTNABwi0IoAuiSKNceW8lZRAHMJJ7TQQbFFSWpPtp4drVuTNBcYLAvwO03mq0KvsCBhpCCOMT7Vogn29B/dW+o5bF4s7dAzVHVJ4g1815+0uniasTp++nC3si Received: from asadanan1-lnx.qualcomm.com (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id kt5-20020a170903088500b001d8cb103327sm686864plb.215.2024.02.01.21.13.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 21:13:46 -0800 (PST) From: Ashish Sadanandan To: dev@dpdk.org, Thomas Monjalon Cc: Ashish Sadanandan , nelio.laranjeiro@6wind.com, stable@dpdk.org Subject: [PATCH 1/1] eal: add C++ include guard in generic/rte_vect.h Date: Thu, 1 Feb 2024 22:13:35 -0700 Message-Id: <20240202051335.776290-1-ashish.sadanandan@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 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 The header was missing the extern "C" directive which causes name mangling of functions by C++ compilers, leading to linker errors complaining of undefined references to these functions. Fixes: 86c743cf9140 ("eal: define generic vector types") Cc: nelio.laranjeiro@6wind.com Cc: stable@dpdk.org Signed-off-by: Ashish Sadanandan --- .mailmap | 2 +- lib/eal/include/generic/rte_vect.h | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.mailmap b/.mailmap index aa569ff456..3938ace307 100644 --- a/.mailmap +++ b/.mailmap @@ -140,7 +140,7 @@ Ashijeet Acharya Ashish Gupta Ashish Jain Ashish Paul -Ashish Sadanandan +Ashish Sadanandan Ashish Shah Ashwin Sekhar T K Asim Jamshed diff --git a/lib/eal/include/generic/rte_vect.h b/lib/eal/include/generic/rte_vect.h index 6540419cd2..3578d8749b 100644 --- a/lib/eal/include/generic/rte_vect.h +++ b/lib/eal/include/generic/rte_vect.h @@ -15,6 +15,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #ifndef RTE_TOOLCHAIN_MSVC /* Unsigned vector types */ @@ -226,4 +230,8 @@ uint16_t rte_vect_get_max_simd_bitwidth(void); */ int rte_vect_set_max_simd_bitwidth(uint16_t bitwidth); +#ifdef __cplusplus +} +#endif + #endif /* _RTE_VECT_H_ */ -- 2.31.1