Message ID | 1424806074-26864-4-git-send-email-mike.holmes@linaro.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBCT4HJVWSENBBZ5BWOTQKGQEMISJZLA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 05A572029F for <linaro@patches.linaro.org>; Tue, 24 Feb 2015 19:28:41 +0000 (UTC) Received: by mail-wi0-f197.google.com with SMTP id l15sf16632768wiw.0 for <linaro@patches.linaro.org>; Tue, 24 Feb 2015 11:28:39 -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=nSKC4l1X75mnSgEGuySVI0x+8UZljWl6T1GPI7cLC8U=; b=cyJ0f4q1KDe6mZx0OsSWph7VifdyWj/wrCmi2DF4ukOhCYIHrwbBssexTNnYEg1HGH b4LHBgq+sjowbuJ5glwvTEtjqSOyfb+Jvug5VyIXOlYu9+/5688lldSuZOD4dEyupVE5 5ZLWPCTAF2e024creqw3g6lW753PNfWIXxU6Av6LWkEyl3maSS9OzrPNjgZkj+6uDU4k tzTl5mexrXt//Zu5cqkbHYvLC/F5jd+I4NX0mb29cXQbyGs9XcsMy+IZzk+BfT6vZ0Mr JZTCrmbvYZDQIZrkNY7Olir1GG4NMoQ3H8ivVzlmU4avVQNLNg6ixfgcanjn3lInyluy UOWg== X-Gm-Message-State: ALoCoQnYatz/2uQwNMt8LjVRFG9Lz0ouSCk26AWX8gAkUzr5syconJjrFGpk/enO8DW2QUhIwrok X-Received: by 10.152.45.7 with SMTP id i7mr2389943lam.9.1424806119512; Tue, 24 Feb 2015 11:28:39 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.45.68 with SMTP id k4ls650070lam.85.gmail; Tue, 24 Feb 2015 11:28:39 -0800 (PST) X-Received: by 10.112.205.68 with SMTP id le4mr15393088lbc.96.1424806119240; Tue, 24 Feb 2015 11:28:39 -0800 (PST) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id ox2si12397694lbc.50.2015.02.24.11.28.39 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Feb 2015 11:28:39 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by lbvp9 with SMTP id p9so27364973lbv.0 for <patchwork-forward@linaro.org>; Tue, 24 Feb 2015 11:28:39 -0800 (PST) X-Received: by 10.152.43.51 with SMTP id t19mr15486887lal.73.1424806119155; Tue, 24 Feb 2015 11:28:39 -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 h5csp2126588lbj; Tue, 24 Feb 2015 11:28:38 -0800 (PST) X-Received: by 10.140.39.70 with SMTP id u64mr32907175qgu.22.1424806117648; Tue, 24 Feb 2015 11:28:37 -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 b9si15243505qan.65.2015.02.24.11.28.36 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 24 Feb 2015 11:28:37 -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 <lng-odp-bounces@lists.linaro.org>) id 1YQL9m-0003D2-Ko; Tue, 24 Feb 2015 19:28:34 +0000 Received: from mail-qc0-f177.google.com ([209.85.216.177]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from <mike.holmes@linaro.org>) id 1YQL9O-00036u-Bs for lng-odp@lists.linaro.org; Tue, 24 Feb 2015 19:28:10 +0000 Received: by qcvs11 with SMTP id s11so18423909qcv.8 for <lng-odp@lists.linaro.org>; Tue, 24 Feb 2015 11:28:05 -0800 (PST) X-Received: by 10.140.133.69 with SMTP id 66mr12931409qhf.17.1424806085147; Tue, 24 Feb 2015 11:28:05 -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 68sm30076533qgz.8.2015.02.24.11.28.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Feb 2015 11:28:04 -0800 (PST) From: Mike Holmes <mike.holmes@linaro.org> To: lng-odp@lists.linaro.org Date: Tue, 24 Feb 2015 14:27:54 -0500 Message-Id: <1424806074-26864-4-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1424806074-26864-1-git-send-email-mike.holmes@linaro.org> References: <1424806074-26864-1-git-send-email-mike.holmes@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH v3 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: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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.180 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 |
diff --git a/platform/linux-generic/odp_shared_memory.c b/platform/linux-generic/odp_shared_memory.c index 1eb288e..1ab8a2c 100644 --- a/platform/linux-generic/odp_shared_memory.c +++ b/platform/linux-generic/odp_shared_memory.c @@ -27,6 +27,9 @@ #include <string.h> #include <errno.h> +_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;
Signed-off-by: Mike Holmes <mike.holmes@linaro.org> --- platform/linux-generic/odp_shared_memory.c | 3 +++ 1 file changed, 3 insertions(+)