Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1927593pxb; Wed, 10 Feb 2021 22:49:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjbuLWUQUUFKpVmEG+NcLfRbc4wVcr3OzcGeD9/hJBNsY/qxqdX6MiM4wWTGxNT41xXQ/0 X-Received: by 2002:a17:906:c00c:: with SMTP id e12mr6705341ejz.103.1613026145030; Wed, 10 Feb 2021 22:49:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613026145; cv=none; d=google.com; s=arc-20160816; b=hFCK3HL284ViZxZLvj+Qstc7/VGElo0qrq52Qpw0Fu3EGqNE4Y2xEGmno7fRjWmtik 7CX7MR8aA8rF6ONj4Xq/B2OiLfvLPbA//cSB+/CSpJYntsyhzA5dyPo8jYa2tqD/HW80 RET4GaXXyz+H2Dv6s/Ck+CYOnuJw2JbGMB8nb7tM0Bc239H8mR8wpGimi3VQkvRXvkCb tt/FkLvOZQmrgFLNWt4CTpm/H8juK5BF7WvPaupTkdXrIB8S7XYr355QJE5se2Rkti3T wNQkM8IwgYOjB1DNtbspHmOHnPdfjZzYcHQlm/QBcvcAmtd1EGmStriFaS9GG15hE1N9 ecAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=govSuCTortgmL6+dgSHuFNIHky92fzXbggKDr7T15BA=; b=dI/1FMpYXG7ti508Pf8Dl0e8Dsrvtoyk4KI4EkhtvKwDJNcnOs/xmOy0LjmfbnzlyK Q9rIT2pY3nD2eLxLw/LnOJFiiwOyQuNt/rPCZSQttyfa6M29SWFanN/QxeISjcsc60u2 oIOf/9PYMN4VuTIlU5dlU/EKNp6aVIFCNvBIAhXkP/IaWio27H6ClDNqAZTRf01pQByz sIfTIUmf4JKSAw/pPfTDeNnqgxadO2pmcTnABm369ZuDwb9dVWN9kAQtRX5GiEf7u+j6 ky727jafR1swCmDG9c7d14w+juSYLD95yaINW8Fun6rZemO4S8Sh2hA+hekc2j/euBec Pcsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vaS2GN1t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z19si3709136edr.191.2021.02.10.22.48.25; Wed, 10 Feb 2021 22:49:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vaS2GN1t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229660AbhBKGow (ORCPT + 99 others); Thu, 11 Feb 2021 01:44:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:52426 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229617AbhBKGot (ORCPT ); Thu, 11 Feb 2021 01:44:49 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 95E5E64E77; Thu, 11 Feb 2021 06:44:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1613025847; bh=+aC60CMTIyLamvwRIfLNfWxSDTTZxrrFshy2ogMSmew=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vaS2GN1tS2Y60ZpzOPtSzUqTildYFHfEpvsBT5S6Zhu7HTN5KriEIoPPSJpTHMj1E JRTGo4fzNloenaArQ4ucvVE3PhMD7zXXjKruDsMYbomKt4c9JP+eHOMCXZD8LJOnZr wWw9SCZeitskdsAbGWzqaXKS5VuOX8hmiUZkyi5U= Date: Thu, 11 Feb 2021 07:44:04 +0100 From: Greg KH To: Fatih YILDIRIM Cc: pure.logic@nexus-software.ie, johan@kernel.org, elder@kernel.org, greybus-dev@lists.linaro.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] Macros with multiple statements should be enclosed in a do - while loop. Message-ID: References: <20210210221439.3489-1-yildirim.fatih@gmail.com> <20210210221439.3489-2-yildirim.fatih@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210210221439.3489-2-yildirim.fatih@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 11, 2021 at 01:14:39AM +0300, Fatih YILDIRIM wrote: > Signed-off-by: Fatih YILDIRIM > --- > drivers/staging/greybus/loopback.c | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c > index 2471448ba42a..c88ef3e894fa 100644 > --- a/drivers/staging/greybus/loopback.c > +++ b/drivers/staging/greybus/loopback.c > @@ -162,10 +162,12 @@ static ssize_t name##_avg_show(struct device *dev, \ > } \ > static DEVICE_ATTR_RO(name##_avg) > > -#define gb_loopback_stats_attrs(field) \ > - gb_loopback_ro_stats_attr(field, min, u); \ > - gb_loopback_ro_stats_attr(field, max, u); \ > - gb_loopback_ro_avg_attr(field) > +#define gb_loopback_stats_attrs(field) \ > + do { \ > + gb_loopback_ro_stats_attr(field, min, u); \ > + gb_loopback_ro_stats_attr(field, max, u); \ > + gb_loopback_ro_avg_attr(field); \ > + } while (0) > > #define gb_loopback_attr(field, type) \ > static ssize_t field##_show(struct device *dev, \ > -- > 2.20.1 > Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - Your patch breaks the build. - You did not specify a description of why the patch is needed, or possibly, any description at all, in the email body. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what is needed in order to properly describe the change. - You did not write a descriptive Subject: for the patch, allowing Greg, and everyone else, to know what this patch is all about. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what a proper Subject: line should look like. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot