Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp199455imm; Tue, 25 Sep 2018 19:29:41 -0700 (PDT) X-Google-Smtp-Source: ACcGV63d/KXNy8PZz+oqajk4dhO4wBFETbJPYS+UxZJbPIK0fJfmw2SJVK7B15EFCwJHUvu70x33 X-Received: by 2002:a63:ef10:: with SMTP id u16-v6mr3522870pgh.269.1537928981121; Tue, 25 Sep 2018 19:29:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537928981; cv=none; d=google.com; s=arc-20160816; b=RJW4ExUksCdbF1wwLCE5xHHlEckEMgFkVdyQK5BsxDRLGlutuQalV5wqaUajMQ+Tyz Z38RqMb3HCScxjayvFFl4M16bVwpn8Qek3b7ZN/lXz7mCbVtStVOInk8M/v/ykC9jHqE RZKs/7lKmRGxuEXExplVHkXEDUNS8epWutkz5hX7q0bpQOGSCp/L9ezfQ0LLq2G5KRZQ /I2jvS1Z5aMhyh2n4g8zZ0XhU/E0I9CmKW7GaS1V7W337Q3l/MO3dpVVzXveutPHVa/6 gvv2DFsajzHgZt/LOPKqOpo/XQ5RvMOi8Rm4DP6dotf+oQU0t2mpGHXl9BSrDloa/N4W UC6Q== 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=Y25Ak5nW33Pbfe5dX3uQIcd8SvbQxQoYLFyV/dfgH2Y=; b=HF+qTDeQVZDe97cySGAxOr05Bof47RDpYzf1e+a9y08Vg3SR0BnsF7DNv3Q5sIwLj9 RluvBhT+SAZQFsNA2LK+0rwHia54JbtvAdAVz2y7yvfAqZzAOALHLmKq1neQcjqxUouS VLHkDy7RXZBGQ0NWxatxuzxZgbLAE9auVriClYdkHP0t8QmWBpCEaotf4Nz+rz80XxTr 4tyJSKUssCFdHOYuhfVeOON69m7H/DxFhNIU73a/IyLOecLf9mMcQRV1/ej8GowRhlR3 KORIIRyWx09L3JiED/pHQdfsowS5vvj+GVaIu4qzttlvf9SfAG0OS8Ch/Bk0GPDvBVKD GG1A== 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 m10-v6si3714918pfe.133.2018.09.25.19.29.25; Tue, 25 Sep 2018 19:29:41 -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 S1727197AbeIZIjx (ORCPT + 99 others); Wed, 26 Sep 2018 04:39:53 -0400 Received: from mx2.suse.de ([195.135.220.15]:34496 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726321AbeIZIjx (ORCPT ); Wed, 26 Sep 2018 04:39:53 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 0DF6FB049; Wed, 26 Sep 2018 02:29:16 +0000 (UTC) From: NeilBrown To: Joe Perches , Greg Kroah-Hartman Date: Wed, 26 Sep 2018 12:29:06 +1000 Cc: Nishad Kamdar , 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 In-Reply-To: <2f93ac5324ef3a229f2b8e855222a5fdd7b32f90.camel@perches.com> References: <20180923093805.GA20870@nishad> <20180925184947.GC16455@kroah.com> <2f93ac5324ef3a229f2b8e855222a5fdd7b32f90.camel@perches.com> Message-ID: <87bm8lhtzh.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 Tue, Sep 25 2018, Joe Perches wrote: > On Tue, 2018-09-25 at 20:49 +0200, Greg Kroah-Hartman wrote: >> 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. >> > >=20 >> > > Signed-off-by: Nishad Kamdar >> > > --- >> > > Changes in v2: >> > > - Convert msdc_gate_clk() and msdc_ungate_clk() to inline function= s. >> > > - Delete msdc_irq_restore(), msdc_vcore_on(), msdc_vcore_off(), >> > > msdc_vdd_on() and msdc_vdd_off() and replace their usages direct= ly >> > > with calls to the function being called by these macros. >> >=20 >> > Nishad, do please look again for uses of these functions >> > you are changing. >> >=20 >> > 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. >> >=20 >> > And Greg, if you look at this, look at the odd license of >> > these files. >> >=20 >> > It's possible the license is incompatible with the GPL. >>=20 >> It is odd, but the GPL at the bottom of the file kind of implies it is >> ok. > > Implications are not licenses. > >> Given that it was published by mtk, I am assuming all is good, but >> it would be a good idea to check with the authors to fix this up >> properly. > > The initial patch was submitted by > John Crispin Actually it was submitted by me. I extracted it from libreCMC (I think - it is in most of the various openWRT-like distros). In libreCMC the patch has John listed as the Author, and I thought it right to preserve that. I believe the code comes from a code-dump made by Mediatek several years ago. It can be found at git://github.com/mqmaker/linux.git. The code there contains (in drivers/mmc/host/mtk-mmc/sd.c) both the copyright statement and the MODULE_LICENSE("GPL"); declaration. I took this declaration as sufficient evidence that Mediatek intentionally released it under the GPL. The fact that the whole code dump contains the GPL COPYING file is extra evidence. NeilBrown > > I do not know John's relationship to mediatek. > > commit 8b634a9c7620b15691322cd53071122d2ab249a7 > Author: John Crispin > Date: Thu Mar 15 07:22:35 2018 +1100 > > John? Any idea of the providence of these files? > > I do not see anything like it in > https://git.openwrt.org/?p=3Dopenwrt/openwrt.git;a=3Dtree;f=3Dtarget/linu= x/mediatek;h=3Dad50ab7e407372a482aafb4183c4e49e25f93739;hb=3Drefs/tags/v18.= 06.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAluq7vIACgkQOeye3VZi gblzaBAAkkcqsKncGkHdRphw33C4GUwFvqBrsRQ6WbhmtzYVKS3KCXMlDZYHKulD GI2IsoFdBVj8GNCKBBneR9cxy6zDTAXMyW5FfUihjty55cDSi8ABbRbEfbfxhkwx 05VgU17whypKyS8BBcR0yu7lSjmBQ6EI+FwOmqo73m+LyNsXT9PDAXeXJsAfAMff 1Nt/+AgqtVPMAv1NVbWR9ZpJnm/9Yrp3dA/FP8ofIdIAuOBT8St3dAu9PFxijTNr 8ToCIYoqgwVxhoqYd0MIUfNovlJrkElL4XCImHxxul870oWXp21SpflpoR+i1903 dfACkV5R6jhRGDeiWtJa9EQms71qTtpMgeyp7bgg5z6V4ziVGYRetHtQYGGf2fWo pITrJNDr3S/kCoS2A8oG79Tatn/qvGEaOBnek5HS3Fi1y1OCWA8FGTXZV/iliopP 6dN7pDJlPO1hd5Df1ifq5A+d6l+bC1qDQX8I5U1EoaDnt4Ip5xUblFUAhs+496Dc r6lVp87G9QQRik4phSyKGJetJo1wbeh7qIK7Cky87w6DEfav5kG437aCQYbvpVpP 4A9Yfj1ktxTp1VblIqlDZ/ujiokr07AgasKRW4/vNXj0MQ474d8XP26J1IgN+ayz Z4C+QLvDm3rJaSlhxDGrznZQYgrl4e0GhpkC/OhQxRLSUh6Moqg= =9+h4 -----END PGP SIGNATURE----- --=-=-=--