From patchwork Thu Feb 26 18:56:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 45200 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7796720674 for ; Thu, 26 Feb 2015 18:57:32 +0000 (UTC) Received: by wghb13 with SMTP id b13sf9803142wgh.2 for ; Thu, 26 Feb 2015 10:57:31 -0800 (PST) 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:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=Tubd1+zhB0dlPrRcejelaJnJMMr8M1FGYPVlIoBHGGk=; b=Re5sJW0k5q8CfoKuubCYfUGt1+gXjSaLc0JfTdHe/Iy/Yhp+4ZRXuV0m+WLokBiskT Y4PnNrT9wFF8fB17FPqyWxhvxPHs2t4UGbKqAHSveRmZVGXbMRfH0/XDcnJZfM+bAFMD aNqj99eNRIVoH9vPUISFbim9lm8Gqvua3sdE7T8I95jZJ4Nm6eeVngFXxr3hO3aitJfO KYubrmzr4QQpcaXDaHQjmqvLgEmWyb9g+GE8UPRiTLG/a/CniHI0UDtU88PNwMc0Osir S2/y0J645Mwz0sZ6GDnaVlkPBdZMI4w23jD5dfSI6o6xhJVs9p5jj80oYCrNQCeaI8WO Gufw== X-Gm-Message-State: ALoCoQkovmV0EVqqg1v9eu487AROzEk/aes1z7+W+vPKbUSBdzgk3wQuX2gb/ft8tQeDtp6fewI+ X-Received: by 10.180.11.34 with SMTP id n2mr980686wib.2.1424977051769; Thu, 26 Feb 2015 10:57:31 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.206.104 with SMTP id ln8ls69663lac.94.gmail; Thu, 26 Feb 2015 10:57:31 -0800 (PST) X-Received: by 10.152.207.37 with SMTP id lt5mr9216321lac.38.1424977051595; Thu, 26 Feb 2015 10:57:31 -0800 (PST) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id sr5si1254389lbb.113.2015.02.26.10.57.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Feb 2015 10:57:31 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by lbjf15 with SMTP id f15so12677847lbj.13 for ; Thu, 26 Feb 2015 10:57:31 -0800 (PST) X-Received: by 10.112.56.139 with SMTP id a11mr9175730lbq.36.1424977051173; Thu, 26 Feb 2015 10:57:31 -0800 (PST) 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.35.133 with SMTP id h5csp3491954lbj; Thu, 26 Feb 2015 10:57:29 -0800 (PST) X-Received: by 10.140.132.197 with SMTP id 188mr21724946qhe.24.1424977048807; Thu, 26 Feb 2015 10:57:28 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id b4si1675686qat.10.2015.02.26.10.57.27 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 26 Feb 2015 10:57:28 -0800 (PST) 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-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YR3cj-00087t-QJ; Thu, 26 Feb 2015 18:57:25 +0000 Received: from mail-qg0-f43.google.com ([209.85.192.43]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YR3cT-000852-Rs for lng-odp@lists.linaro.org; Thu, 26 Feb 2015 18:57:09 +0000 Received: by mail-qg0-f43.google.com with SMTP id i50so10305905qgf.2 for ; Thu, 26 Feb 2015 10:57:04 -0800 (PST) X-Received: by 10.140.194.204 with SMTP id p195mr21017241qha.21.1424977024686; Thu, 26 Feb 2015 10:57:04 -0800 (PST) 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 q5sm1064652qat.6.2015.02.26.10.57.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Feb 2015 10:57:04 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Thu, 26 Feb 2015 13:56:56 -0500 Message-Id: <1424977016-9990-4-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1424977016-9990-1-git-send-email-mike.holmes@linaro.org> References: <1424977016-9990-1-git-send-email-mike.holmes@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH v4 4/4] linux-generic: shared_memory: static assert on ODP_CONFIG_SHM_BLOCKS size 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: 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.169 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 Signed-off-by: Mike Holmes --- platform/linux-generic/odp_shared_memory.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/linux-generic/odp_shared_memory.c b/platform/linux-generic/odp_shared_memory.c index d6b912d..2c305c0 100644 --- a/platform/linux-generic/odp_shared_memory.c +++ b/platform/linux-generic/odp_shared_memory.c @@ -27,6 +27,9 @@ #include #include +_ODP_STATIC_ASSERT(ODP_CONFIG_SHM_BLOCKS >= ODP_CONFIG_POOLS, + "ODP_CONFIG_SHM_BLOCKS < ODP_CONFIG_POOLS"); + typedef struct { char name[ODP_SHM_NAME_LEN]; uint64_t size;