From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id 180B158E1 for ; Tue, 5 Jul 2016 12:45:30 +0200 (CEST) Received: by mail-wm0-f44.google.com with SMTP id z126so70257661wme.0 for ; Tue, 05 Jul 2016 03:45:30 -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=dAnjSiw+YfVw+Dk0iAdUOOzWPbc8GOFVXLR5hhyKIYugihFITveFRNtYZjQZ4J1OTS K03nQIG/esxgwFtFOql3QfCaAvCtpVNSKtT+5S6GloI7YMe5YlTkObvYWKwtDjKN6SFk yFuetmch8WC2A0J/eDm9t/ojKsjncq0UKrcixM2yde+BLFl0rJOG17PT/NFC3Hhy8k4R fZCbojEN/KGJDgUqMXxxGMjru8HxuI551on1Nm/L2q8hD2cFu3opFsKVqQ+waIWhpGnO izH6pimfyxYDKuUGmKKCok71P6gY2EkFKFIHNjUEwBAIoSyTpLaL0h8+XbErRaez1/DM BQ9w== 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=K84djo5Wg6voIJRc6mvpknM7zzcxM0nBLiY0xCkNLZXeVeOwboGRCzC1wajQSvqXXQ zx+AkkiVJ9VbsSmQ9VS2WfVzvmkUV5pYchhAOh194Lc/7Tt+/ZWJCk7mR8IB6YgM6/A8 Jaomf0chJnVa3V/nQCpvMxSey6yWPYXh9VPfaceLBHzivGr/D+MdNtTS3jsqH660Dpu8 pJos2tvX2zswra89hKDeZ0e0n+nh4TJz68abFOHBA5bKLKvuuJhlEqPyHld1kR8SaTj2 YHUBF9UsE32NBWVS/GDIIUKjNfhoIG5rlGdLfWLhge4pyn7loDs5OdP5mzmCz7lIT07F FMQg== X-Gm-Message-State: ALyK8tJvCejXQUGgSv01rV2RfgCI2ghpS5vEompZ7loV2b2STWk6NAwRfcE7H7tv7zuPuKyY X-Received: by 10.194.158.138 with SMTP id wu10mr14137155wjb.84.1467715529678; Tue, 05 Jul 2016 03:45:29 -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 u4sm356183wjz.4.2016.07.05.03.45.28 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 05 Jul 2016 03:45:29 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Date: Tue, 5 Jul 2016 12:44:56 +0200 Message-Id: <6368a1e789509d105ae217c174a65c9f8d62d91c.1467715254.git.adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: <1459865290-10248-1-git-send-email-adrien.mazarguil@6wind.com> Subject: [dpdk-dev] [PATCH v2 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: Tue, 05 Jul 2016 10:45:30 -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