Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7730090rwr; Wed, 10 May 2023 11:46:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4TDuTa65kQp4okv5Xc5kYRMCj1Ex9M/OfRZCNuF8PA0Vo/vJuc2n0flNFT7ln2YLSqWw5R X-Received: by 2002:a17:903:2308:b0:1ad:bb42:7672 with SMTP id d8-20020a170903230800b001adbb427672mr1400642plh.29.1683744396218; Wed, 10 May 2023 11:46:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683744396; cv=none; d=google.com; s=arc-20160816; b=X8wwG9xE+u5oLMVzSNI5DBx1mmul0rHSA0JZXzqVIp9J1jjDCwmwDk0DBZPlaRdp4Z bq8/zqS277cVc23QX/o4I8HP2xUlObaAQfg4/1XLOplJZKe+/oOt5kZVW80AjmKi10xO RHJbweWBtSw9Q3fj6QyHQ427p6KVYfr11Xye/iArkXgv/N4sT5TIFUyYzchK2rMFPglX r43rhlx66BskCnwkC/x5FsLUyOWtFLC1IMBRZuCGblhs8vNvyd+KdlTqL468EHDGQP7f HTYBDJVGurkIJTHL+7RCbyHtANYVG+N3l86/chwmZLHVTLLgHE7xVFDKbWgZVKh+Z+6N 5suQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:hmm_source_type:hmm_attache_num :hmm_source_ip; bh=D+InAsfHYVm8Z+UqhGk9f4TvXmuf07lZwAPlON42bOI=; b=EmecMFRun4PvP2C+S+zNT+sTVLt7q4iWTR3b6Nhi1NNK70x/g9FrBT7eHnwVvP0UF+ q4h5lDogiK/9CkRQxVWWSeQwDl9xs841EEto+ZPhix8PW0U+7qDxbHD6Bvr8l1g4CoZ6 txjxEyGDRTb1BEEV7tqQ2zhXUsAueM/c3wDMl8KXgE8O41mYeEvHGag25IvtTZjlJonM KLxskT6/MobSRgFCX0XuUFON+5aSKevETs/A3FyEBMukegPCZAlA7iNoNP6wZL7ruC01 Y1PWpA6FVOXg6IEXuGwujtCa/vM5beiRwzL957LRA1T87fmIBQwW228+PNZ9caBz1Blj dwwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jb3-20020a170903258300b001a6934680cesi4497328plb.199.2023.05.10.11.46.23; Wed, 10 May 2023 11:46:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235995AbjEJSWo (ORCPT + 99 others); Wed, 10 May 2023 14:22:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236062AbjEJSWj (ORCPT ); Wed, 10 May 2023 14:22:39 -0400 Received: from 189.cn (ptr.189.cn [183.61.185.102]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 35412868D; Wed, 10 May 2023 11:22:10 -0700 (PDT) HMM_SOURCE_IP: 10.64.8.31:41422.1440474362 HMM_ATTACHE_NUM: 0000 HMM_SOURCE_TYPE: SMTP Received: from clientip-114.242.206.180 (unknown [10.64.8.31]) by 189.cn (HERMES) with SMTP id 60D1C1001EA; Thu, 11 May 2023 02:20:32 +0800 (CST) Received: from ([114.242.206.180]) by gateway-151646-dep-85667d6c59-lhcrq with ESMTP id 2e0243989df1455fa5a7afdcf2c485d3 for tzimmermann@suse.de; Thu, 11 May 2023 02:20:34 CST X-Transaction-ID: 2e0243989df1455fa5a7afdcf2c485d3 X-Real-From: 15330273260@189.cn X-Receive-IP: 114.242.206.180 X-MEDUSA-Status: 0 Sender: 15330273260@189.cn Message-ID: <0e13efbf-9a48-6e70-fdf3-8290f28c6dc7@189.cn> Date: Thu, 11 May 2023 02:20:31 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v6 1/6] fbdev/matrox: Remove trailing whitespaces To: Thomas Zimmermann , deller@gmx.de, geert@linux-m68k.org, javierm@redhat.com, daniel@ffwll.ch, vgupta@kernel.org, chenhuacai@kernel.org, kernel@xen0n.name, davem@davemloft.net, James.Bottomley@HansenPartnership.com, arnd@arndb.de, sam@ravnborg.org Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arch@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, sparclinux@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-parisc@vger.kernel.org References: <20230510110557.14343-1-tzimmermann@suse.de> <20230510110557.14343-2-tzimmermann@suse.de> Content-Language: en-US From: Sui Jingfeng <15330273260@189.cn> In-Reply-To: <20230510110557.14343-2-tzimmermann@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FROM_LOCAL_DIGITS, FROM_LOCAL_HEX,NICE_REPLY_A,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Thomas I love your patch, yet something to improve: On 2023/5/10 19:05, Thomas Zimmermann wrote: > Fix coding style. No functional changes. > > Signed-off-by: Thomas Zimmermann > Reviewed-by: Arnd Bergmann > Reviewed-by: Sam Ravnborg > Reviewed-by: Sui Jingfeng > Tested-by: Sui Jingfeng > --- > drivers/video/fbdev/matrox/matroxfb_accel.c | 6 +++--- > drivers/video/fbdev/matrox/matroxfb_base.h | 4 ++-- > 2 files changed, 5 insertions(+), 5 deletions(-) > > diff --git a/drivers/video/fbdev/matrox/matroxfb_accel.c b/drivers/video/fbdev/matrox/matroxfb_accel.c > index 9cb0685feddd..ce51227798a1 100644 > --- a/drivers/video/fbdev/matrox/matroxfb_accel.c > +++ b/drivers/video/fbdev/matrox/matroxfb_accel.c > @@ -88,7 +88,7 @@ > > static inline void matrox_cfb4_pal(u_int32_t* pal) { > unsigned int i; > - > + > for (i = 0; i < 16; i++) { > pal[i] = i * 0x11111111U; > } > @@ -96,7 +96,7 @@ static inline void matrox_cfb4_pal(u_int32_t* pal) { > > static inline void matrox_cfb8_pal(u_int32_t* pal) { > unsigned int i; > - > + > for (i = 0; i < 16; i++) { > pal[i] = i * 0x01010101U; > } > @@ -482,7 +482,7 @@ static void matroxfb_1bpp_imageblit(struct matrox_fb_info *minfo, u_int32_t fgx, > /* Tell... well, why bother... */ > while (height--) { > size_t i; > - > + > for (i = 0; i < step; i += 4) { > /* Hope that there are at least three readable bytes beyond the end of bitmap */ > fb_writel(get_unaligned((u_int32_t*)(chardata + i)),mmio.vaddr); > diff --git a/drivers/video/fbdev/matrox/matroxfb_base.h b/drivers/video/fbdev/matrox/matroxfb_base.h > index 958be6805f87..c93c69bbcd57 100644 > --- a/drivers/video/fbdev/matrox/matroxfb_base.h > +++ b/drivers/video/fbdev/matrox/matroxfb_base.h > @@ -301,9 +301,9 @@ struct matrox_altout { > int (*verifymode)(void* altout_dev, u_int32_t mode); > int (*getqueryctrl)(void* altout_dev, > struct v4l2_queryctrl* ctrl); Noticed that there are plenty of coding style problems in matroxfb_base.h, why you only fix a few of them?   Take this two line as an example, shouldn't they be fixed also as following? int (*verifymode)(void *altout_dev, u_int32_t mode); int (*getqueryctrl)(void *altout_dev, struct v4l2_queryctrl *ctrl); > - int (*getctrl)(void* altout_dev, > + int (*getctrl)(void *altout_dev, > struct v4l2_control* ctrl); > - int (*setctrl)(void* altout_dev, > + int (*setctrl)(void *altout_dev, > struct v4l2_control* ctrl); > }; >