Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp11233549imu; Thu, 6 Dec 2018 13:53:31 -0800 (PST) X-Google-Smtp-Source: AFSGD/WnJ6vt12dUyUgidXOL/V7UtyNAZJJ8FgfN79iZj0vsfmgOuiz2VmRNg0CBEIKmwn9MutaD X-Received: by 2002:a62:5504:: with SMTP id j4-v6mr30293957pfb.166.1544133211753; Thu, 06 Dec 2018 13:53:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544133211; cv=none; d=google.com; s=arc-20160816; b=pU00TdbxHJc87cUeDHrGq/ZRw6MH/OkEnxNo02nLYMOInMeATQFzkpuRzZH/q25jOp kr9Ii0V+BpZttl8nKEN7sm0dO0jt7C+u+3DXKpNfNVNvjs6tAoSyosWRHGZHE56T+fTR Ed6XPHD2oHrPfw+HU325dPNaDJ5zYVz86nPSWZ9eRfi1yXhvgxELOPUossB7J5HH8Fx0 EfxaPCmqxuu/NiRnnKiui5JTcK0QIhCtDLuMboAFfx84GKUJ37x/SBakeAeb00G6mnWl SpjDceTqOtqqP7SzdK8bYgSkzziGoPt/L/y1c4nIVsLbPKb7q383GQ2F4z1SlHhJCo7x 8KRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:references :in-reply-to:subject:cc:date:to:from; bh=FwEjvXZCYGhnqimVhvPR4EGDY6lCe+TyVnri0Rjkctg=; b=VmM5I9jIHA98GIwiTwXpFnS2ioXvy+XVjHXfw6UzT7qiF5xsT9hG+b29FlSEGEtvZA dxudO/2tApzhY8YplN5o1MbUwsdVKLN+DmEKYEOsZ5/DC64pN7ktp6tntlRgfFTm00E7 42ZhhDt3MLFyzoukJoyeavEHMG5wWFnKv6Tq/Ce8fvkd+oB9B/nuFUoQ5AL05B8CqMjn poljerfdHqp0l9YniMdjBSoWNLygrbPFQqTgiEdgaKOpnaG0EHc1VlanpXQowsfrOxGr QQxnGk+84WFFGLW60lEEbmLLRdVoMi/Q0DNIUdPsPUhOaj9SD+9y5yX/h4o6OU1IVVgE qC5A== 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 37si1214446plq.210.2018.12.06.13.53.15; Thu, 06 Dec 2018 13:53:31 -0800 (PST) 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 S1726003AbeLFVwL (ORCPT + 99 others); Thu, 6 Dec 2018 16:52:11 -0500 Received: from mx2.suse.de ([195.135.220.15]:44846 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725935AbeLFVwL (ORCPT ); Thu, 6 Dec 2018 16:52:11 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 22381B068; Thu, 6 Dec 2018 21:52:09 +0000 (UTC) From: NeilBrown To: Nishad Kamdar , Greg Kroah-Hartman , Joe Perches Date: Fri, 07 Dec 2018 08:51:58 +1100 Cc: devel@driverdev.osuosl.org, Christian =?utf-8?Q?L=C3=BCtke-Stetzkamp?= , linux-kernel@vger.kernel.org, Dan Carpenter Subject: Re: [PATCH v2] staging: mt7621-mmc: Fix incompletely removed #if 0 block in sd.c In-Reply-To: <20181206155659.GA15420@nishad> References: <20181206155659.GA15420@nishad> Message-ID: <87d0qee329.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, Dec 06 2018, Nishad Kamdar wrote: > Commit 2a54e3259e2a ("staging: mt7621-mmc: Remove #if 0 blocks in sd.c") > does not completely remove an #if 0 block in sd.c. This causes the functi= on > msdc_select_clksrc() which was eariler not compiled, to be compiled. > That causes an error - MSDC_CLKSRC_REG is not defined. > > This patch completely removes the #if 0 block > > Reported-by: NeilBrown > Fixes: 2a54e3259e2a ("staging: mt7621-mmc: Remove #if 0 blocks in sd.c") > Signed-off-by: Nishad Kamdar > --- Perfect, thanks. Reviewed-by: NeilBrown NeilBrown > Changes in v2: > - Modify commit message > - Include Fixes: and Reported-by: tags > --- > drivers/staging/mt7621-mmc/sd.c | 20 -------------------- > 1 file changed, 20 deletions(-) > > diff --git a/drivers/staging/mt7621-mmc/sd.c b/drivers/staging/mt7621-mmc= /sd.c > index 7b66f9b0a094..3d918e481bd8 100644 > --- a/drivers/staging/mt7621-mmc/sd.c > +++ b/drivers/staging/mt7621-mmc/sd.c > @@ -216,26 +216,6 @@ static void msdc_tasklet_card(struct work_struct *wo= rk) > spin_unlock(&host->lock); > } >=20=20 > -static void msdc_select_clksrc(struct msdc_host *host, unsigned char clk= src) > -{ > - u32 val; > - > - BUG_ON(clksrc > 3); > - > - val =3D readl(host->base + MSDC_CLKSRC_REG); > - if (readl(host->base + MSDC_ECO_VER) >=3D 4) { > - val &=3D ~(0x3 << clk_src_bit[host->id]); > - val |=3D clksrc << clk_src_bit[host->id]; > - } else { > - val &=3D ~0x3; val |=3D clksrc; > - } > - writel(val, host->base + MSDC_CLKSRC_REG); > - > - host->hclk =3D hclks[clksrc]; > - host->hw->clk_src =3D clksrc; > -} > -#endif /* end of --- */ > - > static void msdc_set_mclk(struct msdc_host *host, int ddr, unsigned int = hz) > { > //struct msdc_hw *hw =3D host->hw; > --=20 > 2.17.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAlwJmf8ACgkQOeye3VZi gbnE3w//aBUZMawbeSd0S94XmK0KiTxFv3Adi0FDK+nYX8su4lqlRcETPbMBdUUG NGz1BLc1hxI9nqD0BGtu5hGrDtA6yHawl2lWZU0c10nXlDCTciTzZnbrFSfx7bw4 tlFOHuBGLq+bkBXaywC+aQe3z7/2l50D6aaoYqkcI4mEMByJpx0t+7YVVkx5G4I9 3EqWEuKrzlkMSyiJR0x73LKeg3Xt/IoUReI0PzdSczxe01sIi7bpi2/qAeUcTrkj rhfs7gnudW/y6jKKyAHCEnbenyg7ee6C0LWflXU4nE+361W2CAto2K9g7cBZGFCP OJoI4Xhb08KWA3k8Tyb6IX0prYn0lsIcDorlYPBPLk808vroH4q38b6u3beOe9Nw J5FrsmSNimRz5bvQbBqlkiUuCVAmI+kIjBkCzXHV8poTXv8bEIIKOmbSKleITVBP cRrpQwxpfZwRxlU0/mCPhRl9uNd5bSP9Q0PkRPni49vb93fxDfRyrfi8V28IAU0Z xtkQSoyvk0MaMpOUghF5VtVoF5VMdZUY6LVDgrCOS/mHsfFjI53ozVvCOGVUpN1Z s4Y+Rtuy9f5fYaF0qLRpX4T3LWSjJxiQiohc3CqZ8NO6s95cxTXSeJzo0eVHoyky RQ4I5sJTH0p/OKqbd+DdxyXRJBQnO5lCxWwhpBBGehePxUQmY/M= =HVG9 -----END PGP SIGNATURE----- --=-=-=--