From patchwork Fri Nov 13 09:35:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Marchand X-Patchwork-Id: 8906 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id CDE1893C4; Fri, 13 Nov 2015 10:35:35 +0100 (CET) Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id 9D7FF939A for ; Fri, 13 Nov 2015 10:35:34 +0100 (CET) Received: by wmww144 with SMTP id w144so20913381wmw.1 for ; Fri, 13 Nov 2015 01:35:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind_com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RUQefiyE/R3G+LfY4IPhzEHRvg+IluRd+jvQQYi341Q=; b=Qpx4AHbQxgUjGqhbYvgHos0xb/pwwbraDqA5mU8F6bIgCSEO2NbHoR6OH8L81GLNv2 9jID7I0KqZhQ75ozr9nVQp4tmEADKeOobToBmfQnmwDVOeZQuIWaxhbHkULg34fVghrJ 2pphQ+yfchBgAhsX3XeQOEH975kbgAspXMpRYYjhYFO6kmF8rua+cCB7fWfrqnDpE9qf zvezCkgni7r2JLf/+myu20orcshaZmqezb00TD2VwY5qlzCNakweISxxJAPFRxz84iRe UqIqCPmH7UrOQzbTkV9bm70bDYDukz6uMwW1DvkF3NibiqgJDMEGMGyPXv8019a/xTR6 Yf8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=RUQefiyE/R3G+LfY4IPhzEHRvg+IluRd+jvQQYi341Q=; b=UHDnbA9GJcFrZXyPwTlMdT5F5cEiC1jU/daTaNXI0CCJum+7P4upclhATnr1Qpjzu4 UP0a0bk3qDYX2qEVGisBh6+XWOfRaxwqGQZ4+ZEwGeI7BHQCYAL4ms9PabbzYBJRZvdu X+ammMOq/3MEzJKCOe9o3u8+jPnSMxT6nut9EYb9taRjyONBkTBinZOTILw2cgiHG+e4 SuG36UF1IW0ovGMUS9dtOBJjQP0fAtiSTV/j6aJrgiFxgC2v4xEKQAhX2qyEjf3Ec1od mZ9uahpxs9o72CY+fxhTFWySot7iJVajev1mwKvJVssuuwBwPsJqXe9vCuWam2bZO0f5 AKrA== X-Gm-Message-State: ALoCoQlQ0UEbQ5W2WA59sdKPnyiFIfgJQsn4JZY5yCLG1gyLjzjdRNzVmjygJ32ZOmeEsuUuFpuB X-Received: by 10.194.2.34 with SMTP id 2mr14284051wjr.39.1447407334496; Fri, 13 Nov 2015 01:35:34 -0800 (PST) Received: from gloops.dev.6wind.com (89-158-215-180.rev.numericable.fr. [89.158.215.180]) by smtp.gmail.com with ESMTPSA id c4sm7277993wjs.36.2015.11.13.01.35.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Nov 2015 01:35:33 -0800 (PST) From: David Marchand To: dev@dpdk.org Date: Fri, 13 Nov 2015 10:35:26 +0100 Message-Id: <1447407326-13446-2-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1447407326-13446-1-git-send-email-david.marchand@6wind.com> References: <1435927863-3398-2-git-send-email-joongi@an.kaist.ac.kr> <1447407326-13446-1-git-send-email-david.marchand@6wind.com> Subject: [dpdk-dev] [PATCH 2/2] eal: move empty declarations to doc X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" No need for those forward declarations (which breaks build when asking for C++11 or adding pedantic flag). Signed-off-by: David Marchand --- lib/librte_eal/common/include/generic/rte_cpuflags.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/librte_eal/common/include/generic/rte_cpuflags.h b/lib/librte_eal/common/include/generic/rte_cpuflags.h index 61c4db1..5738a2a 100644 --- a/lib/librte_eal/common/include/generic/rte_cpuflags.h +++ b/lib/librte_eal/common/include/generic/rte_cpuflags.h @@ -47,12 +47,16 @@ /** * Enumeration of all CPU features supported */ +#ifdef __DOXYGEN__ enum rte_cpu_flag_t; +#endif /** * Enumeration of CPU registers */ +#ifdef __DOXYGEN__ enum cpu_register_t; +#endif typedef uint32_t cpuid_registers_t[4]; @@ -100,8 +104,10 @@ rte_cpu_get_features(uint32_t leaf, uint32_t subleaf, cpuid_registers_t out); * 0 if flag is not available * -ENOENT if flag is invalid */ +#ifdef __DOXYGEN__ static inline int rte_cpu_get_flag_enabled(enum rte_cpu_flag_t feature); +#endif /** * This function checks that the currently used CPU supports the CPU features