From patchwork Wed Apr 15 18:25:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 47233 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C9EAD2121F for ; Wed, 15 Apr 2015 18:26:19 +0000 (UTC) Received: by lbbrr5 with SMTP id rr5sf11464446lbb.3 for ; Wed, 15 Apr 2015 11:26:18 -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:delivered-to:from:to:date :message-id:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=8Y8bLdWjxYCtK1HBzfZ1IICGDxt/j+/lGSFCZn4vZNA=; b=V2tdj2iKHm8jr88QVuj+wksXOi4gK7qv8ZONSfgW3ilK2cFTlNHfOopl1IG8gQklhX OYRSmniRpI6VDvRdYsgHk3d28PPQwN9r19V/V0BOGek2q5Rq2VUF5jYZ8BjrI52Pgqf2 IrcHrxKmF74M06CGyIXsU5rAcSutjK5A28n++tDUlLIwCR4sYMXeqDpkz6j0yJSrwxgm 9pXMAoSw1WKC2wd0dhefYyK9JrJL08UVNKxj+mK3oB3+Xvdygz3s5LKKxUFkufCL92G+ tW2/V4qfuIK2knfgwcmw1w1jYKoaTREG9MLRep5vDOn9FLNzp7k5Ycm90prgadiDunJ7 KVNA== X-Gm-Message-State: ALoCoQlWbs0ZW9GzWLHPoKDt/YUPb7uWjt2KL93xkvg+yp1jzdc+pC68KO9nrbr8wHJjGTcK3odg X-Received: by 10.180.211.168 with SMTP id nd8mr75703wic.4.1429122378553; Wed, 15 Apr 2015 11:26:18 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.7.167 with SMTP id dd7ls197967lad.28.gmail; Wed, 15 Apr 2015 11:26:18 -0700 (PDT) X-Received: by 10.152.36.2 with SMTP id m2mr24724214laj.72.1429122378390; Wed, 15 Apr 2015 11:26:18 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id tq9si3498878lbb.126.2015.04.15.11.26.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Apr 2015 11:26:18 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by lbbqq2 with SMTP id qq2so40708546lbb.3 for ; Wed, 15 Apr 2015 11:26:18 -0700 (PDT) X-Received: by 10.152.5.72 with SMTP id q8mr24744430laq.73.1429122378243; Wed, 15 Apr 2015 11:26:18 -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.112.67.65 with SMTP id l1csp2680793lbt; Wed, 15 Apr 2015 11:26:17 -0700 (PDT) X-Received: by 10.140.101.214 with SMTP id u80mr32400154qge.48.1429122376878; Wed, 15 Apr 2015 11:26:16 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id gu9si5500794qcb.24.2015.04.15.11.26.16; Wed, 15 Apr 2015 11:26:16 -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; Received: by lists.linaro.org (Postfix, from userid 109) id DA93E61F1E; Wed, 15 Apr 2015 18:26:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal 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=ham autolearn_force=no version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 5B9F761EA1; Wed, 15 Apr 2015 18:26:14 +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 6685661ED9; Wed, 15 Apr 2015 18:26:07 +0000 (UTC) Received: from mail-qk0-f174.google.com (mail-qk0-f174.google.com [209.85.220.174]) by lists.linaro.org (Postfix) with ESMTPS id BE00C61EA1 for ; Wed, 15 Apr 2015 18:26:06 +0000 (UTC) Received: by qkx62 with SMTP id 62so95001288qkx.0 for ; Wed, 15 Apr 2015 11:26:06 -0700 (PDT) X-Received: by 10.140.93.199 with SMTP id d65mr32085482qge.104.1429122328630; Wed, 15 Apr 2015 11:25:28 -0700 (PDT) Received: from mike-desktop.?.holmesfamily.ws (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by mx.google.com with ESMTPSA id d64sm3720173qka.15.2015.04.15.11.25.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Apr 2015 11:25:27 -0700 (PDT) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Wed, 15 Apr 2015 14:25:22 -0400 Message-Id: <1429122322-5728-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 X-Topics: patch Subject: [lng-odp] [PATCH v2] linux-generic: odp_linux: migrate helpers to helper dir X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 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" 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.217.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 The odph helper src files do not belong in linux-generic, move them out to the helper directory. >From the helper directory they may be more cleanly extended to support other execution environments beyond Linux. Clean up checkpatch whitespace warning in the migrated code. Signed-off-by: Mike Holmes --- v2 move src files to root of helper platform/linux-generic/odp_linux.c => helper/linux.c | 1 - platform/linux-generic/odp_ring.c => helper/ring.c | 0 platform/linux-generic/Makefile.am | 4 ++-- 3 files changed, 2 insertions(+), 3 deletions(-) rename platform/linux-generic/odp_linux.c => helper/linux.c (99%) rename platform/linux-generic/odp_ring.c => helper/ring.c (100%) diff --git a/platform/linux-generic/odp_linux.c b/helper/linux.c similarity index 99% rename from platform/linux-generic/odp_linux.c rename to helper/linux.c index 6865ab1..b753e4d 100644 --- a/platform/linux-generic/odp_linux.c +++ b/helper/linux.c @@ -141,7 +141,6 @@ void odph_linux_pthread_join(odph_linux_pthread_t *thread_tbl, int num) pthread_attr_destroy(&thread_tbl[i].attr); free(thread_tbl[i].start_args); } - } diff --git a/platform/linux-generic/odp_ring.c b/helper/ring.c similarity index 100% rename from platform/linux-generic/odp_ring.c rename to helper/ring.c diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index ea509c9..66f0474 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -151,14 +151,14 @@ __LIB__libodp_la_SOURCES = \ odp_event.c \ odp_init.c \ odp_impl.c \ - odp_linux.c \ + ../../helper/linux.c \ odp_packet.c \ odp_packet_flags.c \ odp_packet_io.c \ odp_packet_socket.c \ odp_pool.c \ odp_queue.c \ - odp_ring.c \ + ../../helper/ring.c \ odp_rwlock.c \ odp_schedule.c \ odp_shared_memory.c \