Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3379152rwl; Sun, 2 Apr 2023 06:28:25 -0700 (PDT) X-Google-Smtp-Source: AKy350a43Kpc90JufVokZfyNuwxHWYvR3q+miLL2oWIb5xUpp9orPOOXVTbCZCR/JOuw8b7X4ukp X-Received: by 2002:a05:6402:5114:b0:4fb:223a:76e7 with SMTP id m20-20020a056402511400b004fb223a76e7mr14752272edd.18.1680442105152; Sun, 02 Apr 2023 06:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680442105; cv=none; d=google.com; s=arc-20160816; b=ttPOMPsB4Ba6N5w94jHTsBoiMCWwwGzrm5bNRfB2JSIwcQKvjoQmEzFYng6kYhImWS p1VZSGpnhcV7g8+gzlL1WoTyBI4yesrGOBrm7g+gdMGFPoLQApixT7LO1+6t0NsyTjoA kPnL63glUOMMxzC4Wr40DQ0UcFtdCyeDor/ppjMDYqN9ACvGsEmvQLXWMLKuzTEgFILj 6M+vUt3G1OQ11b1iPXRbXjHkgMSC4gV5Qo0jn0n54JWg4CWjyWlkeITqZc1VOnVoG1CC kd+2SI5qg39w9n4ToqW8gCHMBMbUIRsMVkHtvI/GNmqsO/rCBhVfLeO6rHkpdBjMqxOg rQ9A== 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=J2k1fBu9GIZES2rb+RqxESb6U3GNJIKTFzT4DEK3zjc=; b=CC41FWZQ0IRU61KtMJR+6l+Ey4EWoQHLejjh308UvwAXZsGN08JKDXxcWCnDE/XAmL 4rKs+2oWl2uOpBuJUPrSA0yJUMfCa9mhe8UgZOpsG1HR44HS82FTOiu4kYxKACNmXaVN M1WqUii6qUgPEV2PA5k6JjZLzt1ZPr45rGtAC7HzwqWYUiftBn3lcME2wKz5/Ks/K0j9 5RztjN6cVDbhdAwGN3GYj6SLW77g5jirfYZG6X9UgOI/2JD5+J4hy0ZZY0y3m2tzwh7j zNu7zoicAGtexXc8sBqfdkd1tUz9ptVM9AMFat7qb5DxoCrMUQxBoliZN9yFTzZ4RpYa YW7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mMXKWtNc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m22-20020a170906721600b008e6bdf85401si5900209ejk.869.2023.04.02.06.28.00; Sun, 02 Apr 2023 06:28:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mMXKWtNc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230293AbjDBNQS (ORCPT + 99 others); Sun, 2 Apr 2023 09:16:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbjDBNQR (ORCPT ); Sun, 2 Apr 2023 09:16:17 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34FC15FFA for ; Sun, 2 Apr 2023 06:16:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E1ED6B80E81 for ; Sun, 2 Apr 2023 13:16:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33A22C433EF; Sun, 2 Apr 2023 13:16:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1680441372; bh=jnibmCt45iklluBfswBTDC0ZgT3EPyw8KU5oBm/VtLw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mMXKWtNc6QdQRCKXFeoPGwjiJrBCOu6nqTs8R4fcViysabfnSUE/AKZqbP+7Y3QDv QDs88m36vbnL4IrxzQ0XqU91nXvyQ3+SAA7djzL6DpXyFIXo+R92wslErBbfAHIm9x 1XiC04Sa8yx4cdzXWPeyPuGV4tpVfK7xI4waEDis= Date: Sun, 2 Apr 2023 15:16:09 +0200 From: Greg Kroah-Hartman To: Angel Alberto Carretero Cc: Bryan O'Donoghue , Johan Hovold , Alex Elder , greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: greybus: loopback: fix up checkpath macro do while error. Message-ID: <2023040252-racoon-daintily-3589@gregkh> References: <20230402122550.70682-1-angelalbertoc.r@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230402122550.70682-1-angelalbertoc.r@gmail.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 02, 2023 at 02:25:51PM +0200, Angel Alberto Carretero wrote: > Wrap macro in a do-while statement. > > Signed-off-by: Angel Alberto Carretero > --- > drivers/staging/greybus/loopback.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c > index d7b39f3bb652..371809770ed0 100644 > --- a/drivers/staging/greybus/loopback.c > +++ b/drivers/staging/greybus/loopback.c > @@ -162,9 +162,11 @@ 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) > + 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.40.0 > > Any specific reason why you did not test build your change before submitting it? thanks, greg k-h