From patchwork Wed Jul 13 13:02:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrien Mazarguil X-Patchwork-Id: 14815 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 327465677; Wed, 13 Jul 2016 15:03:53 +0200 (CEST) Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 88D275677 for ; Wed, 13 Jul 2016 15:03:50 +0200 (CEST) Received: by mail-wm0-f51.google.com with SMTP id f126so28195432wma.1 for ; Wed, 13 Jul 2016 06:03:50 -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=AF3SOry0NQ2bzNydKKJqa/be1sqyLEx+n1lxBdaIUIxz9Y2v1orkmgaE4uikeXx2g3 vLS9FmWtVJUEQfsjLyWzbVPh+ThOdMz21Bu8lYv9ONaRl24bi9rmB70xdZadPwMkGb6S 6R45JlDz3yH3+iWJl3fAIzjEZdnQVVFR5JLJFPomaFs7ck4k/tiU2lXR0Xg6rlfEWLKz UT4cbuVgW9QxSqtp6/bIyR6YoxLx/ALpnNQ5UyDLxV5Jmniqnvz+V2MDAESl4Re+VFHT vCjxbUN/yyBH4EJ3YxRsLZo8qCWEPN4aZ0XC5BHz0kKsv9BRm4SUc4uQjub0yQfTOtOe GlWQ== 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=jOTfCGZh2Bcgq/in+n4j79ArkLUMibJ9U1Hna1iZSKCK5pNEBSwNN6/1IRd2iUZ9cX 3wbWKfTFpgTlDsXrN3ib2IGEBA4HsHvAzVTGsWGIhw/JMOacZmJvdfko7o9YwaMFy+GW 2ZUWA68LNKUjUo8k0B1ZqSqiRtFuMyGh93Luhh5NJum7zLlGl3gtnHSANIxh62EivZHO wtO9qY7id8NyEeelofO8/likDmOJDiPJhj3qtY9GysdGp1RGuvSGfe4TBn7FxXml9jYy yUAdB+Eysd88AHsPWkGzTVPHcJ8tGXI2lW21BAZf4rNChN/4ISz29LFo5hjtnmkUdB9Q dhoQ== X-Gm-Message-State: ALyK8tLosD1iHKzgw23vnzXrrYZntyWlUfBcR63cDSBqqgKKvNf1rCrJYMjF0VCOR7Gx9n9e X-Received: by 10.28.157.199 with SMTP id g190mr11030620wme.2.1468415030118; Wed, 13 Jul 2016 06:03:50 -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 u145sm1548311wmu.4.2016.07.13.06.03.48 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 13 Jul 2016 06:03:49 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Date: Wed, 13 Jul 2016 15:02:46 +0200 Message-Id: <949d3dc88f44c1456a3cafe7888573eab47599cc.1468413397.git.adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v4 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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.