From patchwork Fri Jun 27 19:03:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 32641 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f200.google.com (mail-ie0-f200.google.com [209.85.223.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5A464200B9 for ; Fri, 27 Jun 2014 19:04:24 +0000 (UTC) Received: by mail-ie0-f200.google.com with SMTP id tr6sf31430692ieb.3 for ; Fri, 27 Jun 2014 12:04:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=fyU87i1jwAdP3Vcw8ZpKYwKQVgZoI+5C14nhtWNLVRI=; b=YU2mB5FtaCD5BUMMEZCTDu4X7K0tzv2u85JLLvC8TlcXkf6dmRsAJIm68TOblsi+1h cAdCyg5O5Bh+eofLnplvj7R/VzusGCz7Q4DcrXwromRBHiTvyE0MMdSCEgLV6ZrLR+zQ iEpjQGOsat+rM7kZR9JmvYuN5sLy4C9qc08/riLrQZD68OOwSmKjeyctGIegC4q7z2np WztmsB2cdKC0Gkl+FL/8Hj/evxerokQdyD/OfOAKwceVeiixqDp0DeBvGS6n6P90S9OB MCZ78Ie3Mv9PS3URUQULhaISK6GOzAAj9gPT5RsXsPrvwF9KLdZ7VU/Yb/3ZMvFbCQrW UKoQ== X-Gm-Message-State: ALoCoQn6nr4S+gYWRJBlZ0q0VxR4TY4c84Gbp7frNtGWBnljg2RBP4xEApOcvvRQ6Xxd7Py5bbXB X-Received: by 10.182.45.161 with SMTP id o1mr6281947obm.2.1403895863619; Fri, 27 Jun 2014 12:04:23 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.105.54 with SMTP id b51ls691615qgf.48.gmail; Fri, 27 Jun 2014 12:04:23 -0700 (PDT) X-Received: by 10.58.247.167 with SMTP id yf7mr2735328vec.46.1403895863522; Fri, 27 Jun 2014 12:04:23 -0700 (PDT) Received: from mail-ve0-f182.google.com (mail-ve0-f182.google.com [209.85.128.182]) by mx.google.com with ESMTPS id qi1si6846536veb.60.2014.06.27.12.04.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 27 Jun 2014 12:04:23 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.182 as permitted sender) client-ip=209.85.128.182; Received: by mail-ve0-f182.google.com with SMTP id oy12so5688348veb.41 for ; Fri, 27 Jun 2014 12:04:23 -0700 (PDT) X-Received: by 10.52.253.131 with SMTP id aa3mr13988482vdd.25.1403895863363; Fri, 27 Jun 2014 12:04:23 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp130189vcb; Fri, 27 Jun 2014 12:04:23 -0700 (PDT) X-Received: by 10.224.136.4 with SMTP id p4mr36587820qat.83.1403895862939; Fri, 27 Jun 2014 12:04:22 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id e8si15121619qgf.40.2014.06.27.12.04.22 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 27 Jun 2014 12:04:22 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1X0bPj-00075m-Ud; Fri, 27 Jun 2014 19:02:23 +0000 Received: from mail-qc0-f180.google.com ([209.85.216.180]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1X0bPe-00075h-AG for lng-odp@lists.linaro.org; Fri, 27 Jun 2014 19:02:18 +0000 Received: by mail-qc0-f180.google.com with SMTP id r5so4827221qcx.25 for ; Fri, 27 Jun 2014 12:04:11 -0700 (PDT) X-Received: by 10.224.124.17 with SMTP id s17mr37188544qar.64.1403895851086; Fri, 27 Jun 2014 12:04:11 -0700 (PDT) Received: from fedora1.holmesfamily.ws (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by mx.google.com with ESMTPSA id p67sm1295259qgd.34.2014.06.27.12.04.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Jun 2014 12:04:10 -0700 (PDT) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Fri, 27 Jun 2014 15:03:43 -0400 Message-Id: <1403895823-60535-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] Add static to global variables X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: 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-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mike.holmes@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.182 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Mike Holmes --- platform/linux-generic/source/odp_timer.c | 2 +- test/l2fwd/l2fwd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/linux-generic/source/odp_timer.c b/platform/linux-generic/source/odp_timer.c index 509a890..5a88c54 100644 --- a/platform/linux-generic/source/odp_timer.c +++ b/platform/linux-generic/source/odp_timer.c @@ -45,7 +45,7 @@ typedef struct { } timer_global_t; /* Global */ -timer_global_t odp_timer; +static timer_global_t odp_timer; static void add_tmo(tick_t *tick, timeout_t *tmo) { diff --git a/test/l2fwd/l2fwd.c b/test/l2fwd/l2fwd.c index 36a7abd..035f710 100644 --- a/test/l2fwd/l2fwd.c +++ b/test/l2fwd/l2fwd.c @@ -73,7 +73,7 @@ typedef struct { /** Global pointer to args */ static args_t *gbl_args; -int num_workers; +static int num_workers; /* helper funcs */ static int drop_err_pkts(odp_packet_t pkt_tbl[], unsigned len);