Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4129198imm; Tue, 25 Sep 2018 11:51:15 -0700 (PDT) X-Google-Smtp-Source: ACcGV61Sbox1LG+TfwcnL0vIx70fN1uFDIvxhVPI6+pfPr8DqErkrYL+aJsTXOJeIF/fNiGUHSpS X-Received: by 2002:a63:cc4f:: with SMTP id q15-v6mr2196406pgi.217.1537901475204; Tue, 25 Sep 2018 11:51:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537901475; cv=none; d=google.com; s=arc-20160816; b=ixFecqnTr45My6eIoPawrYQxnrHkPraQoSPcSHnnVoLeVQWA+CLFG/tIHlw6cMxZ0k yrI7qhYQSXm/mALnRW9H1n/rgNn4mUD4SPkvrHNBox9+jix4fs+68RTuXc/ZEg2aic8T IdGrxwI2Iorq9yuK7zDLcbQLwG45aiTW+lj/rSQYXRGxcjC4MIoNlesLZZAlPMZIQm4e W0FBYY3L8jt3QsgsV4MOrtA2vYL7cwRB9gRCDzr/vS18A6qNmVZJwQKZCyKTzZNYn9ta KPo3/2rRPDmrYsoVxqqFj9YMnZEikurv8MjFlaE1t2bFsPml5FPf9jHcIXG7wC1sH30Y j/Jw== 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; bh=Ki7WckOnz1rsVjQiZXbpawboIs4bfr/I3tFrTEgqvfw=; b=JQ7GEweRE6M/kHx8uEJIjOfggBGnBUxiVpBhEA8cPEOznXFCqmBQ0OUEWc+kchGe+/ nx9px9OtbIk3EuQoGvxViPgrxvtb331VsNVYSVZMfxhMRbB/YHZYNPMmRZ0Ezk2QLReO Xl6J+xkn3Kj7RjhrmhED9Rtt36wk5l15NiQ18548KOdjTftoUsfo8cu4PNfNe0bV/9QJ Npg0zPDdVIiIvVQTWQTWJhsA8lMo8UoYLhyqTKrPpzVS+qlMCv9aKOjd6k3kde1AO1kg jPgOLhoEuPirj5ejsToPPK9Liqe3xnnpi11vtWqbPOsCzxSR2AEcg6jYTyKNJbRMT2FZ XzaQ== 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 y3-v6si2888297pgi.338.2018.09.25.11.50.59; Tue, 25 Sep 2018 11:51:15 -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 S1727786AbeIZA6o (ORCPT + 99 others); Tue, 25 Sep 2018 20:58:44 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:55762 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727294AbeIZA6o (ORCPT ); Tue, 25 Sep 2018 20:58:44 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 63C6A107C; Tue, 25 Sep 2018 18:49:50 +0000 (UTC) Date: Tue, 25 Sep 2018 20:49:47 +0200 From: Greg Kroah-Hartman To: Joe Perches Cc: Nishad Kamdar , NeilBrown , devel@driverdev.osuosl.org, Christian =?iso-8859-1?Q?L=FCtke-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: <20180925184947.GC16455@kroah.com> 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.10.1 (2018-07-13) 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. It is odd, but the GPL at the bottom of the file kind of implies it is ok. 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. thanks, greg k-h