Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp620326imm; Fri, 27 Jul 2018 03:10:32 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeYImPGjmjy008MthUQJKcS5dQ/6keJgWWzQx/zO5IoXbMxLNC5YQvuO4cMBCOxyPqpJ0R1 X-Received: by 2002:a63:a347:: with SMTP id v7-v6mr5378621pgn.182.1532686232241; Fri, 27 Jul 2018 03:10:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532686232; cv=none; d=google.com; s=arc-20160816; b=H8oZbTyoslsvMRNKOZgxylNObjsqY0i/tdF5owPtkVx8ISWWjZ2dRrv1rBbKRFS+1s E/UDzLhfu6nVwmAzwSmtRRDxRRUcOECP6+XVBWjKi8g5/P2hee/IKHRbE1HayP93azk0 lXKIPwIYFDCrQndXOZ3raBBeuadf0DUvBcwG9jqrPPx5blDGbLMITz0CO7LmsmiO6FSz pJ1xPIyDyeMlbnfRoXTKH0ql9SkXYrM//TwQrpc5C9HGSCdBcJTU/ybjv/8zdPhs4a7q A64+fX4LHC2pnMn1wODmBw0ao8h20Prf5iim1mIhOcRFMGFVX45FqvipHXxfZ2heo1su 3+sg== 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:to:from:subject:message-id :arc-authentication-results; bh=QAkWjwOznvL3FZ60Npp0/dk06bRPEQVvoitmxWR5TAA=; b=qrkUilt+fZW5s+SstUnOp1aCiwGNlA8AsWfyMHKN67ZbdX8h3PzHxrfrZjsySUrfgg 3swiOGAOX2TAe6ij76q+kPoc7IpZB+Rq8DCliZ8B0zRgE7NHbPu07JmVZ9dH0caqocUN TswICtug7UvU8jgb+x8J6+fuesLeiH885h0TMz3YIQqHiRj8JE0LuqDKoehoRnd4S8dI JkwBK6PuxIukIrG239WazidG9KiWrl9I4qMidPBiqqtUfFCAXSO4sLcHmCu5YkRHh/Jo +XZX25s6ragNP7g8oqz/Os8cuPUKGmh3+yorcKQ5SJ07VMNWGecUKg2T5owbvu3/TTzH S0MA== 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 p2-v6si2981506pli.289.2018.07.27.03.10.17; Fri, 27 Jul 2018 03:10:32 -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 S1730872AbeG0LaH (ORCPT + 99 others); Fri, 27 Jul 2018 07:30:07 -0400 Received: from smtprelay0142.hostedemail.com ([216.40.44.142]:35947 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730577AbeG0LaG (ORCPT ); Fri, 27 Jul 2018 07:30:06 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id 74F5A182CF68A; Fri, 27 Jul 2018 10:08:54 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1381:1431:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4321:5007:6120:7576:7903:9010:10004:10400:10848:10967:11232:11658:11914:12048:12740:12760:12895:13069:13095:13255:13311:13357:13439:13972:14096:14097:14181:14659:14721:21080:21212:21433:21451:21627:30054:30070:30083:30090:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.14.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:26,LUA_SUMMARY:none X-HE-Tag: girls49_136cba3270455 X-Filterd-Recvd-Size: 2027 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf08.hostedemail.com (Postfix) with ESMTPA; Fri, 27 Jul 2018 10:08:53 +0000 (UTC) Message-ID: <0a6d2ecfacf3786228de664c8e01f6de10314c1b.camel@perches.com> Subject: Re: [RFC PATCH] checkpatch: check for function calls with struct or union on stack From: Joe Perches To: David Laight , 'Andrew Morton' , Andy Whitcroft , LKML Date: Fri, 27 Jul 2018 03:08:52 -0700 In-Reply-To: <9d7441a14897426f8ed5befe8da0cad3@AcuMS.aculab.com> References: <1236369d28b2f1f5389ff652c4eb89e699e6481e.camel@perches.com> <20180726122533.104f6eea950853ef50ebc680@linux-foundation.org> <20180726122807.fad0566951e36d930edb6874@linux-foundation.org> <9d7441a14897426f8ed5befe8da0cad3@AcuMS.aculab.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 Fri, 2018-07-27 at 10:04 +0000, David Laight wrote: > From: Andrew Morton > > Sent: 26 July 2018 20:28 > > On Thu, 26 Jul 2018 12:25:33 -0700 Andrew Morton wrote: > > > > > I'll give it a spin, see how noisy it is. > > > > Actually, I would prefer if the message, changelog and title > > used the term "passed by value". It's a more familiar term > > and it is possible for a passed-by-value aggregate to in fact > > be passed in registers. > > You need to detect (and ignore) 'small' structures. checkpatch is stupid and basically can't do that as it has no context other than the current line. It would need a list of specific struct types to ignore. Care to create and send that list to me? From an earlier message: On Thu, 2018-07-26 at 13:05 -0700, Joe Perches wrote: > It doesn't seem noisy at all, but maybe there are a few > known structs like "struct timespec64" that could be > excluded.