Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp22922imm; Tue, 16 Oct 2018 17:05:49 -0700 (PDT) X-Google-Smtp-Source: ACcGV60lN2HTRHrDtSkDsZqIg/3zVX0bokz3PZHaWMhWfGWEdYi4RS/C3GsTwqjS52wfod+1W3gJ X-Received: by 2002:a63:1555:: with SMTP id 21-v6mr22030108pgv.383.1539734749161; Tue, 16 Oct 2018 17:05:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539734749; cv=none; d=google.com; s=arc-20160816; b=tANgib7UPN4NQJJQwfjKDU6rAR1VSBdyfAC/rR+ZkDN7RlFrxefxMKIqi6IbKSgXhI 5jaTTWt3zsSoRLDc2RR9BEDd2ctinN1NFJ2LyTFIhx4zgTUGThC4lMXrWk1yJOlOiRXg WwROgzLMD1vX62QA4fTlsLM8DiDqgM3AXtnt+J22VXV+u5HzKFa8wBCWISzyPpubYs6t q+LnjvqGi9yBiaQVl6d0pjZrk8BVbORonNDYJ8UN3tD33llcIRKgkFMESgGgkiHgy+1x EcW0WrUEsFR8p19IPKEm5qL2/sxkKUgs/8cmpHxabW33CK1jORFQ82puxIREByf2muCT JWFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=2sMUxT205HmbQShPvHfeDzKS3yTEbKJ1KBOkS/XXA1M=; b=l8X99zgwRn98/muHlP1c7qgfl5vspYgCaVCU2TeKg5SdaJ//bzK3h6tAbUY6Zq6rpE Z+1ozp44iZi9ISike5NqxxIbVkIA8pudCyrpDzFPhsrPANNANf4SlpfR8JXvj/RONCO+ YsiAR17FsggaQB3nuCfCOx/jlrplQxGtTqstOtiis5vT2HMpBGUcv4LxvTkblV7DulSe R+yrlAA4yCsk3UR2MxBZGHBENU3ZRv8eEiQ9O74QzxDpLq54IDdYbGrBLmwgyvhoYbg7 X4lp25Bpy54uyjQ5+s+a25OexNSsiyBH09U0O95oEgEPJDgLTjnvla+zvyWWJ9s8lAy5 KOUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=kEjpdEJH; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o5-v6si15703824pgk.300.2018.10.16.17.05.30; Tue, 16 Oct 2018 17:05:49 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=kEjpdEJH; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727366AbeJQH4G (ORCPT + 99 others); Wed, 17 Oct 2018 03:56:06 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:46249 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727217AbeJQH4F (ORCPT ); Wed, 17 Oct 2018 03:56:05 -0400 Received: by mail-ot1-f67.google.com with SMTP id o21so24369811otb.13 for ; Tue, 16 Oct 2018 17:03:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2sMUxT205HmbQShPvHfeDzKS3yTEbKJ1KBOkS/XXA1M=; b=kEjpdEJHAyFrG+5xsDLneRPU7YYEKmuX5qQBa1yEc6cIGWlMv4nob1Gy7xlTSfFxZD lSBk5BV//uX37TiWFuhEbFfhOBDgiKBs6U0/e/1tAGPIC/rdIJZyFMbdBuURajeCJXOZ tLT8pWHFCJR7A5+JX95ajEJkLtWUq74m+sT78PlJrBpGh4vO2r71UapDWCU7ZLKq9wYY jUtu5k90cK1YwslHa6NkFpLadoB2hyg5oyw9e89L5gsLBh3zf302qNiFjrG82w13G8+0 2XJFCUPv+8w2DJmH4fJPoQw/62krqBn568p052y4BcAIlXVRLJa3Rl0el+5mxe8UzvEY 9H2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2sMUxT205HmbQShPvHfeDzKS3yTEbKJ1KBOkS/XXA1M=; b=e8PnL8RaQCQP2IRuoaBdG1Q+NrNqoLnXN6TW2hJUcPKnorFc7VTW/MEiVP4t1tiBae /IBHWXNVMjDW030nJwhEu62yU5A+CMD8g90+a0EEE1qpxSPBjDY9BTGdvjd/EQunndi4 YXEySEoKMG062mA8QyH/N3KMt17KKwPq4FyIFkqGTAmvYc6hjPDPPIqKzJPbBNDJu3zE rn5CzPlib2FwSELn9T2IyB/D7oQj71b214iBouQMepCGfygdQSNkScsLK4AaFXRqW/H9 Vx3YTrD/Kf5Jl+qQ9BRG0VxhHhTJm2JVRIqPJrpgiN9b1T1TrhGMuAfSSjoScDGkR/a6 amsg== X-Gm-Message-State: ABuFfogq6bf6gM7hH25TfCBmEIVzBwEwkAoExQUmkQuPLxl5yPF6pYRk BvRxnsi8BhvVJSjp2euSIkNVglb49eIKFmo5GL0Xew== X-Received: by 2002:a9d:2117:: with SMTP id i23mr14536965otb.230.1539734593534; Tue, 16 Oct 2018 17:03:13 -0700 (PDT) MIME-Version: 1.0 References: <20181016235120.138227-1-brendanhiggins@google.com> <20181016235120.138227-13-brendanhiggins@google.com> In-Reply-To: From: Brendan Higgins Date: Tue, 16 Oct 2018 17:03:01 -0700 Message-ID: Subject: Re: [RFC v1 12/31] checkpatch: added support for struct MOCK(foo) syntax To: joe@perches.com Cc: Greg KH , Kees Cook , mcgrof@kernel.org, shuah@kernel.org, Joel Stanley , mpe@ellerman.id.au, brakmo@fb.com, rostedt@goodmis.org, Tim.Bird@sony.com, khilman@baylibre.com, julia.lawall@lip6.fr, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, Linux Kernel Mailing List , jdike@addtoit.com, richard@nod.at, linux-um@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 16, 2018 at 4:59 PM Joe Perches wrote: > > On Tue, 2018-10-16 at 16:51 -0700, Brendan Higgins wrote: > > This adds struct MOCK(foo) as a NonptrType so that it is recognized > > correctly in declarations. > > I think this commit message is lacking context. Oh sorry, you are right. We added macros for generating mocks from types, so we decided to name the generated mock types struct MOCK(foo) (where the base type is struct foo); this commit makes checkpatch not complain at this new syntax.