Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp3938344ooa; Mon, 13 Aug 2018 21:42:57 -0700 (PDT) X-Google-Smtp-Source: AA+uWPymCF4GeVXmYZw2SPgv9AyZ30rDHQZMHWLmJ3LroHaj02MQIysxvDFAiw31c3jB+VzpDwcG X-Received: by 2002:a62:20d8:: with SMTP id m85-v6mr21918783pfj.74.1534221777101; Mon, 13 Aug 2018 21:42:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534221777; cv=none; d=google.com; s=arc-20160816; b=mKRDGSs7WePHXWL8RBT09F8G7gQyvrqrevvP/InWeAf0Bsje0WeQtU+ccfl3hrAAkc 5jXgscYIAjMql37oLYzdleBPy7OJ3JN+Me7i/yN3egERJ7TOR+GPOCtsTYuaa/j+sWm/ OSBTEkgZYN6I192ttzPUeW4HtHYw18Xg+6zx6ST/CV1H8u5BD9c7gGYuAhCxGU8tOeTH wBfDY+x0EMgzY1/Cn9TKB4kPWMuHZM7cfTBPIwRA2DaxQuznZ9ih0IDdPjtGgHWqfXty QeXlRocXD+3m7uLkTlOq41KEA3VmQ+f8cgmrEKJ9w9WbTKjBrCiqiH36zInHESCSJoz8 hqQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=0r0IPlmIvWjSGRexUm9CAvK/R1FANdX5H7nnhh/7iEE=; b=tUo4bkvzvu95fwwq9GKERKk63SBhzS/FvIafOGIU/jX9/+Ye/YecFo0KHqhIumOZle y2Em5zlBV8o9iUS5KGmfh4cGH+DRNFScJqrjDpvV6EuVXwWNIMAq83EPyn8RYC+KslD9 4UhE4Mh5lXpVDCzbjjNQ8qWb6wVmzg3eOidfS7f2TpjSRX2rtXBXXrP1/1KDI0dd5Cix GRV9ejU9ePMwrgsYk7IGKcCCNmSZPow+e9gu1qI+g8KQX6+gPrOUCljhS2STAkV/eXOb mNyXP7kUPTQhIC7hvWr11okIC93Yp+qDrDuqjmtjG0DE+5SqKWYUsXQKlRMICMR8KH1N o8gA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n64-v6si20761256pgn.247.2018.08.13.21.42.42; Mon, 13 Aug 2018 21:42:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731469AbeHNH0d (ORCPT + 99 others); Tue, 14 Aug 2018 03:26:33 -0400 Received: from smtprelay0187.hostedemail.com ([216.40.44.187]:33129 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730698AbeHNH0d (ORCPT ); Tue, 14 Aug 2018 03:26:33 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id E81BD182CED2A; Tue, 14 Aug 2018 04:41:08 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:541:599:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1538:1567:1593:1594:1711:1714:1730:1747:1777:1792:2110:2393:2559:2562:2828:3138:3139:3140:3141:3142:3622:3865:3867:3868:3871:3872:3873:3874:4184:4321:4361:5007:7903:10004:10400:10848:11026:11232:11473:11658:11914:12438:12740:12760:12895:13069:13255:13311:13357:13439:14180:14659:21060:21080:21433:21627:30054:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:30,LUA_SUMMARY:none X-HE-Tag: steel97_613a2a7eef721 X-Filterd-Recvd-Size: 1451 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf10.hostedemail.com (Postfix) with ESMTPA; Tue, 14 Aug 2018 04:41:08 +0000 (UTC) Message-ID: Subject: Re: [PATCH 6/9] platform: goldfish: pipe: Fail compilation if structs are too large From: Joe Perches To: Roman Kiryanov Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, Todd Kjos Date: Mon, 13 Aug 2018 21:41:06 -0700 In-Reply-To: References: <20180813233839.190855-1-rkir@google.com> <20180813233839.190855-6-rkir@google.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-08-13 at 20:47 -0700, Roman Kiryanov wrote: > Hi, > > thank you for reviewing my patches. I decided to put BUILD_BUG_ON > close to places where it is important that these structs fit into a > memory page to give some context. And you make the reader figure out what type dev->buffers is unnecessarily when sizeof(struct goldfish_pipe_dev_buffers) is pretty obvious. > Regards, > Roman. cheers, Joe