From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <adrien.mazarguil@6wind.com>
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 <dev@dpdk.org>; Wed, 13 Jul 2016 15:03:50 +0200 (CEST)
Received: by mail-wm0-f51.google.com with SMTP id f126so28195432wma.1
 for <dev@dpdk.org>; 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 <dev@dpdk.org> (version=TLS1_2 cipher=AES128-SHA bits=128/128);
 Wed, 13 Jul 2016 06:03:49 -0700 (PDT)
From: Adrien Mazarguil <adrien.mazarguil@6wind.com>
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: <cover.1468413396.git.adrien.mazarguil@6wind.com>
References: <cover.1467905466.git.adrien.mazarguil@6wind.com>
 <cover.1468413396.git.adrien.mazarguil@6wind.com>
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 <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Wed, 13 Jul 2016 13:03:50 -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 <adrien.mazarguil@6wind.com>
---
 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