From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id C0BD8592F for ; Thu, 8 Sep 2016 14:25:36 +0200 (CEST) Received: by mail-wm0-f50.google.com with SMTP id w12so85900181wmf.0 for ; Thu, 08 Sep 2016 05:25:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=hrtorW9AOxTUsXxoiJpnINIYozuDcvaYxBgcBFqZMqk=; b=Ck3vrheTIe/gC9NoRVGINEIw806ArkqJ1kmo5Umm94kzIX5ti/qvwPKjkEIl0Tcckr fTg4JcgtACqqlE1YYdtCOnfWH5CVXD4/QsTwdtq/uSQU5MIEuDEVZWiAq0po2cvltUV+ miO24SjI3ACu3QRNVnOgPS8MQuDIUq3bGGCgdP5xyvdl/fpxvb/60+geXdN1vH1jyZcj zNO6cI+wwbeJbVdrYkHjcNHjjhYhwF+c3JTKCzEn0TC40T6uo4QupeE3H0ywe9gQXhVZ h6XRr4ExLoFLTVjVcrJkZBhuE9V/jd0bC2GzaEL8lGgVmWDzH2lRsnB/iDXJXYtiu/6h AkQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=hrtorW9AOxTUsXxoiJpnINIYozuDcvaYxBgcBFqZMqk=; b=nFE3NevApQlbWXqzXTDTHnR+4XDXmNmjPvvSMnshtmSPZr/eh3GZ/jOiZF3VBd0XZ2 kk9MPb84tFcKa/1L60aOsv1/HDUP40Kjq2HS5qlJMiPt7rOM/S6lUQ445NnbXLYutVVG Qwvnj52lrEuCd7WK5cPxAKdDKuHlDp38jSWgDmcRc5kDbKpTy6kAFbfEZZpstobHADLZ FdVAtqRLtGkz51nmeanZIKnwt26cQ6Y9BmngKJrREWY4VrIaD3TMVYgwDZS7LM63YKMS cjTKC2I+qXqCQxpYSHy0todE7Yqv9pwyLy1U8iDD6BRo/0weCkxdKJnWF5YTZWW85FLN I6Mw== X-Gm-Message-State: AE9vXwPe4IjZlG60s20Qf5liUhxWB/dcyhDuv+Y3vJAYwQ86LzS6NOMbXaJXodvbwNFc8Gw8 X-Received: by 10.28.46.204 with SMTP id u195mr8413033wmu.57.1473337536307; Thu, 08 Sep 2016 05:25:36 -0700 (PDT) Received: from 6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id v73sm4322916wmf.19.2016.09.08.05.25.35 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 08 Sep 2016 05:25:35 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Date: Thu, 8 Sep 2016 14:25:10 +0200 Message-Id: <0543f0e3c7c1486d4b974e8aafc3906f889af113.1473331587.git.adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v5 09/10] lib: hide static functions never defined 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: , X-List-Received-Date: Thu, 08 Sep 2016 12:25:37 -0000 Arch-specific functions not defined for all architectures (missing on x86 in this case) and not used anywhere should not expose a prototype. This commit prevents the following error: error: `rte_mov48' declared `static' but never defined Signed-off-by: Adrien Mazarguil --- lib/librte_eal/common/include/generic/rte_memcpy.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/librte_eal/common/include/generic/rte_memcpy.h b/lib/librte_eal/common/include/generic/rte_memcpy.h index afb0afe..4e9d879 100644 --- a/lib/librte_eal/common/include/generic/rte_memcpy.h +++ b/lib/librte_eal/common/include/generic/rte_memcpy.h @@ -64,6 +64,8 @@ rte_mov16(uint8_t *dst, const uint8_t *src); static inline void rte_mov32(uint8_t *dst, const uint8_t *src); +#ifdef __DOXYGEN__ + /** * Copy 48 bytes from one location to another using optimised * instructions. The locations should not overlap. @@ -76,6 +78,8 @@ rte_mov32(uint8_t *dst, const uint8_t *src); static inline void rte_mov48(uint8_t *dst, const uint8_t *src); +#endif /* __DOXYGEN__ */ + /** * Copy 64 bytes from one location to another using optimised * instructions. The locations should not overlap. -- 2.1.4