From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (xvm-189-124.dc0.ghst.net [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EA944A0A01 for ; Thu, 7 Jan 2021 02:39:19 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DE32D140E69; Thu, 7 Jan 2021 02:39:19 +0100 (CET) Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) by mails.dpdk.org (Postfix) with ESMTP id 5FC39140E4C; Thu, 7 Jan 2021 02:39:17 +0100 (CET) Received: by mail-pg1-f176.google.com with SMTP id 15so3612424pgx.7; Wed, 06 Jan 2021 17:39:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=CToP7w6LablYqYJ0jFMsJ6wAtcTtADTDyuWQZrLoMAQ=; b=Se8KbRar6LeJlvhZwa2gN0dRjlDl3sXz+1JYvO2/jjAkdROJxYb5biJDdGlvlf7dfX vk65VPZm2ojeTwIxjIOO7jrocgOkeEy4SA+fz4EYXCLyF/5jStS4CxaH9d6dLaKRyh3R Inz9HB0HeLprsnn8aEmX+2S1ml49YoPg2N5k5THyOEqC9VnCGi6Ida8o7oGyWEf7PoD2 2EQQxI5Wmz3gU0BWyqPyE2+yzerJlRTBURITzehQkvXTAwnJ9i9/v/O7UCqa0oY0i/rz u6v3IQJUHHxVrIb4b5uZ7IsuIM2wQHqII4PfbaxmpcM5YPliy+thvwyXRCkUWY45HQHb KDJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=CToP7w6LablYqYJ0jFMsJ6wAtcTtADTDyuWQZrLoMAQ=; b=oW1tmp9M8GCc4zS8jY43iLfuuO4phDPxo9oxStAn2vPii3FMaMHgW5JifyMQBLEg8V xOCrdVyIhodQPr3k6YaQ7H9YMTsGsdLSCEBK9e4JKnV2bUVuucD56sTfJBZWWpS7V7PP cazAw3xTXk2rneKnVKL3vtQF4bjzdw4a5C+fg8r/oYC/PdkI4ywRP4Sq7jEyhnHkYZqf ozXL5ZazoYDIokB8kKEPtL9rICI3STuDRU5gymfTVi+cNUCq1jJsIidPo2FjDrFPlkZd oCEHr+9nDDOZeNU/Mf6o1wi9cCoTTnKShq26mUcV6BgYUqLGU9G3oEjIOje8csd3vNS3 IaAg== X-Gm-Message-State: AOAM531azVCtpO/jOxVaFGlyY4YObkBW0g0I27nJkYRZ2nNcG/5GUfZ5 5nUqNnTdN3VYIAeN85L3kqQ= X-Google-Smtp-Source: ABdhPJzDB40Wuq9w7yybEQnz5oxzUkTRrDRoI2MU56or35Pg0rq0CO4JpzTNpoNqC/YVMKkPu/3m9Q== X-Received: by 2002:a63:184b:: with SMTP id 11mr7517694pgy.298.1609983556543; Wed, 06 Jan 2021 17:39:16 -0800 (PST) Received: from asadanan-lnx.qualcomm.com (i-global254.qualcomm.com. [199.106.103.254]) by smtp.googlemail.com with ESMTPSA id 197sm4106756pgg.43.2021.01.06.17.39.15 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Jan 2021 17:39:16 -0800 (PST) From: Ashish Sadanandan To: olivier.matz@6wind.com Cc: dev@dpdk.org, Ashish Sadanandan , stable@dpdk.org Date: Wed, 6 Jan 2021 18:38:54 -0700 Message-Id: <20210107013854.9143-1-ashish.sadanandan@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20201229194144.17824-1-ashish.sadanandan@gmail.com> References: <20201229194144.17824-1-ashish.sadanandan@gmail.com> Subject: [dpdk-stable] [PATCH v2 1/1] mbuf: fix rte_mbuf_dyn.h inclusion from C++ 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 Sender: "stable" 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: 4958ca3a443a ("mbuf: support dynamic fields and flags") Cc: olivier.matz@6wind.com Cc: stable@dpdk.org Signed-off-by: Ashish Sadanandan --- v2: * No functional change * Add fixes tag with reference to commit that introduced the header * CC stable@dpdk.org lib/librte_mbuf/rte_mbuf_dyn.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/librte_mbuf/rte_mbuf_dyn.h b/lib/librte_mbuf/rte_mbuf_dyn.h index d88e7ba..fc4eee7 100644 --- a/lib/librte_mbuf/rte_mbuf_dyn.h +++ b/lib/librte_mbuf/rte_mbuf_dyn.h @@ -67,6 +67,11 @@ */ #include + +#ifdef __cplusplus +extern "C" { +#endif + /** * Maximum length of the dynamic field or flag string. */ @@ -326,4 +331,8 @@ int rte_mbuf_dyn_rx_timestamp_register(int *field_offset, uint64_t *rx_flag); __rte_experimental int rte_mbuf_dyn_tx_timestamp_register(int *field_offset, uint64_t *tx_flag); +#ifdef __cplusplus +} #endif + +#endif /* _RTE_MBUF_DYN_H_ */ -- 2.9.3