Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/107647/?format=api
http://patchwork.dpdk.org/api/patches/107647/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20220215170817.662136-2-brian.dooley@intel.com/", "project": { "id": 1, "url": "http://patchwork.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20220215170817.662136-2-brian.dooley@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220215170817.662136-2-brian.dooley@intel.com", "date": "2022-02-15T17:08:07", "name": "[01/11] eal: fix missing C++ guards", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "e458950565817eba4805bb571caa510d05cf78e0", "submitter": { "id": 2520, "url": "http://patchwork.dpdk.org/api/people/2520/?format=api", "name": "Dooley, Brian", "email": "brian.dooley@intel.com" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20220215170817.662136-2-brian.dooley@intel.com/mbox/", "series": [ { "id": 21685, "url": "http://patchwork.dpdk.org/api/series/21685/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=21685", "date": "2022-02-15T17:08:06", "name": "add missing C++ guards", "version": 1, "mbox": "http://patchwork.dpdk.org/series/21685/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/107647/comments/", "check": "warning", "checks": "http://patchwork.dpdk.org/api/patches/107647/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id F3BD8A00C5;\n\tTue, 15 Feb 2022 18:13:50 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id DD71C41145;\n\tTue, 15 Feb 2022 18:13:50 +0100 (CET)", "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by mails.dpdk.org (Postfix) with ESMTP id 05B4C410F3;\n Tue, 15 Feb 2022 18:13:48 +0100 (CET)", "from orsmga005.jf.intel.com ([10.7.209.41])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 15 Feb 2022 09:08:28 -0800", "from silpixa00400883.ir.intel.com ([10.243.23.143])\n by orsmga005.jf.intel.com with ESMTP; 15 Feb 2022 09:08:22 -0800" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1644945229; x=1676481229;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=KytQUdf7thyjmD9/90qq8ceKWw6wOGwrTRX+gQS//2w=;\n b=NAFI6yZM/VoRWhf85K1rgIlwj54yCMxkQRbFRoKf/YAR1ugaR7jOj7bI\n G3+6t1MMxDvo8a5rqq9o2U8a5M9Nt8yw0t5gXd42PouBMnjtt75iWMOMc\n ZvhhCrZW95D1FahaIb8j3g9Xj8edLqIeJ0X9j8go2Eh0KKM4ZgX4fH/DV\n qGG6H5s4InUHWw3E6RGOcvr7JvfL2K0TZoWT+wTx0ut2u4K0P/N4VmOS+\n K0si4SlpSUi6fvYteEPWtfFpQvddC25r2NA9HQ3f6BHtk7gXweSD/NvUm\n jmWO8luoCG91gArhKhFWKsD0X2Z1gC34QKqy3z5u05tCUAafWhSPDfRk3 g==;", "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,10259\"; a=\"336830976\"", "E=Sophos;i=\"5.88,371,1635231600\"; d=\"scan'208\";a=\"336830976\"", "E=Sophos;i=\"5.88,371,1635231600\"; d=\"scan'208\";a=\"703802200\"" ], "X-ExtLoop1": "1", "From": "Brian Dooley <brian.dooley@intel.com>", "To": "dev@dpdk.org", "Cc": "Brian Dooley <brian.dooley@intel.com>, joyce.kong@arm.com,\n nhorman@tuxdriver.com, thomas@monjalon.net, anatoly.burakov@intel.com,\n adrien.mazarguil@6wind.com, jerinj@marvell.com, anand.rawat@intel.com,\n stable@dpdk.org, Ray Kinsella <mdr@ashroe.eu>,\n Sunil Kumar Kori <skori@marvell.com>, Gavin Hu <gavin.hu@arm.com>,\n\t=?utf-8?q?Morten_Br=C3=B8rup?= <mb@smartsharesystems.com>,\n Phil Yang <phil.yang@arm.com>,\n Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>,\n Remy Horton <remy.horton@intel.com>,\n David Marchand <david.marchand@redhat.com>,\n Harini Ramakrishnan <harini.ramakrishnan@microsoft.com>,\n Pallavi Kadam <pallavi.kadam@intel.com>", "Subject": "[PATCH 01/11] eal: fix missing C++ guards", "Date": "Tue, 15 Feb 2022 17:08:07 +0000", "Message-Id": "<20220215170817.662136-2-brian.dooley@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20220215170817.662136-1-brian.dooley@intel.com>", "References": "<20220215170817.662136-1-brian.dooley@intel.com>", "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 <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "Some public header files were missing 'extern \"C\"' C++ guards,\nand couldnt be used by C++ applications. Add the missing guards.\n\nFixes: af75078fece3 (\"first public release\")\nFixes: 7f3aa0863903 (\"eal: introduce bit operations API\")\nFixes: 166a743c53fa (\"compat: add infrastructure to support symbol versioning\")\nFixes: 8f40ee0734c8 (\"eal/x86: get hypervisor name\")\nFixes: 75583b0d1efd (\"eal: add keep alive monitoring\")\nFixes: 88701645c98c (\"eal: move interrupt type out of igb_uio\")\nFixes: f04519d8092e (\"lib: add missing include dependencies\")\nFixes: f58880682c81 (\"trace: implement register API\")\nFixes: 428eb983f5f7 (\"eal: add OS specific header file\")\nCc: joyce.kong@arm.com\nCc: nhorman@tuxdriver.com\nCc: thomas@monjalon.net\nCc: anatoly.burakov@intel.com\nCc: adrien.mazarguil@6wind.com\nCc: jerinj@marvell.com\nCc: anand.rawat@intel.com\nCc: stable@dpdk.org\n\nSigned-off-by: Brian Dooley <brian.dooley@intel.com>\n---\n lib/eal/include/rte_bitops.h | 8 ++++++++\n lib/eal/include/rte_branch_prediction.h | 8 ++++++++\n lib/eal/include/rte_compat.h | 8 ++++++++\n lib/eal/include/rte_hypervisor.h | 8 ++++++++\n lib/eal/include/rte_keepalive.h | 8 ++++++++\n lib/eal/include/rte_pci_dev_feature_defs.h | 8 ++++++++\n lib/eal/include/rte_pci_dev_features.h | 8 ++++++++\n lib/eal/include/rte_time.h | 8 ++++++++\n lib/eal/include/rte_trace_point_register.h | 8 ++++++++\n lib/eal/linux/include/rte_os.h | 8 ++++++++\n 10 files changed, 80 insertions(+)", "diff": "diff --git a/lib/eal/include/rte_bitops.h b/lib/eal/include/rte_bitops.h\nindex 141e8ea730..f50dbe4388 100644\n--- a/lib/eal/include/rte_bitops.h\n+++ b/lib/eal/include/rte_bitops.h\n@@ -17,6 +17,10 @@\n #include <rte_debug.h>\n #include <rte_compat.h>\n \n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n /**\n * Get the uint64_t value for a specified bit set.\n *\n@@ -271,4 +275,8 @@ rte_bit_relaxed_test_and_clear64(unsigned int nr, volatile uint64_t *addr)\n \treturn val & mask;\n }\n \n+#ifdef __cplusplus\n+}\n+#endif\n+\n #endif /* _RTE_BITOPS_H_ */\ndiff --git a/lib/eal/include/rte_branch_prediction.h b/lib/eal/include/rte_branch_prediction.h\nindex 854ef9e5dd..0256a9de60 100644\n--- a/lib/eal/include/rte_branch_prediction.h\n+++ b/lib/eal/include/rte_branch_prediction.h\n@@ -10,6 +10,10 @@\n #ifndef _RTE_BRANCH_PREDICTION_H_\n #define _RTE_BRANCH_PREDICTION_H_\n \n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n /**\n * Check if a branch is likely to be taken.\n *\n@@ -38,4 +42,8 @@\n #define unlikely(x)\t__builtin_expect(!!(x), 0)\n #endif /* unlikely */\n \n+#ifdef __cplusplus\n+}\n+#endif\n+\n #endif /* _RTE_BRANCH_PREDICTION_H_ */\ndiff --git a/lib/eal/include/rte_compat.h b/lib/eal/include/rte_compat.h\nindex 9556bbf4d0..fc9fbaaab2 100644\n--- a/lib/eal/include/rte_compat.h\n+++ b/lib/eal/include/rte_compat.h\n@@ -6,6 +6,10 @@\n #ifndef _RTE_COMPAT_H_\n #define _RTE_COMPAT_H_\n \n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n #ifndef ALLOW_EXPERIMENTAL_API\n \n #define __rte_experimental \\\n@@ -46,4 +50,8 @@ __attribute__((section(\".text.internal\")))\n \n #endif\n \n+#ifdef __cplusplus\n+}\n+#endif\n+\n #endif /* _RTE_COMPAT_H_ */\ndiff --git a/lib/eal/include/rte_hypervisor.h b/lib/eal/include/rte_hypervisor.h\nindex 5fe719c1d4..1666431ce3 100644\n--- a/lib/eal/include/rte_hypervisor.h\n+++ b/lib/eal/include/rte_hypervisor.h\n@@ -5,6 +5,10 @@\n #ifndef RTE_HYPERVISOR_H\n #define RTE_HYPERVISOR_H\n \n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n /**\n * @file\n * Hypervisor awareness.\n@@ -30,4 +34,8 @@ rte_hypervisor_get(void);\n const char *\n rte_hypervisor_get_name(enum rte_hypervisor id);\n \n+#ifdef __cplusplus\n+}\n+#endif\n+\n #endif /* RTE_HYPERVISOR_H */\ndiff --git a/lib/eal/include/rte_keepalive.h b/lib/eal/include/rte_keepalive.h\nindex bd25508da8..538fb09095 100644\n--- a/lib/eal/include/rte_keepalive.h\n+++ b/lib/eal/include/rte_keepalive.h\n@@ -11,6 +11,10 @@\n #ifndef _KEEPALIVE_H_\n #define _KEEPALIVE_H_\n \n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n #include <rte_config.h>\n #include <rte_memory.h>\n \n@@ -139,4 +143,8 @@ rte_keepalive_register_relay_callback(struct rte_keepalive *keepcfg,\n \trte_keepalive_relay_callback_t callback,\n \tvoid *data);\n \n+#ifdef __cplusplus\n+}\n+#endif\n+\n #endif /* _KEEPALIVE_H_ */\ndiff --git a/lib/eal/include/rte_pci_dev_feature_defs.h b/lib/eal/include/rte_pci_dev_feature_defs.h\nindex e12c22081f..c5bb631286 100644\n--- a/lib/eal/include/rte_pci_dev_feature_defs.h\n+++ b/lib/eal/include/rte_pci_dev_feature_defs.h\n@@ -5,6 +5,10 @@\n #ifndef _RTE_PCI_DEV_DEFS_H_\n #define _RTE_PCI_DEV_DEFS_H_\n \n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n /* interrupt mode */\n enum rte_intr_mode {\n \tRTE_INTR_MODE_NONE = 0,\n@@ -13,4 +17,8 @@ enum rte_intr_mode {\n \tRTE_INTR_MODE_MSIX\n };\n \n+#ifdef __cplusplus\n+}\n+#endif\n+\n #endif /* _RTE_PCI_DEV_DEFS_H_ */\ndiff --git a/lib/eal/include/rte_pci_dev_features.h b/lib/eal/include/rte_pci_dev_features.h\nindex 6104123d27..ee6e10590c 100644\n--- a/lib/eal/include/rte_pci_dev_features.h\n+++ b/lib/eal/include/rte_pci_dev_features.h\n@@ -5,6 +5,10 @@\n #ifndef _RTE_PCI_DEV_FEATURES_H\n #define _RTE_PCI_DEV_FEATURES_H\n \n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n #include <rte_pci_dev_feature_defs.h>\n \n #define RTE_INTR_MODE_NONE_NAME \"none\"\n@@ -12,4 +16,8 @@\n #define RTE_INTR_MODE_MSI_NAME \"msi\"\n #define RTE_INTR_MODE_MSIX_NAME \"msix\"\n \n+#ifdef __cplusplus\n+}\n+#endif\n+\n #endif\ndiff --git a/lib/eal/include/rte_time.h b/lib/eal/include/rte_time.h\nindex 5ad7c8841a..ec25f7b93d 100644\n--- a/lib/eal/include/rte_time.h\n+++ b/lib/eal/include/rte_time.h\n@@ -5,6 +5,10 @@\n #ifndef _RTE_TIME_H_\n #define _RTE_TIME_H_\n \n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n #include <stdint.h>\n #include <time.h>\n \n@@ -98,4 +102,8 @@ rte_ns_to_timespec(uint64_t nsec)\n \treturn ts;\n }\n \n+#ifdef __cplusplus\n+}\n+#endif\n+\n #endif /* _RTE_TIME_H_ */\ndiff --git a/lib/eal/include/rte_trace_point_register.h b/lib/eal/include/rte_trace_point_register.h\nindex 4f5c86552d..2e61439940 100644\n--- a/lib/eal/include/rte_trace_point_register.h\n+++ b/lib/eal/include/rte_trace_point_register.h\n@@ -5,6 +5,10 @@\n #ifndef _RTE_TRACE_POINT_REGISTER_H_\n #define _RTE_TRACE_POINT_REGISTER_H_\n \n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n #ifdef _RTE_TRACE_POINT_H_\n #error for registration, include this file first before <rte_trace_point.h>\n #endif\n@@ -42,4 +46,8 @@ do { \\\n \t\tRTE_STR(in)\"[32]\", \"string_bounded_t\"); \\\n } while (0)\n \n+#ifdef __cplusplus\n+}\n+#endif\n+\n #endif /* _RTE_TRACE_POINT_REGISTER_H_ */\ndiff --git a/lib/eal/linux/include/rte_os.h b/lib/eal/linux/include/rte_os.h\nindex 35c07c70cb..c72bf5b7e6 100644\n--- a/lib/eal/linux/include/rte_os.h\n+++ b/lib/eal/linux/include/rte_os.h\n@@ -5,6 +5,10 @@\n #ifndef _RTE_OS_H_\n #define _RTE_OS_H_\n \n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n /**\n * This header should contain any definition\n * which is not supported natively or named differently in Linux.\n@@ -42,4 +46,8 @@ typedef cpu_set_t rte_cpuset_t;\n } while (0)\n #endif\n \n+#ifdef __cplusplus\n+}\n+#endif\n+\n #endif /* _RTE_OS_H_ */\n", "prefixes": [ "01/11" ] }{ "id": 107647, "url": "