Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3340376rwi; Sun, 16 Oct 2022 09:09:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5RaRrRUWKM8gSsfFwM5054+cj/XXjC3pGJj/yg/OiAzhI4hoX+Q5j5o5xTMd4+eC++a0jw X-Received: by 2002:a17:902:f54d:b0:185:4ca4:2641 with SMTP id h13-20020a170902f54d00b001854ca42641mr5533387plf.50.1665936565722; Sun, 16 Oct 2022 09:09:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665936565; cv=none; d=google.com; s=arc-20160816; b=MmeltSfU2w3Fv1F6bZ88n4bWEDQ1ADcCHggcWurykb8GJeu6/izHGXYY6MI28Ap6vO 235W31ttrswGz5q/7aq1BDJ5oRYuj42kAQlsaKlpVPWF1tvenh1Tvd0p4Zu9oUs22hUN VTdTI0LPHD8Ehl2u4Bi2SX2MibQBZr090m8tvJDPcup9Me1eoxl9fGGGuCf1d3woeFo8 xvZzUtw1GWRM9nSyjUdJ0fve1NGAFGWqU9gXsfQAaIP+/CXD30OUKuGyS7x7j5rHD9cI 4EanLjzmSmX318KhDyMFk/+DLAL2mkqeZukZoYT9Y2BE0b6LYdQToX5WmyXhMJumb1RY exlQ== 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=l12ugbHC4L8Y1lSmKKRwHpdxZhXPSDji5wXQ/L00t6k=; b=KSH0+Wqfsy1T6tsRgYm9YsDt6ocV4hMybbcsbsA45PzlbUJEHv9zNtdOa1PclcPEEZ RjVkmHMXEQK3qYSwIY+8O+aKm3GRWDot8t7ZTtuFsoGdAwAz9aUbtiHDPVUT1eWeWBM8 oR0heEc+w7g/0kacqXeGD6hOFFR0j57dibmJqT8lbcVQJ9zFa14AgfO25/qjXzcHpDkI nQbOPRTVTB/L4MFWrL3M1eT65ivLt2SR82B3MKiobjP20eyOsSXCl1PFvgArAJd42+lE /VqZVUpIcGs/9SBSEFdawPQrHh+geYHyRVgMgTECQpFkwkK+6RESxL1Lr30q2UKYEh8B xUOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=ZvVQ99tS; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u4-20020a170902e5c400b001846e0e0511si11998901plf.226.2022.10.16.09.09.06; Sun, 16 Oct 2022 09:09: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=fail header.i=@mailo.com header.s=mailo header.b=ZvVQ99tS; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229663AbiJPPvL (ORCPT + 99 others); Sun, 16 Oct 2022 11:51:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbiJPPvK (ORCPT ); Sun, 16 Oct 2022 11:51:10 -0400 Received: from msg-1.mailo.com (msg-1.mailo.com [213.182.54.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3EA8CC4 for ; Sun, 16 Oct 2022 08:51:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1665935449; bh=AoozS+vSA6vbET7eAeKnaDEsTTnvel6kQb67esZyuBY=; h=X-EA-Auth:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=ZvVQ99tSiKfAp9sQVvmK9T9+QxFfjO0I1txUeDkmRUqnIEM20I7LyA5nykpqaQobJ KI7iL1C/JKjk0MK/lBYhkSyxTFJivFSjng1m/botWVc2RXHJQprxwFw8Q51pktl1b3 1aX1ZeZ/oxiimGwXjx5J9D3FJMS2w7e1rSog6aJw= Received: by b-6.in.mailobj.net [192.168.90.16] with ESMTP via [213.182.55.206] Sun, 16 Oct 2022 17:50:49 +0200 (CEST) X-EA-Auth: 71gdXik5VMeVCC3uHpYdR+rbfISKW7FskXk49SjjS2cyLGwOct+7TLRPYQPvabRUNd/Ytpj+QJDHDrAdTYj6pFxecK1omYyk Date: Sun, 16 Oct 2022 11:50:45 -0400 From: Deepak R Varma To: Greg KH Cc: Julia Lawall , outreachy@lists.linux.dev, pure.logic@nexus-software.ie, johan@kernel.org, elder@kernel.org, greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: greybus: loopback: enclose macro statements in do-while loop Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 Sun, Oct 16, 2022 at 05:40:59PM +0200, Greg KH wrote: > On Sun, Oct 16, 2022 at 11:27:30AM -0400, Deepak R Varma wrote: > > On Sun, Oct 16, 2022 at 05:10:17PM +0200, Julia Lawall wrote: > > > > > > > > > On Sun, 16 Oct 2022, Deepak R Varma wrote: > > > > > > > On Sun, Oct 16, 2022 at 04:51:09PM +0200, Julia Lawall wrote: > > > > > > > > > > > > > > > On Sun, 16 Oct 2022, Deepak R Varma wrote: > > > > > > > > > > > Include multiple statements of macro definition inside do-while{0} loop > > > > > > to avoid possible partial program execution. Issue reported by > > > > > > checkpatch script: > > > > > > > > > > > > ERROR: Macros with multiple statements should be enclosed in a do - while loop > > > > > > > > > > I don't think this change will compile. See if you can figure out why > > > > > not. > > > > > > > > It did compile. I built the greybus driver and loaded it as well with the > > > > modinfo tool. Can you please tell why you think it won't compile? > > > > > > Do you have a .o file for the .c file that you changed? > > > > I see many .o files and a greybus.ko as well, but not the loopback.o > > Am I missing anything with my configuration? I did set Greybus Support to (M) in > > the menuconfig. > > CONFIG_GREYBUS_LOOPBACK has to be enabled in order to build the > drivers/staging/greybus/loopback.c file. > > A simple check would be to do: > make drivers/staging/greybus/loopback.o > > does that work with your change? No, it did not. I understand why it did not. My apologies for not looking into the build of loopback.o file when the greybus module was rebuilt. Please ignore my patch. Thank you Julia and Greg for the feedback. ./drv > > thanks, > > greg k-h >