From patchwork Tue May 6 10:42:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 29689 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f70.google.com (mail-yh0-f70.google.com [209.85.213.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A434820534 for ; Tue, 6 May 2014 10:43:04 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id a41sf1907975yho.9 for ; Tue, 06 May 2014 03:43:04 -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=oEO9atfbmugGCcHiLgPrasfC8KfC09xvt/DQDsnBvIs=; b=maX/Akitc3JjlwSe9dMNfBDgoyUR9xJCuKodoCQkn05OVbl8Vd/gEcb2H8DPE9+nEj n/8WrMVCEq7PJj0BjssChcp6UYoeA3QBTnm/IWxJ/0MrnD3NvbXMinrqQVn1N6rl0VeV Umz/KDr/wouQmcSMX17G4jRy9gwzvERfPlKWtdcJ/zBkLxDhhUGLgZ1HgDokD3EYvrqS /gfqz3jdkGho2Y1MdnP4y0dWsDfSEW09dZBYUgyZktrPaBlEnqk0iCXPUgsl0Iv35Ncx Lhjx9qNOpB3icQ4tCIo3x3IcGuUGRyBepH5go19NT6elxgdmDrYaqvo9XO9sQdN77D4/ QPQQ== X-Gm-Message-State: ALoCoQlrcIwE3OgKKjfB9ZLy8SJoRJGrs9+gXdVqgRxVlRNBYDC5faX+nptvoS8WXuxIp4b41wrQ X-Received: by 10.236.128.112 with SMTP id e76mr711456yhi.38.1399372984003; Tue, 06 May 2014 03:43:04 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.38.72 with SMTP id s66ls2869012qgs.85.gmail; Tue, 06 May 2014 03:43:03 -0700 (PDT) X-Received: by 10.52.253.75 with SMTP id zy11mr27638368vdc.10.1399372983877; Tue, 06 May 2014 03:43:03 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id j5si2258515veb.21.2014.05.06.03.43.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 06 May 2014 03:43:03 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id im17so692897vcb.10 for ; Tue, 06 May 2014 03:43:03 -0700 (PDT) X-Received: by 10.52.164.175 with SMTP id yr15mr290146vdb.59.1399372983549; Tue, 06 May 2014 03:43:03 -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.220.221.72 with SMTP id ib8csp212234vcb; Tue, 6 May 2014 03:43:03 -0700 (PDT) X-Received: by 10.224.169.6 with SMTP id w6mr13010230qay.102.1399372983038; Tue, 06 May 2014 03:43:03 -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 4si5957402qcl.14.2014.05.06.03.43.02 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 06 May 2014 03:43:03 -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 1WhcpK-00010l-5U; Tue, 06 May 2014 10:42:22 +0000 Received: from mail-lb0-f176.google.com ([209.85.217.176]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WhcpD-000106-L8 for lng-odp@lists.linaro.org; Tue, 06 May 2014 10:42:15 +0000 Received: by mail-lb0-f176.google.com with SMTP id p9so2116413lbv.21 for ; Tue, 06 May 2014 03:42:49 -0700 (PDT) X-Received: by 10.112.150.233 with SMTP id ul9mr31176551lbb.2.1399372969021; Tue, 06 May 2014 03:42:49 -0700 (PDT) Received: from localhost (c-853670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.133]) by mx.google.com with ESMTPSA id fa8sm13019001lbc.18.2014.05.06.03.42.47 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 06 May 2014 03:42:47 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Tue, 6 May 2014 12:42:43 +0200 Message-Id: <1399372963-30023-1-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] include/*: tidy up the include directory 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: anders.roxell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) 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: Anders Roxell --- Hi, I think we should tidy up the include directory before we start doing the reorg to plat directory and vpath that Taras is working on. that will involve a lot of file copy from the include directory right? Cheers, Anders include/helper/odp_linux.h | 7 ------- include/helper/odp_ring.h | 8 ++++---- include/odp_align.h | 7 ------- include/odp_atomic.h | 5 ++--- include/odp_barrier.h | 7 ------- include/odp_buffer.h | 7 ------- include/odp_buffer_pool.h | 7 ------- include/odp_config.h | 7 ------- include/odp_coremask.h | 8 ++++---- include/odp_hints.h | 7 ------- include/odp_init.h | 7 ------- include/odp_packet.h | 7 ------- include/odp_packet_io.h | 1 - include/odp_queue.h | 7 ------- include/odp_shared_memory.h | 2 -- include/odp_spinlock.h | 7 ------- include/odp_std_types.h | 3 --- include/odp_sync.h | 7 ------- include/odp_system_info.h | 7 ------- include/odp_thread.h | 7 ------- include/odp_time.h | 2 -- include/odp_version.h | 7 ------- 22 files changed, 10 insertions(+), 124 deletions(-) diff --git a/include/helper/odp_linux.h b/include/helper/odp_linux.h index 3e91ce0..3076c22 100644 --- a/include/helper/odp_linux.h +++ b/include/helper/odp_linux.h @@ -66,10 +66,3 @@ void odp_linux_pthread_join(odp_linux_pthread_t *thread_tbl, int num); #endif #endif - - - - - - - diff --git a/include/helper/odp_ring.h b/include/helper/odp_ring.h index ed58e91..0911531 100644 --- a/include/helper/odp_ring.h +++ b/include/helper/odp_ring.h @@ -192,7 +192,7 @@ typedef struct odp_ring { * - ENOMEM - no appropriate memory area found in which to create memzone */ odp_ring_t *odp_ring_create(const char *name, unsigned count, - unsigned flags); + unsigned flags); /** @@ -245,7 +245,7 @@ void odp_ring_dump(const odp_ring_t *r); * - n: Actual number of objects enqueued. */ int __odp_ring_mp_do_enqueue(odp_ring_t *r, void * const *obj_table, - unsigned n, enum odp_ring_queue_behavior behavior); + unsigned n, enum odp_ring_queue_behavior behavior); /** * Enqueue several objects on a ring (NOT multi-producers safe). @@ -300,7 +300,7 @@ int __odp_ring_sp_do_enqueue(odp_ring_t *r, void * const *obj_table, */ int __odp_ring_mc_do_dequeue(odp_ring_t *r, void **obj_table, - unsigned n, enum odp_ring_queue_behavior behavior); + unsigned n, enum odp_ring_queue_behavior behavior); /** * Dequeue several objects from a ring (NOT multi-consumers safe). @@ -347,7 +347,7 @@ int __odp_ring_sc_do_dequeue(odp_ring_t *r, void **obj_table, * - -ENOBUFS: Not enough room in the ring to enqueue, no object is enqueued. */ int odp_ring_mp_enqueue_bulk(odp_ring_t *r, void * const *obj_table, - unsigned n); + unsigned n); /** * Enqueue several objects on a ring (NOT multi-producers safe). diff --git a/include/odp_align.h b/include/odp_align.h index ce72f01..83495a8 100644 --- a/include/odp_align.h +++ b/include/odp_align.h @@ -180,10 +180,3 @@ extern "C" { #endif #endif - - - - - - - diff --git a/include/odp_atomic.h b/include/odp_atomic.h index 630b8bc..5a25dc7 100644 --- a/include/odp_atomic.h +++ b/include/odp_atomic.h @@ -360,7 +360,7 @@ static inline uint64_t odp_atomic_fetch_add_u64(odp_atomic_u64_t *ptr, uint64_t value) { return __sync_fetch_and_add((odp_atomic_u32_t *)ptr, - (uint32_t)value); + (uint32_t)value); } #else static inline uint64_t odp_atomic_fetch_add_u64(odp_atomic_u64_t *ptr, @@ -394,7 +394,7 @@ static inline uint64_t odp_atomic_fetch_sub_u64(odp_atomic_u64_t *ptr, uint64_t value) { return __sync_fetch_and_sub((odp_atomic_u32_t *)ptr, - (uint32_t)value); + (uint32_t)value); } #else static inline uint64_t odp_atomic_fetch_sub_u64(odp_atomic_u64_t *ptr, @@ -468,4 +468,3 @@ odp_atomic_cmpset_u64(odp_atomic_u64_t *dst, uint64_t exp, uint64_t src) #endif #endif - diff --git a/include/odp_barrier.h b/include/odp_barrier.h index 4547a26..a7b3215 100644 --- a/include/odp_barrier.h +++ b/include/odp_barrier.h @@ -54,10 +54,3 @@ void odp_barrier_sync(odp_barrier_t *barrier); #endif #endif - - - - - - - diff --git a/include/odp_buffer.h b/include/odp_buffer.h index 2d2c25a..d79e76d 100644 --- a/include/odp_buffer.h +++ b/include/odp_buffer.h @@ -98,10 +98,3 @@ void odp_buffer_print(odp_buffer_t buf); #endif #endif - - - - - - - diff --git a/include/odp_buffer_pool.h b/include/odp_buffer_pool.h index 8ac744a..9112489 100644 --- a/include/odp_buffer_pool.h +++ b/include/odp_buffer_pool.h @@ -97,10 +97,3 @@ void odp_buffer_free(odp_buffer_t buf); #endif #endif - - - - - - - diff --git a/include/odp_config.h b/include/odp_config.h index 1b0b76e..7a15ff9 100644 --- a/include/odp_config.h +++ b/include/odp_config.h @@ -49,10 +49,3 @@ extern "C" { #endif #endif - - - - - - - diff --git a/include/odp_coremask.h b/include/odp_coremask.h index 163de22..141cb6a 100644 --- a/include/odp_coremask.h +++ b/include/odp_coremask.h @@ -130,7 +130,7 @@ int odp_coremask_count(const odp_coremask_t *mask); * @param src2 Source mask 2 */ static inline void odp_coremask_and(odp_coremask_t *dest, odp_coremask_t *src1, - odp_coremask_t *src2) + odp_coremask_t *src2) { dest->_u64[0] = src1->_u64[0] & src2->_u64[0]; } @@ -143,7 +143,7 @@ static inline void odp_coremask_and(odp_coremask_t *dest, odp_coremask_t *src1, * @param src2 Source mask 2 */ static inline void odp_coremask_or(odp_coremask_t *dest, odp_coremask_t *src1, - odp_coremask_t *src2) + odp_coremask_t *src2) { dest->_u64[0] = src1->_u64[0] | src2->_u64[0]; } @@ -156,7 +156,7 @@ static inline void odp_coremask_or(odp_coremask_t *dest, odp_coremask_t *src1, * @param src2 Source mask 2 */ static inline void odp_coremask_xor(odp_coremask_t *dest, odp_coremask_t *src1, - odp_coremask_t *src2) + odp_coremask_t *src2) { dest->_u64[0] = src1->_u64[0] ^ src2->_u64[0]; } @@ -165,7 +165,7 @@ static inline void odp_coremask_xor(odp_coremask_t *dest, odp_coremask_t *src1, * Test if two masks contain the same cores */ static inline int odp_coremask_equal(odp_coremask_t *mask1, - odp_coremask_t *mask2) + odp_coremask_t *mask2) { return (mask1->_u64[0] == mask2->_u64[0]); } diff --git a/include/odp_hints.h b/include/odp_hints.h index ce74e76..e1cd1d0 100644 --- a/include/odp_hints.h +++ b/include/odp_hints.h @@ -80,10 +80,3 @@ extern "C" { #endif #endif - - - - - - - diff --git a/include/odp_init.h b/include/odp_init.h index d04f349..490324a 100644 --- a/include/odp_init.h +++ b/include/odp_init.h @@ -53,10 +53,3 @@ int odp_init_local(int thr_id); #endif #endif - - - - - - - diff --git a/include/odp_packet.h b/include/odp_packet.h index 4a16e11..f7014fb 100644 --- a/include/odp_packet.h +++ b/include/odp_packet.h @@ -225,10 +225,3 @@ int odp_packet_copy(odp_packet_t pkt_dst, odp_packet_t pkt_src); #endif #endif - - - - - - - diff --git a/include/odp_packet_io.h b/include/odp_packet_io.h index 0002b1e..cfefac0 100644 --- a/include/odp_packet_io.h +++ b/include/odp_packet_io.h @@ -134,4 +134,3 @@ odp_pktio_t odp_pktio_get_input(odp_packet_t pkt); #endif #endif - diff --git a/include/odp_queue.h b/include/odp_queue.h index 6401aea..71499d8 100644 --- a/include/odp_queue.h +++ b/include/odp_queue.h @@ -193,10 +193,3 @@ odp_schedule_sync_t odp_queue_sched_type(odp_queue_t queue); #endif #endif - - - - - - - diff --git a/include/odp_shared_memory.h b/include/odp_shared_memory.h index 28b650d..8ac8847 100644 --- a/include/odp_shared_memory.h +++ b/include/odp_shared_memory.h @@ -57,5 +57,3 @@ void odp_shm_print_all(void); #endif #endif - - diff --git a/include/odp_spinlock.h b/include/odp_spinlock.h index f25d068..52b7a71 100644 --- a/include/odp_spinlock.h +++ b/include/odp_spinlock.h @@ -81,10 +81,3 @@ int odp_spinlock_is_locked(odp_spinlock_t *spinlock); #endif #endif - - - - - - - diff --git a/include/odp_std_types.h b/include/odp_std_types.h index 7013ca3..b12a2f3 100644 --- a/include/odp_std_types.h +++ b/include/odp_std_types.h @@ -36,6 +36,3 @@ extern "C" { #endif #endif - - - diff --git a/include/odp_sync.h b/include/odp_sync.h index cf56faa..c106c75 100644 --- a/include/odp_sync.h +++ b/include/odp_sync.h @@ -50,10 +50,3 @@ static inline void odp_sync_stores(void) #endif #endif - - - - - - - diff --git a/include/odp_system_info.h b/include/odp_system_info.h index 50b5081..7a02df7 100644 --- a/include/odp_system_info.h +++ b/include/odp_system_info.h @@ -70,10 +70,3 @@ int odp_sys_core_count(void); #endif #endif - - - - - - - diff --git a/include/odp_thread.h b/include/odp_thread.h index 31057f7..e8e8c8a 100644 --- a/include/odp_thread.h +++ b/include/odp_thread.h @@ -53,10 +53,3 @@ int odp_thread_core(void); #endif #endif - - - - - - - diff --git a/include/odp_time.h b/include/odp_time.h index d552222..188d1fe 100644 --- a/include/odp_time.h +++ b/include/odp_time.h @@ -65,5 +65,3 @@ uint64_t odp_time_ns_to_cycles(uint64_t ns); #endif #endif - - diff --git a/include/odp_version.h b/include/odp_version.h index 152b329..c823e2d 100644 --- a/include/odp_version.h +++ b/include/odp_version.h @@ -74,10 +74,3 @@ static inline const char *odp_version_api_str(void) #endif #endif - - - - - - -