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 79444A09FF; Thu, 7 Jan 2021 02:32:03 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0B315140E5B; Thu, 7 Jan 2021 02:32:03 +0100 (CET) Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by mails.dpdk.org (Postfix) with ESMTP id 04C17140E4C; Thu, 7 Jan 2021 02:32:01 +0100 (CET) Received: by mail-pj1-f47.google.com with SMTP id l23so2667961pjg.1; Wed, 06 Jan 2021 17:32:01 -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; bh=uZ6vU35yGlvgnvEaXt0dOwkEDDoeXwEas/ReDDqhBpI=; b=Ax65BtOLeKkyNAyJFqXi+6biHd/gHssXjDSq5xVobnA1uoX+980jS35ud23EGCv3ze QVB20KvZhhzo+EbcGIWwmVanDUHk4C8X4N8zDqGBbDcALw+10s+iOkCS9DSEf4zj9p3i 8+tR63XyteuMFwwfV0kfCa107ZVdC2DJEvUqG67qkMMzyJ3x8YDVWtxZti1YmvwTH8ED BhqHTXinHWbZNVzSlzZf+p5Kv0ZAbdDJbvnr05ZYVE3js2wS7tYt3nuDnc+9SOUdIFDy rPsii9h5nz8onJEyO09ULeI0f+BdkxAUG52l+6wBL1eO2t0ih7asml7qVwMDrzIKkgwO Fqhw== 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; bh=uZ6vU35yGlvgnvEaXt0dOwkEDDoeXwEas/ReDDqhBpI=; b=RZPh48YYYekH87bO0zfeH4WVW3Pfm6d+na09c7zJFRcUlQljbz8gxChci66T7BrEvD x3+7BwwAd7zS0w0oDnSGVN8HBgxRM2B1OqeD9gQmy4Z2HASwxL9nTboSGNUnk2JRfybI lWmbzbhjJkqJDon/dxlBKJtd9TVXjV0zvLk7LqFRePfCxp7k2OOhxg77nkDWi35Swv8n 8SSpqbT7BAUL7EAgtLiPg1cSLNzAFlIEWT9RWDuJsSWQHAWaUHMAJDEjRZ/d0/RaxbW8 bJAZ2k/1p0fCARIwaSsdIak+bLWUa8nUV2KhpmdKxTAYcFZ7iBFSfID4Bnhw2NtasZtl wrfw== X-Gm-Message-State: AOAM530SAyrO00m1DStON/DzTBrdAlMIvLhpAq9LHGlOdk4iamlQkkGz 2I+X0gNbW9q+WL9ZrSQn4ck= X-Google-Smtp-Source: ABdhPJzBhbbN1imr+023AeXZbytzCbufnErr2CX4e0CdgrmTRgcyQXU29hErjTcr3vwdbPeMBx5GJw== X-Received: by 2002:a17:902:8541:b029:da:fcd1:7bf with SMTP id d1-20020a1709028541b02900dafcd107bfmr6681994plo.56.1609983121197; Wed, 06 Jan 2021 17:32:01 -0800 (PST) Received: from asadanan-lnx.qualcomm.com (i-global254.qualcomm.com. [199.106.103.254]) by smtp.googlemail.com with ESMTPSA id z125sm3478238pfz.121.2021.01.06.17.31.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Jan 2021 17:32:00 -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:31:14 -0700 Message-Id: <20210107013114.3477-1-ashish.sadanandan@gmail.com> X-Mailer: git-send-email 2.9.3 Subject: [dpdk-dev] [PATCH v2 1/1] mbuf: fix rte_mbuf_dyn.h inclusion from C++ 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 Sender: "dev" 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 Change-Id: I9a92ada0278ff8455cc2718f8231597b0a7c6b48 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