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 EAF65A052A for ; Thu, 7 Jan 2021 18:15:57 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E1496140FCB; Thu, 7 Jan 2021 18:15:57 +0100 (CET) Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by mails.dpdk.org (Postfix) with ESMTP id 6F469140F9D; Thu, 7 Jan 2021 18:15:55 +0100 (CET) Received: by mail-pj1-f42.google.com with SMTP id b5so4183404pjl.0; Thu, 07 Jan 2021 09:15:55 -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=kySABN1sRbzh1TsBUO0amKJEjXdd/ihjriWk3jmJDqY7nog8M1v317BOUbjU8SRCwY 7e1NBHU2zyfBHQy9l/rS5/ax28CrFlIIaeMnqdTuguSy2FRxwcKzUr4VsdGlrFGet9RE 7335qTlcTrO348yVY9i/rp42S3TynQInQAqiEkm9dcTnV8zOUX9+Lngj+TBOJfPUhzCz MaCPAq7jbAAs+UX8wL+sgNX8AnOOzGruT/eXYr2WP9DsWMc+ZoQsVkUYLHldAOqMVyTM f2cq1g/ox4yr4zzLfgvddfe3lOYGhd9dl7OC8E7WHYy0mNHMkr++nYVuo5e4vU3K4wxK duJA== 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=FDIJgwWZUAcgZl9lwOpNX9RxC6yaYeZz2Nt/lnMra2p73d9NccCZrJjOiMsBmbftVy RUmsi1jSYcxgUrsGbFcmWnyAh68H8L1dHjQoZLrVURONRDxT4ZT8AZJa+LAMzfLO9zF/ CNrppkn3g45JUrD+yQxobPQiyZqin0FTM2jPaJHQvNdh10j6SA4kXyWYKGc7OGWZ9TYL HErZrc4RGFt8YnpV5SvGr4CD/E5beuoAD+SWa1n/KQJCRD5RKhnchk1NBVB6BmKnpTfb XiLkSC8d9dH8NVLos+uLK1OUFqBMMUfmGV2fgAETF4nGqW3qnOTJs0Uc6hPe7g1EmWhW 5WWw== X-Gm-Message-State: AOAM530Hu1jobM9bSh/+fUmSQjg0wcDidxAz/zEejjVFu+toZoD6dswj i6oCpJZ3r6o+T95AToXGm1/ZitUA1o/AWQ== X-Google-Smtp-Source: ABdhPJwQonBJxQSkvNCXIgxLPErtWVpLI/d1C+OfywOKuX773z4Z02ME9gNuq9+GsdCf4si7ORncoA== X-Received: by 2002:a17:90a:a485:: with SMTP id z5mr10244635pjp.160.1610039754424; Thu, 07 Jan 2021 09:15:54 -0800 (PST) Received: from asadanan-lnx.qualcomm.com (i-global254.qualcomm.com. [199.106.103.254]) by smtp.googlemail.com with ESMTPSA id h5sm7354516pgl.86.2021.01.07.09.15.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Jan 2021 09:15:53 -0800 (PST) From: Ashish Sadanandan To: dev@dpdk.org Cc: olivier.matz@6wind.com, Ashish Sadanandan , stable@dpdk.org Date: Thu, 7 Jan 2021 10:15:28 -0700 Message-Id: <20210107171528.21074-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