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 9BBD62C60 for ; Tue, 5 Apr 2016 16:08:46 +0200 (CEST) Received: by mail-wm0-f50.google.com with SMTP id 191so25939900wmq.0 for ; Tue, 05 Apr 2016 07:08:46 -0700 (PDT) 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=hx0N+2eA78semKJQQzL5R3X35EWmsdcyVS1YwIECFSs=; b=QEug7+3rC8gRAg/dq4Pb9LQzDswxvD7fW0POKuaOp1Csm3rnbTVm/LCCWf1PPo2Xud eDNfJTF7fcXZMRuerz0k7ugwTF6pL+fSYClR7tzRFQrq4XOBJ/i7AlPjoAWL6tf/B9o7 KVQ6tIk414kXvg8wmeV4pxlwTOdr51Mjri+FMaB8AwA6AEuTbgPaqnlBS4Ui0d6xA7hK QzqcAB8wLYQMAoOi/Zu1hX0hvSGk7/aquSRVZ12Ea9Jb0au36njM/Qj03otrgpZ6dmni rR0NOAkUftIw62qJ9//voZWpdPyeh+K7SYiAGeOOOwzLm+KgoxwVotbIru/jsMi1ngee vB7A== 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=hx0N+2eA78semKJQQzL5R3X35EWmsdcyVS1YwIECFSs=; b=d8pUIJYL0rBc+DIEB/gakcK4Qz+4bOl8HpzUG1tjllu6TB0y+o8mFq1pbCCVjkFIOo nSW3+dO9Wr7R2UYEfgiQ1Y4Ye7AEPOU6r36f8uDrFOCnbcIlVPtngtcrh4j1they0i9J jihJvNBY04KQ/vTmBbmBXQai5TkFQ8DqrYw/2WaFApm0KfAI9jf+WT1ZVhmOvmCdz6Kf DAD4lQ6X4ijN2hKiY6sf2cN1+0NBfQLu3kIiM7MWuYZjo7y3qawmlBweE9ZRSbaCRWkY ZOmocthR1pBh8dnnsLCicnFRV/I/yPpHIjgMhtxRU+x4miChxSFGimXk2G2CFrEQDkdY m5HA== X-Gm-Message-State: AD7BkJL1WQuZwfHMA9Brb8ZNbjYfPaFW6Vo/o7Q1BLimtf2yAV5IByYY2sCGNnfaLQELTUD/ X-Received: by 10.28.232.140 with SMTP id f12mr14986007wmi.6.1459865326547; Tue, 05 Apr 2016 07:08:46 -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 x2sm23400242wjr.33.2016.04.05.07.08.45 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 05 Apr 2016 07:08:46 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Cc: Bruce Richardson , Thomas Monjalon Date: Tue, 5 Apr 2016 16:08:10 +0200 Message-Id: <1459865290-10248-11-git-send-email-adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1459865290-10248-1-git-send-email-adrien.mazarguil@6wind.com> References: <1459865290-10248-1-git-send-email-adrien.mazarguil@6wind.com> Subject: [dpdk-dev] [PATCH 10/10] lib: hide static functions that are 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: Tue, 05 Apr 2016 14:08:46 -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 errors: error: `rte_mov48' declared `static' but never defined error: `rte_memcpy_func' declared `static' but never defined Signed-off-by: Adrien Mazarguil --- lib/librte_eal/common/include/generic/rte_memcpy.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/common/include/generic/rte_memcpy.h b/lib/librte_eal/common/include/generic/rte_memcpy.h index 03e8477..9f70d24 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. @@ -132,13 +136,12 @@ rte_mov256(uint8_t *dst, const uint8_t *src); static void * rte_memcpy(void *dst, const void *src, size_t n); -#endif /* __DOXYGEN__ */ - /* * memcpy() function used by rte_memcpy macro */ static inline void * rte_memcpy_func(void *dst, const void *src, size_t n) __attribute__((always_inline)); +#endif /* __DOXYGEN__ */ #endif /* _RTE_MEMCPY_H_ */ -- 2.1.4