From patchwork Fri Jun 20 17:46:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 32291 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8631A203C2 for ; Fri, 20 Jun 2014 17:46:53 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id m20sf12063342qcx.1 for ; Fri, 20 Jun 2014 10:46:53 -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=ffb+s23s09puXvwBSX4DQFKZ6Njbwe7y8ve6kP/lh18=; b=P6nGDCoj7H7rNv9zxwzsRp+OPCEOQ7gf+t2bmJof58ENLSD3TfPyAfsH8d3EVsYuIW epIFvgDEX09plhuM1bQvAPv9+uYkOxqQWM13DlR5S3go08yOW2DQt8vjXU4mnhfeenZR oynWrXXpofoFrQiWeldZz9cH3d9Iz0xIxiZ8f5eeT+zb43RzKr3VvMFTIffyx1eKNtKi fDfp32xBMGU6Ke9+q5CR527iNKO5RJ+MYDMlp1JFQSKwizrVZyERlric1xfjxa0KZmPb NlQMDm5a86Gkmq4KgkIGTMZPNwlDbzan+ZhL3RDe6AtmVmQ03EGJLXiWRJ4HUUgjUPpm 4Cbw== X-Gm-Message-State: ALoCoQnH0BHwDRBbT45+gFXlG0m1V+9oW+LnfxYe3pdPrHELPsI8zXb+4FQfgxLuY/AXXq+LhzLi X-Received: by 10.236.184.72 with SMTP id r48mr1718231yhm.13.1403286413398; Fri, 20 Jun 2014 10:46:53 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.40.209 with SMTP id x75ls995450qgx.46.gmail; Fri, 20 Jun 2014 10:46:53 -0700 (PDT) X-Received: by 10.52.165.37 with SMTP id yv5mr1528078vdb.58.1403286413167; Fri, 20 Jun 2014 10:46:53 -0700 (PDT) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id y6si2561863vem.65.2014.06.20.10.46.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Jun 2014 10:46:53 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.179 as permitted sender) client-ip=209.85.128.179; Received: by mail-ve0-f179.google.com with SMTP id sa20so3836428veb.24 for ; Fri, 20 Jun 2014 10:46:53 -0700 (PDT) X-Received: by 10.220.53.72 with SMTP id l8mr4430496vcg.16.1403286413066; Fri, 20 Jun 2014 10:46:53 -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 tc5csp40071vcb; Fri, 20 Jun 2014 10:46:52 -0700 (PDT) X-Received: by 10.140.27.23 with SMTP id 23mr6928497qgw.94.1403286412645; Fri, 20 Jun 2014 10:46:52 -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 a70si11618832qgf.41.2014.06.20.10.46.52 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 20 Jun 2014 10:46:52 -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 1Wy2s4-0002r6-BG; Fri, 20 Jun 2014 17:45:04 +0000 Received: from mail-qa0-f44.google.com ([209.85.216.44]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Wy2ru-0002ok-R3 for lng-odp@lists.linaro.org; Fri, 20 Jun 2014 17:44:54 +0000 Received: by mail-qa0-f44.google.com with SMTP id hw13so3471101qab.3 for ; Fri, 20 Jun 2014 10:46:37 -0700 (PDT) X-Received: by 10.224.69.130 with SMTP id z2mr7586804qai.87.1403286397020; Fri, 20 Jun 2014 10:46:37 -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 j1sm14693535qaa.11.2014.06.20.10.46.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 Jun 2014 10:46:36 -0700 (PDT) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Fri, 20 Jun 2014 13:46:19 -0400 Message-Id: <1403286379-52829-2-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1403286379-52829-1-git-send-email-mike.holmes@linaro.org> References: <1403286379-52829-1-git-send-email-mike.holmes@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 2/2] sparse warning: Make local functions static 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.179 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 Reviewed-by: Anders Roxell --- test/generator/odp_generator.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/generator/odp_generator.c b/test/generator/odp_generator.c index ca84e4c..fd85455 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;