From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by dpdk.org (Postfix) with ESMTP id 98EDA56A2 for ; Thu, 7 Jul 2016 17:50:18 +0200 (CEST) Received: by mail-wm0-f54.google.com with SMTP id n127so21684086wme.1 for ; Thu, 07 Jul 2016 08:50:18 -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=00VtUMdmO/MnW0Amaf0A7FdBse7gvcndVJMjwERVdx9sv0CcnXnJUk2tqcQ5CypUyc UqlR4yGyYluegNOI41a1JUIzMECnfVpVGAevfD0g3z9b8aQjxOpRg6NOg9f/WwuVx8yR tcXV0BGFx+yWjQ3CpZDmb9Nak0ub/DW7YwIQ0eNiGfKUI843/mQxtxJrqXRY6meQiDwk g6xImy+3kQmlbiKqfS5fUr6nac99yYshVMg7ZY3towUzohYRM7rE+iSezpXK7U/apKG3 GfPjBspKDzJ7eCUvZS5as30Ugy0nh1mgRP9xQP2lTRCpAE8ysc/+rCBoJrB3qiKpmkOs Z7xw== 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=fX32LxTPlpuoOXVbpllcmzLO97OH+5WAUZBDGGZf3XvvRckXFPzyTMSOXgpbDMDfjX +Csx2gqa9G/N3zcqIKK8TrJGJhRyF24cg4+d04ipjD+5VXylTODv87ZfqW5z7wK4K6Bs d67AiE7besGh3lEBnCtVx+HxW4koBLNpZyXh0rgQWKAQP/DiJx1AffU/3ukhL7TCzmQz VOeMQUDxHbkalirjnAThBXbjOH2LBH17cwnXfnInViPr2ZWIlsfmwHKmn1PEMfdqirXR ajPhyafmO1OAXM0StAJ1JQx22AvTglt7uH+lYt1+rvClvx63akkmQIpeJ3E4T5gHAde+ fyZA== X-Gm-Message-State: ALyK8tK76xN89b4KuExE3iVYDmQSCPHjX9zgaRLJwNomrcgKDl68c9sABn389pXUIRVWzMfR X-Received: by 10.194.104.134 with SMTP id ge6mr872187wjb.157.1467906618233; Thu, 07 Jul 2016 08:50:18 -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 l1sm4464848wjy.17.2016.07.07.08.50.17 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 07 Jul 2016 08:50:17 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Date: Thu, 7 Jul 2016 17:49:32 +0200 Message-Id: <1fc7c6c2499bad759286ce6eba319b08e05f1e55.1467905467.git.adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v3 10/11] 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, 07 Jul 2016 15:50:18 -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