From patchwork Wed Jun 25 22:00:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 32512 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D273A20C88 for ; Wed, 25 Jun 2014 22:01:07 +0000 (UTC) Received: by mail-la0-f71.google.com with SMTP id el20sf1430858lab.10 for ; Wed, 25 Jun 2014 15:01:06 -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:in-reply-to :references: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=dnQDOQh+6RbWqvy4hJ9iUw4T6NX4W3kDb7uR0LMmOqU=; b=cTTRuy5Grb7xC15/4bwAwd8WFmFK/HRZViwl1XCIANqPVIdetVXTA0A45LVn+R6Zkb 5S3x1rBQva4KC0omP0OWqh/2YKpR/7OvbMB4pb7zbZDGebrvpSOlTGbAkSTsF9Si8ONs 8SVFDSAf7I38pZal7dmGy7bdKHNr3NRN/ur5hAYQuDZd94praAdn838KTRgdcl0Wixux MnOOp5fQo44nkx2bcQ16nbxbYL7TuZn0J+kuNFj35vh3ZJZ9DB5JO3mthfWngFLWhb3q 3H6XR+M9Oc5dyMA2VQ3JQzXhofyIb7x+Znz+YtyVJOKUHETpShVXSE45n+unB5n7ChWf jIAw== X-Gm-Message-State: ALoCoQkbf47VWNqQl788THcxotk6c3/QD9jPgj47E46Sd3XUerXHjUaCK8KDxtKqb5mNWVOOf4s4 X-Received: by 10.112.54.169 with SMTP id k9mr1429852lbp.1.1403733666149; Wed, 25 Jun 2014 15:01:06 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.83.50 with SMTP id i47ls2926588qgd.38.gmail; Wed, 25 Jun 2014 15:01:06 -0700 (PDT) X-Received: by 10.220.185.202 with SMTP id cp10mr9291008vcb.15.1403733666019; Wed, 25 Jun 2014 15:01:06 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id jo10si3207508veb.21.2014.06.25.15.01.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 25 Jun 2014 15:01:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id hy10so2638010vcb.1 for ; Wed, 25 Jun 2014 15:01:05 -0700 (PDT) X-Received: by 10.52.166.10 with SMTP id zc10mr55668vdb.61.1403733665936; Wed, 25 Jun 2014 15:01:05 -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 tc5csp321244vcb; Wed, 25 Jun 2014 15:01:05 -0700 (PDT) X-Received: by 10.52.185.72 with SMTP id fa8mr7910715vdc.12.1403733665630; Wed, 25 Jun 2014 15:01:05 -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 fx3si3177985vdc.84.2014.06.25.15.01.05 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 25 Jun 2014 15:01:05 -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 1WzvDh-0005QS-JV; Wed, 25 Jun 2014 21:59:09 +0000 Received: from mail-qc0-f174.google.com ([209.85.216.174]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WzvDV-0005Pm-9j for lng-odp@lists.linaro.org; Wed, 25 Jun 2014 21:58:57 +0000 Received: by mail-qc0-f174.google.com with SMTP id x13so2317462qcv.5 for ; Wed, 25 Jun 2014 15:00:47 -0700 (PDT) X-Received: by 10.140.34.195 with SMTP id l61mr15312993qgl.87.1403733647313; Wed, 25 Jun 2014 15:00:47 -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 q10sm7938548qah.9.2014.06.25.15.00.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Jun 2014 15:00:46 -0700 (PDT) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Wed, 25 Jun 2014 18:00:20 -0400 Message-Id: <1403733620-8426-3-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1403733620-8426-1-git-send-email-mike.holmes@linaro.org> References: <1403733620-8426-1-git-send-email-mike.holmes@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 3/3] Fix sparse static warnings 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.220.170 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 --- test/api_test/odp_timer_ping.c | 6 +++--- test/generator/odp_generator.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/api_test/odp_timer_ping.c b/test/api_test/odp_timer_ping.c index 7cfb9fa..ed5ccd4 100644 --- a/test/api_test/odp_timer_ping.c +++ b/test/api_test/odp_timer_ping.c @@ -49,10 +49,10 @@ struct packet { char msg[PKTSIZE-sizeof(struct icmphdr)]; }; -int pid = -1; -struct protoent *proto; +static int pid = -1; +static struct protoent *proto; -struct sockaddr_in dst_addr; +static struct sockaddr_in dst_addr; /* local struct for ping_timer_thread argument */ typedef struct { diff --git a/test/generator/odp_generator.c b/test/generator/odp_generator.c index 68c119e..8f6ad49 100644 --- a/test/generator/odp_generator.c +++ b/test/generator/odp_generator.c @@ -61,7 +61,7 @@ typedef struct { /** * counters */ -struct { +static struct { odp_atomic_u64_t seq; /**< ip seq to be send */ odp_atomic_u64_t ip; /**< ip packets */ odp_atomic_u64_t udp; /**< udp packets */ @@ -105,7 +105,7 @@ static void tv_sub(struct timeval *recvtime, struct timeval *sendtime); * @param paddr ip address for odp_packet * @return 1 success, 0 failed */ -int scan_ip(char *buf, unsigned int *paddr) +static int scan_ip(char *buf, unsigned int *paddr) { int part1, part2, part3, part4; char tail = 0; @@ -146,7 +146,7 @@ int scan_ip(char *buf, unsigned int *paddr) * @param des mac for odp_packet * @return 1 success, 0 failed */ -int scan_mac(char *in, odp_ethaddr_t *des) +static int scan_mac(char *in, odp_ethaddr_t *des) { int field; int i; @@ -909,7 +909,7 @@ static void usage(char *progname) *@param recvtime start time *@param sendtime end time */ -void tv_sub(struct timeval *recvtime, struct timeval *sendtime) +static void tv_sub(struct timeval *recvtime, struct timeval *sendtime) { long sec = recvtime->tv_sec - sendtime->tv_sec; long usec = recvtime->tv_usec - sendtime->tv_usec;