Message ID | 1398428077-32199-3-git-send-email-anders.roxell@linaro.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBD5JHFX53YCBB3FD5GNAKGQEX6W4JCA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f69.google.com (mail-qa0-f69.google.com [209.85.216.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EBBE6203AC for <linaro@patches.linaro.org>; Fri, 25 Apr 2014 12:15:40 +0000 (UTC) Received: by mail-qa0-f69.google.com with SMTP id w8sf11099720qac.4 for <linaro@patches.linaro.org>; Fri, 25 Apr 2014 05:15:40 -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=oTeMSDlYO9c7buCLPr99JY2G1drH2tqtbNLrGzOI9mI=; b=NIB8gLogzpKVcf6EpGRUctIU4A6gbr3SmURc4tta69ocmDiwQbHknxDg5C1ZCwNVur YijWvTCF14eiw1DVE8t6KW5nbxyvkSo9dYPSbnXM1e7KYAOamcj0dNh658629AsCRwGt 8uHh0jkPmxisED79i5yw7XaaUI/+U8OcsHQ9Wfp7WsfplYZnFbVdW+MHIoRyU9WwexBG Oz+LqDmIXngiu5gfD5Lzm5L7uU0SHM5UyuDAEpSPiQQL8gi/yWssvrgeoYFgKBARhTs8 RZ9RsewoAZOb1UPIKoMrnCHPYP1YxfL9gNJ41zD8aDfYl/LcWZ39TBoGLmzPHJgjdoWV i/wQ== X-Gm-Message-State: ALoCoQmOS0nXpbU+oUJmwcpRcNHNzkSr0VI6Qq7uvmLqNbTv7/L8y53ssMqJBvYhA0C2lZKkQcvN X-Received: by 10.58.127.66 with SMTP id ne2mr4107999veb.27.1398428140594; Fri, 25 Apr 2014 05:15:40 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.26.119 with SMTP id 110ls1512404qgu.20.gmail; Fri, 25 Apr 2014 05:15:40 -0700 (PDT) X-Received: by 10.220.163.3 with SMTP id y3mr6571353vcx.7.1398428140464; Fri, 25 Apr 2014 05:15:40 -0700 (PDT) Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) by mx.google.com with ESMTPS id tv3si1655510vdc.18.2014.04.25.05.15.40 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Apr 2014 05:15:40 -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.128.171; Received: by mail-ve0-f171.google.com with SMTP id jy13so4659926veb.30 for <patchwork-forward@linaro.org>; Fri, 25 Apr 2014 05:15:40 -0700 (PDT) X-Received: by 10.220.92.193 with SMTP id s1mr294614vcm.34.1398428140399; Fri, 25 Apr 2014 05:15:40 -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 ib8csp92997vcb; Fri, 25 Apr 2014 05:15:40 -0700 (PDT) X-Received: by 10.140.19.212 with SMTP id 78mr10452077qgh.84.1398428140023; Fri, 25 Apr 2014 05:15:40 -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 z8si3707093qar.111.2014.04.25.05.15.39 for <multiple recipients> (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 25 Apr 2014 05:15:40 -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 <lng-odp-bounces@lists.linaro.org>) id 1Wdf2B-0006ga-HC; Fri, 25 Apr 2014 12:15:15 +0000 Received: from mail-la0-f43.google.com ([209.85.215.43]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from <anders.roxell@linaro.org>) id 1Wdf1y-0006cA-EJ for lng-odp@lists.linaro.org; Fri, 25 Apr 2014 12:15:02 +0000 Received: by mail-la0-f43.google.com with SMTP id c6so3016709lan.16 for <lng-odp@lists.linaro.org>; Fri, 25 Apr 2014 05:15:20 -0700 (PDT) X-Received: by 10.112.47.3 with SMTP id z3mr5288632lbm.34.1398428120158; Fri, 25 Apr 2014 05:15:20 -0700 (PDT) Received: from localhost (c-853670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.133]) by mx.google.com with ESMTPSA id bm3sm7963683lbb.12.2014.04.25.05.15.18 for <multiple recipients> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 25 Apr 2014 05:15:19 -0700 (PDT) From: Anders Roxell <anders.roxell@linaro.org> To: lng-odp@lists.linaro.org Date: Fri, 25 Apr 2014 14:14:35 +0200 Message-Id: <1398428077-32199-3-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1398428077-32199-1-git-send-email-anders.roxell@linaro.org> References: <1398428077-32199-1-git-send-email-anders.roxell@linaro.org> Subject: [lng-odp] [PATCH 2/4] linux-generic:odp_shared_memory:MAP_ANON -std=c99 compatible X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <http://lists.linaro.org/mailman/listinfo/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
diff --git a/platform/linux-generic/source/odp_shared_memory.c b/platform/linux-generic/source/odp_shared_memory.c index 8288b46..784f42b 100644 --- a/platform/linux-generic/source/odp_shared_memory.c +++ b/platform/linux-generic/source/odp_shared_memory.c @@ -12,9 +12,7 @@ #include <odp_debug.h> #include <sys/mman.h> -#ifdef __powerpc__ #include <asm/mman.h> -#endif #include <fcntl.h> #include <stdio.h> @@ -42,6 +40,10 @@ typedef struct { } odp_shm_table_t; +#ifndef MAP_ANONYMOUS +#define MAP_ANONYMOUS MAP_ANON +#endif + #define SHM_FLAGS (MAP_SHARED | MAP_ANONYMOUS)
Signed-off-by: Anders Roxell <anders.roxell@linaro.org> --- platform/linux-generic/source/odp_shared_memory.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)