From patchwork Tue Apr 12 07:56:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 65592 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp1781243qge; Tue, 12 Apr 2016 01:05:37 -0700 (PDT) X-Received: by 10.50.64.179 with SMTP id p19mr2339293igs.25.1460448336959; Tue, 12 Apr 2016 01:05:36 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id p20si19831593igr.2.2016.04.12.01.05.36; Tue, 12 Apr 2016 01:05:36 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 5D7F566817; Tue, 12 Apr 2016 08:05:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 59D9666821; Tue, 12 Apr 2016 08:04:39 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id A67EB622BB; Tue, 12 Apr 2016 08:04:33 +0000 (UTC) Received: from mail-lf0-f53.google.com (mail-lf0-f53.google.com [209.85.215.53]) by lists.linaro.org (Postfix) with ESMTPS id C23D766756 for ; Tue, 12 Apr 2016 08:04:24 +0000 (UTC) Received: by mail-lf0-f53.google.com with SMTP id c126so13919179lfb.2 for ; Tue, 12 Apr 2016 01:04:24 -0700 (PDT) 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=Coia82KPjiCMd/5MZ0skFosDiPNJLpB35ELmfsvbbIg=; b=AvIqgUoVOgA5a/os1FKulX+o2p6rTO7++GXEgNftruWSzfAdCYM1Au/8xcglOYKd8B KpcBNxScmrdDIokyiEtz+W0AhsN/v71Tm6hVEDE92PG9uRfn2wHu3pebBq4K/b9meTmI tZzSJ/EyREV/KcXROQYn2TLYFWQ/FKp8ESPvfKOfYkz/+qNv+1etNUsDwyzYA2YHeQDl 8BchUgDcHE6GgdzWAsHmFkLu6SmzKzFFBGvn8dptj1dJopoczCevf2VkHaZ9nyD1YiI3 OoAJfeXr3gGm4K6e+qOca/1jdGL3Aq23vw8d1/usjp4z5tzuDntkv5wQwjM758EMI0cO avWw== X-Gm-Message-State: AOPr4FWX5bGCpMlnl2Xp9svuNS5h3McuTFFmYYctkm38Wx00YWq6ppdrUsv5q3KaJB9djGXE1kM= X-Received: by 10.112.198.132 with SMTP id jc4mr841889lbc.120.1460448263722; Tue, 12 Apr 2016 01:04:23 -0700 (PDT) Received: from localhost (c-c82171d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.113.33.200]) by smtp.gmail.com with ESMTPSA id c63sm2099958lfe.42.2016.04.12.01.04.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Apr 2016 01:04:23 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Tue, 12 Apr 2016 09:56:40 +0200 Message-Id: <1460447801-8686-3-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1460447801-8686-1-git-send-email-anders.roxell@linaro.org> References: <1460144936-10277-1-git-send-email-anders.roxell@linaro.org> <1460447801-8686-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv3 2/3] linux-generic/include/odp_internal: add hidden attribute X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" The hidden attribute allows functions to be hidden from the public ABI. Internal functions should not be part of symbols that are visible outside the library. Suggested-by: Ricardo Salveti Signed-off-by: Anders Roxell --- platform/linux-generic/include/odp_internal.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/linux-generic/include/odp_internal.h b/platform/linux-generic/include/odp_internal.h index e33a49e..08624ae 100644 --- a/platform/linux-generic/include/odp_internal.h +++ b/platform/linux-generic/include/odp_internal.h @@ -22,6 +22,12 @@ extern "C" { #include #include +#if defined(__GNUC__) +# define HIDDEN __attribute__((visibility("hidden"))) +#else +# define HIDDEN +#endif + extern __thread int __odp_errno; #define MAX_CPU_NUMBER 128