Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1962139imm; Thu, 9 Aug 2018 05:10:59 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyxYaOJ/ggb+wRoG85Gaw+lvd7BRB1o4AN1E/ikDXUZndOq27j2gofqPGHC6bzvSJSTfJW6 X-Received: by 2002:a63:ad07:: with SMTP id g7-v6mr1908538pgf.19.1533816659039; Thu, 09 Aug 2018 05:10:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533816658; cv=none; d=google.com; s=arc-20160816; b=ILRBgbpndyu9ihqElkSYGO/TwfC5NVogZzPzohZVg7Rwl2smgKk5BQKn8U6ckVGXCc VhE1dDkSW87CYc9cFPfQhY/TSK9+bRiaM2rYy7/zfeBWcS8uDvp2qmmP2ixttQ5Ya1Qf y/NnK2kV+39uPgH2FSn+GlL4f33kbTreackQ2QxbNDCqUtsFHjJn5xIVOzP9udLG9tTQ GxtkpFOnrmRz+9aLX+tMItQu1plLR42amjQWb8A4HyL5yc4XFTSAvnoSmRrvcPsPEG0G e38ug+a63pnC65FI78AhGI2QDH7ojqWsU/hTPKyV+ggqJa1PZ87Ysa5+9lu/24KZDHLQ EmRg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=WoxB9dsIZbpfWzToZy5w/B82o1mn0OpH3Pf28cl3PNo=; b=h0Ch6XPvTy5sqYtrIl3ItGl8yo4XKXXcyRLqrt948BlV9RbOj3Fl2RpMiz8bv0LS2I U41hzuKIxwztehGNAQ4ANObBrnq45JfPJbMpZ1MhksyB5np5IiCvMVXWZemhWFhifd5C k0xw5dpNdSgzE6bMn4dyvxn9LYfxayyF3MciNyPLU6vQJXqykbkISwKNiAp0l7V2mkVZ +6g/1YafLdvpVtbD7JsU5FKCdP6JlpVTTCl0VgOtoDpRa3OImM5x2cep1SKcGp63zn3m cP9KUjXsF/4wCyoatNPe6G7iYx9WvSJWW0FmAH/XlNfg6UO8wdH7coWU12vcniNVMLUS VN/g== 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 c192-v6si6995391pfg.347.2018.08.09.05.10.44; Thu, 09 Aug 2018 05:10:58 -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 S1731034AbeHIOeW (ORCPT + 99 others); Thu, 9 Aug 2018 10:34:22 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:40558 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730419AbeHIOeW (ORCPT ); Thu, 9 Aug 2018 10:34:22 -0400 Received: from localhost (unknown [194.244.16.108]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 82EBA907; Thu, 9 Aug 2018 12:09:45 +0000 (UTC) Date: Thu, 9 Aug 2018 11:49:53 +0200 From: Greg Kroah-Hartman To: Leonardo Bras Cc: Thomas Petazzoni , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 10/15] staging: fbtft: Fixes some defines styles - Style Message-ID: <20180809094953.GA22141@kroah.com> References: <20180808122219.GC20272@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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 Thu, Aug 09, 2018 at 06:39:55AM -0300, Leonardo Bras wrote: > On Wed, Aug 08, 2018 at 02:22:19PM +0200, Greg Kroah-Hartman wrote: > > On Tue, Aug 07, 2018 at 09:29:25PM -0300, Leonardo Br?s wrote: > > > Fixing some styles as recommended by checkpatch.pl. > > > > > > Signed-off-by: Leonardo Br?s > > > --- > > > drivers/staging/fbtft/fbtft-bus.c | 10 ++++++---- > > > drivers/staging/fbtft/fbtft-core.c | 6 ++++-- > > > drivers/staging/fbtft/fbtft.h | 4 ++-- > > > 3 files changed, 12 insertions(+), 8 deletions(-) > > > > > > diff --git a/drivers/staging/fbtft/fbtft-bus.c > b/drivers/staging/fbtft/fbtft-bus.c > > > index 8ce1ff9b6c2a..20d94712cc84 100644 > > > --- a/drivers/staging/fbtft/fbtft-bus.c > > > +++ b/drivers/staging/fbtft/fbtft-bus.c > > > @@ -60,11 +60,13 @@ void func(struct fbtft_par *par, int len, ...) > \ > > > out: > \ > > > va_end(args); > \ > > > } > \ > > > -EXPORT_SYMBOL(func); > > > +EXPORT_SYMBOL(func) > > > > why did you change this line? > > checkpatch.pl recommended removing ";" from the end of a macro define, > and attaching it after the usage of the macro. > > Probably to make the macro usage more likely a function declaration. Ah, I was confused by your initial subject/changelog, you did not explain why you were doing what you were doing, and you lumped a bunch of different types of changes all in a single patch, which is not allowed. Please only do one patch per "type" of change, this should be a patch series. > > > > > > -define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, u8, ) > > > -define_fbtft_write_reg(fbtft_write_reg16_bus8, __be16, u16, > cpu_to_be16) > > > -define_fbtft_write_reg(fbtft_write_reg16_bus16, u16, u16, ) > > > +#define no_modf /*No modifier*/ > > > > Ick ick ick, no. > > Please help me understand. > There are 3 steps that may be bad here: > 1. Defining no_modf as a comment. Yes. > 2. Defining no_modf as "nothing" Yes. > 3. Using no_modf (defined as nothing) as a filler to avoid not > passing a "parameter" to the macro. Yes. > I understand it may be a combination of the above, but i need > to understand it better. Why do you want to do any of the above? What is wrong with the existing macro? thanks, greg k-h