Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1079309pxb; Thu, 17 Feb 2022 23:36:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJxl9j1MWgzZwRWmkwRYw/xzMwPOJIoYoL8CSmg1Lm5d+MXQx1B1ghHNjFjjdl6rqLiT6ZDh X-Received: by 2002:a17:90a:7e8a:b0:1b9:e0fc:73ae with SMTP id j10-20020a17090a7e8a00b001b9e0fc73aemr11122117pjl.17.1645169779397; Thu, 17 Feb 2022 23:36:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645169779; cv=none; d=google.com; s=arc-20160816; b=Xf4W2/kaWHi7IyyQnRNtnAbwVPoq2QCGe+Xj/r+c3OaLLNnP4nlKKYZX01tg8RBLV5 dG9Y6YcKuH4ccDeJMJXSy1Trr+wCi7GMh6dgpLgUPKAYoWeEO+bzTqC0TxcbD4eil5IF xpELeN/yRHSuivQlvPKUP3zqZfsrQSQ84ZJaauxDqYWoNTkU+GHGa2F6ZuPk7v0Rwl3Q jP7wc8uPf02hdgRUjxaaZ0TvkpkfDysA+gs3B6HThYG+5xlq1lrtjzgu49X89xrR5egE yWFpQjT1Islal+wzZHTEFtQPl6HJ8xPzZZBaoSTQ3c5FLSYRUTEeiJp1FCxbB1s/W/EG f3nA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ghF6iNlDCgKWoCmphN2OgdnpjhWjwUlEksxTaBlQOD4=; b=VeRwrT1Y6YNgfu8E7CCGXGqw7HyFeOqT1GCDjGIBWYjOCH+73wboz3rrPvhi0pprCQ 7nOxlFA8QKbqWAfOG77NhdhgdWNtC5bnhhXhx5u9E5s/rCC1bzqajrYXKfI8fLdunV4M lNj5ax/MXyAY2ywWLSC2zocyXXBrlxNALU847lhvG6zwiEqtn0weKuVRQOd9Z7TnV5yZ UckSTfAauOEvr7nxyAE00Gr0HSv72a6Wao0ssPaR5skGeTvImKz34tYZaTFYqrsIcXWC t+FH0HuAPSvMxmuhE3c9lgRL9bH2ucDard+BrjujxH6MbA8qXt5LAraPd6PUkx9l+o6w gcrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=u+Jysrmp; 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 m22si2801033pjr.168.2022.02.17.23.36.04; Thu, 17 Feb 2022 23:36:19 -0800 (PST) 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=u+Jysrmp; 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 S231854AbiBRHLJ (ORCPT + 99 others); Fri, 18 Feb 2022 02:11:09 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:52184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231825AbiBRHLG (ORCPT ); Fri, 18 Feb 2022 02:11:06 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1831425B2F9 for ; Thu, 17 Feb 2022 23:10:50 -0800 (PST) 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 BC6D7B82486 for ; Fri, 18 Feb 2022 07:10:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1C81C340E9; Fri, 18 Feb 2022 07:10:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645168247; bh=d+hIdbP4FcjzoABr76JeTKbmnhBBCfqZICtBBkTZUKQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=u+JysrmpF0/EDrB5xHfEaEQ6p9cdUqaBWI3XOenDKrL3YPKrprayM0DrAhAMyHm72 xhUPRFlZ0XpJ3ImhtOCNfALdfoGePbAZA7axG/E4Gk6OPilGgS6D60yTbsn++jGpZK m37+jsURk0HWwEul1S4mfx94va1vtToF+WAZmr9s= Date: Fri, 18 Feb 2022 08:10:40 +0100 From: Greg KH To: Ahamed Husni Cc: Bryan O'Donoghue , elder@kernel.org, greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: greybus: loopback: Fix Coding Style Error Message-ID: References: <20220217190722.44894-1-ahamedhusni73@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Fri, Feb 18, 2022 at 10:22:28AM +0530, Ahamed Husni wrote: > Hi Greg, > > On Fri, Feb 18, 2022 at 12:56 AM Greg KH wrote: > > Did you try to build this change? > > I am a newbie kernel dev and trying to understand how things work. > I did not build this change by the time I sent you this, thinking this > is just a style change. > I should have tested the build. I am sorry. You always have to build-test your changes, as you have found out. > Now I built the changes by setting the following configurations. > CONFIG_GREYBUS > CONFIG_STAGING > CONFIG_GREYBUS_LOOPBACK > > My change introduces the following error. > '''' > drivers/staging/greybus/loopback.c:166:2: error: expected identifier > or ‘(’ before ‘do’ > 166 | do { \ > | ^~ > '''' > I could not fix or find the reason for this error. Please guide me in > this regard. There is nothing wrong with the original code here. Remember that checkpatch is a perl script that gives good advice, but it is not always correct. You must always manually check it based on your knowledge of the C language. I recommend learning a bit more C before working on kernel code. Best of luck! greg k-h