Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1550072imm; Sun, 23 Sep 2018 06:32:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV60RIOJqy5PLvcQ0PY9amlc0Fy+rM17myCCZfwN+2Mmi3uus4voS8XlreVxQW1lHnjOnpTIA X-Received: by 2002:a17:902:2ac3:: with SMTP id j61-v6mr6674104plb.172.1537709545537; Sun, 23 Sep 2018 06:32:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537709545; cv=none; d=google.com; s=arc-20160816; b=V0iTWCqlq71PrjDVswxj/Qlmb7mTdq26QtGG4GKDHMRMtVQ6mfx4+ykzSGYgs1BMyP QVEQz6m40+3I+NbaEjB4PvoSNMWZ3SYYHYJupalFf0Z2fy97nOREClBX1ceK4KeoH8Jt N2vDnmkUEw6Ox4sKci08qibpYr6dASgNHh2Svdz17zBschVHBa7PO43lOL3pogzy9AJf 5YvrONUadPH4LGjlGMEItiYRSSyGxgYTd89kQQnX/OPEFoHO71JBaFlOyZ3Su0mx7fhp mN34ubhXxvZKT2jZLHsnK3fPRRBfnLcb/ymUthibiUAjthWtk8i+A9V0ORHOSozPoFze Di6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=kvEBYvvwQQADdenlq5scDbMdZnzmSx5LJBVkiAe5jcM=; b=kXOlOB0Eum21HBJuPrGPBEOFcdTcMHLAZ3mSKjyEXsfEXD8o16Bn1MH5364xFBdVAY 5B8zxXc6+MEjtWjxWSE/VnbImoz6oBbHPX0tvM08sCJ5H7DtKoLWf7VdcRUxYRMmxMW3 NxvXjYlu6XxkxRi0+iBGrtwbvMjjJlp+ZUcvOnaqH/P/Wb4C7fC8kM+JLr2yabMRCxkS jgqKMe/w6yE6yUnNzr2eFB65J2TIRUiSyQkqJyCzGFdNLXNvGZd18Yz6cNAUT+PRUZ38 fLlQ1BZc1BHJRoR6hJs1luySOwqGYF0p9gxy1ffkGS76j3u3MRcgFy5XhwdHVa9xLe38 LhQA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p5-v6si8104458pga.576.2018.09.23.06.31.40; Sun, 23 Sep 2018 06:32:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726189AbeIWT3F (ORCPT + 99 others); Sun, 23 Sep 2018 15:29:05 -0400 Received: from smtprelay0081.hostedemail.com ([216.40.44.81]:52236 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726079AbeIWT3F (ORCPT ); Sun, 23 Sep 2018 15:29:05 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 04BCD100E86C0; Sun, 23 Sep 2018 13:31:35 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4321:5007:6119:7514:7875:7903:10004:10400:10848:11026:11232:11658:11914:12740:12760:12895:13069:13161:13229:13311:13357:13439:14096:14097:14181:14659:14721:21080:21433:21451:21627:30054:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.14.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:31,LUA_SUMMARY:none X-HE-Tag: spark24_47d26681ec13d X-Filterd-Recvd-Size: 2047 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf06.hostedemail.com (Postfix) with ESMTPA; Sun, 23 Sep 2018 13:31:33 +0000 (UTC) Message-ID: Subject: Re: [PATCH v2] staging: mt7621-mmc: Fix single statement macros in sd.c From: Joe Perches To: Nishad Kamdar , Greg Kroah-Hartman Cc: NeilBrown , devel@driverdev.osuosl.org, Christian =?ISO-8859-1?Q?L=FCtke-Stetzkamp?= , linux-kernel@vger.kernel.org, John Crispin , Dan Carpenter Date: Sun, 23 Sep 2018 06:31:32 -0700 In-Reply-To: <20180923093805.GA20870@nishad> References: <20180923093805.GA20870@nishad> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2018-09-23 at 15:08 +0530, Nishad Kamdar wrote: > This patch fixes a few single statement macros in sd.c. > It converts two macros to inline functions. It removes > five other macros and replaces their usages with calls to > the function being called in the macro definition. > Issue found by checkpatch. > > Signed-off-by: Nishad Kamdar > --- > Changes in v2: > - Convert msdc_gate_clk() and msdc_ungate_clk() to inline functions. > - Delete msdc_irq_restore(), msdc_vcore_on(), msdc_vcore_off(), > msdc_vdd_on() and msdc_vdd_off() and replace their usages directly > with calls to the function being called by these macros. Nishad, do please look again for uses of these functions you are changing. Please try removing all the #if 0 blocks instead, and then see if there are also now unused functions from those removed blocks that could also be removed. And Greg, if you look at this, look at the odd license of these files. It's possible the license is incompatible with the GPL.