Received: by 2002:a4a:301c:0:0:0:0:0 with SMTP id q28-v6csp1182923oof; Tue, 25 Sep 2018 09:18:12 -0700 (PDT) X-Google-Smtp-Source: ACcGV60dm5Evir44CMVqiC4hHgGc3g24Y0pJyHb0VyPsxTzbfwlpyw+WyYMZYv+4QBZiV78wTisp X-Received: by 2002:a63:ea43:: with SMTP id l3-v6mr1720306pgk.427.1537892292637; Tue, 25 Sep 2018 09:18:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537892292; cv=none; d=google.com; s=arc-20160816; b=0vX+VyXykuYGrddmzhbm2Z5ST13ygTYREAcGoGIMW/RBDIgzqII0gSKJyQglSQl3K5 Jg4VcdpYhzvSSnWUqPKRYLh4p2KwsnL4zw/SAjPFdN9qlSejIGDxW8CWS4IypiChV3LB 8VRwr7fmds9tRaGYNFm1k7HgGELSRfPDvanR7IsRm0qd3r2+kjCZzg7DScGaKJAzoetQ H42pIrmB0+5Wq810Cnq+Jjki1MjT/3q2+HCSNJUWmh8WeN89V7tkHDERvyolDfrPvehs JFlik8AgINOeOCRn197migzImaGTtFaG3PFnze5S2xsOcopIkFn7XgGhLG+J7PDnQxvo EzaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Ac50KRWR4I/WgzK2QxQQiDUhLlXrxvUg/Jl7ee3s5T4=; b=UWoTC5KMPIGpEwycMEp8nVs2MrQOmfB8wsxu8TbfpeKbB2zuGcUmwv24Pnq6r9Nivj G3iFiSkGpCGZbUPuGYnjFWp7OWa/NQX1KY2Gh/1XixODqe6oWksWpxh+D2PalW8TVrEi zfgmBMqwfpjXG5kRSctia13l5mvVL6YWwsVmgqrrqNFlQNCNpoXfsdOZcY9Ih2oFXs1L CK2IKyqOhZp7g/vbg/iLRPqU4/X2oGhiiFc156l7nH1YUEX0LXUMUnckluWbHBF+/B8L 4AonniKvrdW/+8r/MUq176I2Ew8ftv821/Z7PAquSY5KghmF4qwSLOv2rAWN6cJNmZZN C5ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dpOVBuyt; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r25-v6si2821559pga.489.2018.09.25.09.17.57; Tue, 25 Sep 2018 09:18:12 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dpOVBuyt; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729674AbeIYWZt (ORCPT + 99 others); Tue, 25 Sep 2018 18:25:49 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:42299 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728587AbeIYWZs (ORCPT ); Tue, 25 Sep 2018 18:25:48 -0400 Received: by mail-pg1-f193.google.com with SMTP id y4-v6so11908502pgp.9 for ; Tue, 25 Sep 2018 09:17:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Ac50KRWR4I/WgzK2QxQQiDUhLlXrxvUg/Jl7ee3s5T4=; b=dpOVBuytB1mjufgFExAal1EU87NGFPg1ncJLbusLJNWuIjavVFQxtGUg558nIpYHQi J/4wozF9nT67RvCkjk3s8fPd/cn/KaHwXRGzqCZ2p1Tg00lnxCrjj5XLdxg4p/OOVlc7 vHqYdV5Qz4DlLEue98w/tyQHqrdhyGGlx56axK8Acq3cnNmkoOJBtegYaGXBzoSMUT2T T2ElQHEaAAPijTAODGUpSehO+fUmC/AUv4pNg5GngpqzqBbwkoYrRluJYeE0nt8qLR/Q lAYDkGcJzIM8Psx32eNIBRNvc94c265XZktyxofJUAFj5PzMU0bC9mtWBnrwLO/sSqHM Z4RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Ac50KRWR4I/WgzK2QxQQiDUhLlXrxvUg/Jl7ee3s5T4=; b=c1wefZ+OI4GbOGZSg6E70Lj2aTxCruBQzaIhIgIEbrqoEIIqJxUcngeW/TPG4wH0lR BXVo4WR8uHwUr7mNnbij5u/X0RmJSvyErr6O1hLkcPuypp5xIASoCDiZAghFC2ZxK4QX MCA5A1H5iT75kYlZnerJPiW+hl4KtbWomF2NrY2/kR9NBXsNyWRA3ulJkkc4RZ36wWyo zxKxt3gBuVdQ4MJo+4IPjpnTXjPPnHtW/mcA5d5FkkrbfM+r7dAy3eKHVmOoKRUKFZp1 5yhqqkufEvTalGU8dTK7jl+KaTmA4GqVjlgupQuAkbMRJ3lwgC/HoV3rh5nzuKwLVLzJ q9ag== X-Gm-Message-State: ABuFfojYpEkAUqxznyjoDUZup92Zx+nmG71yxiBC4iB3RRoMKjbvat9Y 4dLNiME6gApuTHz09CLCD6KjSiyhl3v83g== X-Received: by 2002:a63:f344:: with SMTP id t4-v6mr1783914pgj.428.1537892254219; Tue, 25 Sep 2018 09:17:34 -0700 (PDT) Received: from nishad ([106.51.27.228]) by smtp.gmail.com with ESMTPSA id o21-v6sm4559522pfa.54.2018.09.25.09.17.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Sep 2018 09:17:33 -0700 (PDT) Date: Tue, 25 Sep 2018 21:47:25 +0530 From: Nishad Kamdar To: Joe Perches , Greg Kroah-Hartman Cc: NeilBrown , devel@driverdev.osuosl.org, Christian =?utf-8?Q?L=C3=BCtke-Stetzkamp?= , linux-kernel@vger.kernel.org, John Crispin , Dan Carpenter Subject: Re: [PATCH v2] staging: mt7621-mmc: Fix single statement macros in sd.c Message-ID: <20180925161723.GA23387@nishad> References: <20180923093805.GA20870@nishad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 23, 2018 at 06:31:32AM -0700, Joe Perches wrote: > 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. > Ok, I'll look into that. thanks for the review. regards, nishad