From patchwork Fri May 2 19:47:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 29587 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B5045202E7 for ; Fri, 2 May 2014 19:48:25 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id b6sf18446524yha.0 for ; Fri, 02 May 2014 12:48:25 -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=ZcVdRQ+PSgFzAXgDCoxAjrs73Tqmlksqv5H7Q5Txymk=; b=I4C9AYZEx+hFB3H3I5fr7tUJ/5Vg+rcpiKIiFVoUq2rB0ZAXKWPNl3XWV7Tiz8bYCQ S0yFCBVeTxPW/NpdxyQNe0M52Y4Nln8dHOW0N5aXfa7mHSI5S+c+4SEL2bj13PGu8UNK qzXwburojYev4tQ7RrfzzrP+XqWR47tTt/BM4ZUqNTKfFI9wRDcM8IyUr8cy0mw69oNQ 4Rstw5BOgR9ieG9XnxQ2mvZCtyu5fW/ExT3BJbuaxyrpKxyUadSn045r1yHlJMHuAvxV rUnMXPkEojvoG/GaY/Oos9SGLn5UA+HOsuYVpzjmRJ3wO7RP635Hd0myf43y54o2/0QQ /VaQ== X-Gm-Message-State: ALoCoQkcl9r8zjGzNardGsvYQdiPha4XKOJ9od4CY0jQLV3Rou06Xy510id8ACW4QbXJ503NO87q X-Received: by 10.224.68.72 with SMTP id u8mr9788651qai.1.1399060105441; Fri, 02 May 2014 12:48:25 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.102.180 with SMTP id w49ls1623922qge.3.gmail; Fri, 02 May 2014 12:48:25 -0700 (PDT) X-Received: by 10.58.98.232 with SMTP id el8mr1056017veb.42.1399060105271; Fri, 02 May 2014 12:48:25 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id ck5si6921222vdd.181.2014.05.02.12.48.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 02 May 2014 12:48:25 -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.176; Received: by mail-ve0-f176.google.com with SMTP id jz11so2234047veb.21 for ; Fri, 02 May 2014 12:48:25 -0700 (PDT) X-Received: by 10.52.249.48 with SMTP id yr16mr875598vdc.62.1399060105181; Fri, 02 May 2014 12:48:25 -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 ib8csp127495vcb; Fri, 2 May 2014 12:48:24 -0700 (PDT) X-Received: by 10.224.172.2 with SMTP id j2mr25398156qaz.83.1399060104123; Fri, 02 May 2014 12:48:24 -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 m6si1041671qcg.34.2014.05.02.12.48.23 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 02 May 2014 12:48:24 -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 1WgJQy-0006o6-Ou; Fri, 02 May 2014 19:47:48 +0000 Received: from mail-lb0-f171.google.com ([209.85.217.171]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WgJQk-0006n8-R9 for lng-odp@lists.linaro.org; Fri, 02 May 2014 19:47:34 +0000 Received: by mail-lb0-f171.google.com with SMTP id u14so3597439lbd.16 for ; Fri, 02 May 2014 12:48:03 -0700 (PDT) X-Received: by 10.112.150.162 with SMTP id uj2mr1940357lbb.52.1399060082972; Fri, 02 May 2014 12:48:02 -0700 (PDT) Received: from localhost (c-853670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.133]) by mx.google.com with ESMTPSA id r5sm34814111lbb.7.2014.05.02.12.48.01 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 02 May 2014 12:48:02 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Fri, 2 May 2014 21:47:45 +0200 Message-Id: <1399060067-22104-3-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1399060067-22104-1-git-send-email-anders.roxell@linaro.org> References: <1399060067-22104-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv2 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: 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 --- platform/linux-generic/source/odp_shared_memory.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 #include -#ifdef __powerpc__ #include -#endif #include #include @@ -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)