Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8525313rwr; Thu, 11 May 2023 02:28:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7y7PUzgiFfAWN4pTOsjn+lBo2WoqScaDPEJHWIhddjS6yEpQ/XBDgO/oK9GKkJPcVDx0Sf X-Received: by 2002:a17:902:a604:b0:1ac:b363:83b3 with SMTP id u4-20020a170902a60400b001acb36383b3mr5312149plq.41.1683797338628; Thu, 11 May 2023 02:28:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683797338; cv=none; d=google.com; s=arc-20160816; b=V5ndshkkRZEFJM5m1IXjA+PeJlIrtK5GAdOswUuB8Vr9r7f/4+DS6BfYzzDwB4LGkw kDv7U2IenYYPeFSTJUbFVcTyd146nsPtYkPnAHdsg2RuDas8zQVgRTiMj4UYCK/ZQjYI GL19VPTZEkjeLkUR7phmkoC8fewsWzbb/Qtg2xvPavo+djRWl3JUDX7IBY9lEfejXdry NhmOvI0JmUK6qXbLl7ZwqPxmyKISJFHZQbNkCS/5VE//ka3KvJsI/J9yU3qubm2AFF/4 /UlU9rCXurxybEgF15UCHYGYJc36oZKdupO/i6L0KiXC+TILHUIdEegzrCicD6aOvZn2 6c5A== 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=Ubb1kM5PCqqQz7T7cy/sxgZn0OIp9nrRT35kaj6wYwo=; b=BeXZuJVsNsnX+OGj99RhCMN9t5Xih1qljSVPpUJt5cIq81mQ4sK20MRS7PkigPXapE k3k1VUof0L4iv+O1vKUwqGrpkSsUd8YgofsjMUJTB1OD4Iu9hy0hSescrpiwk7aC3bTE c8Bsx6gvgnnVhtI4ga5GKwnex/THW/kXLNZ36h0hsx2aTPI0DKbqYWnMUio2D1dttA11 PfsqI8/ZYNSfx2f1I0YLvewckuqqs5jedsepaf4TfNvlVDb432zy7w0o+lOurR8PimQn VneKriIC00fgh+peOcvyYoHuyiiE4cJPj9TDvi5sLZBmTyeyDIfMnNBnmOswXTwvMo7G t4LA== 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 q17-20020a17090311d100b001aadba392c1si6568121plh.464.2023.05.11.02.28.17; Thu, 11 May 2023 02:28:58 -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 S237664AbjEKJYt (ORCPT + 99 others); Thu, 11 May 2023 05:24:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237507AbjEKJY0 (ORCPT ); Thu, 11 May 2023 05:24:26 -0400 Received: from 189.cn (ptr.189.cn [183.61.185.104]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4777093FF; Thu, 11 May 2023 02:24:18 -0700 (PDT) HMM_SOURCE_IP: 10.64.8.43:41672.1278492290 HMM_ATTACHE_NUM: 0000 HMM_SOURCE_TYPE: SMTP Received: from clientip-114.242.206.180 (unknown [10.64.8.43]) by 189.cn (HERMES) with SMTP id A55DC102960; Thu, 11 May 2023 17:24:14 +0800 (CST) Received: from ([114.242.206.180]) by gateway-151646-dep-85667d6c59-fm8l8 with ESMTP id 5b86e81d35b5461da10c14d4d6e27d84 for tzimmermann@suse.de; Thu, 11 May 2023 17:24:17 CST X-Transaction-ID: 5b86e81d35b5461da10c14d4d6e27d84 X-Real-From: 15330273260@189.cn X-Receive-IP: 114.242.206.180 X-MEDUSA-Status: 0 Sender: 15330273260@189.cn Message-ID: <70c03ea4-c863-d3f7-c057-421f31c57238@189.cn> Date: Thu, 11 May 2023 17:24:13 +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> <0e13efbf-9a48-6e70-fdf3-8290f28c6dc7@189.cn> Content-Language: en-US From: Sui Jingfeng <15330273260@189.cn> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FROM_LOCAL_DIGITS, FROM_LOCAL_HEX,NICE_REPLY_A,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 2023/5/11 15:55, Thomas Zimmermann wrote: > Hi > > Am 10.05.23 um 20:20 schrieb Sui Jingfeng: >> 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? > > I configured my text editor to remove trailing whitespaces > automatically. That keeps my own patches free of them.  But the editor > removes all trailing whitespaces, including those that have been there > before. If I encounter such a case, I split out the whitespace fix and > submit it separately. > > But the work I do within fbdev is mostly for improving DRM. For the > other issues in this file, I don't think that matroxfb should even be > around any longer. Fbdev has been deprecated for a long time. But a > small number of drivers are still in use and we still need its > framebuffer console. So someone should either put significant effort > into maintaining fbdev, or it should be phased out. But neither is > happening. > Ok, no problem, that sound fine and reasonable then. The lines being modified has trailing whitespaces. And I tested your patch again last night on loongarch and mips platform. It still works in my testing case. > Best regards > Thomas > >> >> >>       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); >>>   }; >