From patchwork Tue Apr 7 14:12:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 46829 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C43BB214BA for ; Tue, 7 Apr 2015 14:12:45 +0000 (UTC) Received: by layy10 with SMTP id y10sf13325469lay.0 for ; Tue, 07 Apr 2015 07:12:44 -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=8DUQFKOYIYTUuwfBVERFm5I74Bk8jiXQ88Iwb/3uTnE=; b=Hh3IthLiTAMLCCbxoaSHw4PQ3zlAxSN/Gc/uwzdwzBb0kD3VhzoPzEKHhWJXBhJBVJ P2PcZIzysaDx29KGSTP2rAA1v2yE8xz2JFtkuuCOH/phpfkZRFURs2kkiZq8k1XIafVt CchEpSKU5T1aEb2Qp5oZhtaFlMoWdXW0UgjiK1asAQM48T+7S3KhfCWiDmwozVOIadKM qcgI13Rn5u6wzIMIsHqZsWZxYk7LHsPJEYDhhySl06ZeE6a1uAY+lRgCLpqz1AFkv5JF E8g2ivLm1NDymVaczSJuML4dNT5KM41+GYNuf6upS/OyqIT+meVZxC7XliXO1UuHSHcH ndUw== X-Gm-Message-State: ALoCoQkL+lV30C2OMuVhsToUBwha+967b4AjHDsFzgmGqsQwPM0cAReLnNzxZu2C2Xd4fu66ck85 X-Received: by 10.112.189.131 with SMTP id gi3mr555378lbc.6.1428415964571; Tue, 07 Apr 2015 07:12:44 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.227 with SMTP id t3ls50410laj.72.gmail; Tue, 07 Apr 2015 07:12:44 -0700 (PDT) X-Received: by 10.152.18.225 with SMTP id z1mr18706803lad.124.1428415964429; Tue, 07 Apr 2015 07:12:44 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id pz9si944864lbb.92.2015.04.07.07.12.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Apr 2015 07:12:44 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbbqq2 with SMTP id qq2so34968146lbb.3 for ; Tue, 07 Apr 2015 07:12:44 -0700 (PDT) X-Received: by 10.152.234.169 with SMTP id uf9mr18490544lac.88.1428415964336; Tue, 07 Apr 2015 07:12:44 -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 l1csp450773lbt; Tue, 7 Apr 2015 07:12:43 -0700 (PDT) X-Received: by 10.140.239.140 with SMTP id k134mr23959116qhc.98.1428415963156; Tue, 07 Apr 2015 07:12:43 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id p1si7420610qcp.31.2015.04.07.07.12.42; Tue, 07 Apr 2015 07:12:43 -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: by lists.linaro.org (Postfix, from userid 109) id 2E90864F20; Tue, 7 Apr 2015 14:12:42 +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=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED autolearn=unavailable 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 448DE64F0D; Tue, 7 Apr 2015 14:12: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 7CED164F14; Tue, 7 Apr 2015 14:12:38 +0000 (UTC) Received: from mail-qg0-f45.google.com (mail-qg0-f45.google.com [209.85.192.45]) by lists.linaro.org (Postfix) with ESMTPS id 1C32264F0D for ; Tue, 7 Apr 2015 14:12:38 +0000 (UTC) Received: by qgfi89 with SMTP id i89so20805712qgf.1 for ; Tue, 07 Apr 2015 07:12:37 -0700 (PDT) X-Received: by 10.140.148.216 with SMTP id 207mr24615675qhu.62.1428415957886; Tue, 07 Apr 2015 07:12:37 -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 n83sm5402003qkh.31.2015.04.07.07.12.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Apr 2015 07:12:37 -0700 (PDT) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Tue, 7 Apr 2015 10:12:31 -0400 Message-Id: <1428415951-9065-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 X-Topics: patch Subject: [lng-odp] [PATCH] 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.171 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 Reviewed-by: Anders Roxell --- platform/linux-generic/odp_linux.c => helper/src/linux.c | 1 - platform/linux-generic/odp_ring.c => helper/src/ring.c | 0 platform/linux-generic/Makefile.am | 4 ++-- 3 files changed, 2 insertions(+), 3 deletions(-) rename platform/linux-generic/odp_linux.c => helper/src/linux.c (99%) rename platform/linux-generic/odp_ring.c => helper/src/ring.c (100%) diff --git a/platform/linux-generic/odp_linux.c b/helper/src/linux.c similarity index 99% rename from platform/linux-generic/odp_linux.c rename to helper/src/linux.c index 6865ab1..b753e4d 100644 --- a/platform/linux-generic/odp_linux.c +++ b/helper/src/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/src/ring.c similarity index 100% rename from platform/linux-generic/odp_ring.c rename to helper/src/ring.c diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index e5558ac..aa8973b 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -149,14 +149,14 @@ __LIB__libodp_la_SOURCES = \ odp_event.c \ odp_init.c \ odp_impl.c \ - odp_linux.c \ + ../../helper/src/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/src/ring.c \ odp_rwlock.c \ odp_schedule.c \ odp_shared_memory.c \