Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35389297rwd; Mon, 10 Jul 2023 06:52:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlGSTWu5uHqpjDFZCDTFALqZpjQnlvF74lQBPm8lvUu9ihqb5/HnKj0UC2t/QxJntwJFwyon X-Received: by 2002:a17:903:1250:b0:1b8:8979:8088 with SMTP id u16-20020a170903125000b001b889798088mr13143166plh.18.1688997137706; Mon, 10 Jul 2023 06:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688997137; cv=none; d=google.com; s=arc-20160816; b=TRyMxdibXNvrADyEqdAJJwB3c6pUzg9oZOMEhPcJxQDHCTtcDS3D5WKZd8zLyBcyC8 8qj8M0+d3lzxrEDmCtvebFUv6p/PR9ODGb1sM4+zn6DGEasNBMybRdRaUBoVGQOR+qAX RhRiQxAtQ5gdTU1p2rHQDSR6e67CTs4oJ7duFXC4qIE8Fosfa406LRCBlDh0e+mEhAjv nvNVclgaUVol8qVASvuT/QABmybiFEv8s4GeiqhHllRgtogv7NBp4Uo0Zp05aYQi+NP0 qFqAC2KGcjtN8Mu8qc7/7rEA75c41kGv66OXzjYI9+etNoRJsyYCObaZhWLNOl1B9N41 of3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=UQcK2XuXtO1eGLFGR8TqEMTeBwlG5suz3xlGQCEgUPM=; fh=LPCo7Pzseh1L9UlYRdmTor/c+E+Xh7CDPr3Kjbea9MU=; b=GfpwzRLprddO33lNmy12eQXnc3UR5ZP11TUuvU3rZuA9Y8wdXBQ7imlk0uIxrCJnAs 62yppKw0wSf9c0EClXmlGH0SC8wSGxa6iy3SE8fqSEslRMBW20HKD9O3bGFpDifEF7Mk 39ZFijS/GYT9ptQzRsptPCqauF1p4FoC/uh5d57TdAZ9UyrNVSBidYudFuW3KEse4ZPz iWNZKu0nfmhGr8sWxAEW+nuR5v9saxUL+htq6W4AD4gwrRlHSVEX+7E3pRYrVqmt3SAb oOkb+iaC6afGQA6vcauhbq2J6b/8Nyjlb6CNConV278D33PnFhUIuJdaoQGnezdT4plY ovGw== 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 j18-20020a170902da9200b001b8c824e826si8482265plx.533.2023.07.10.06.52.05; Mon, 10 Jul 2023 06:52:17 -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 S233175AbjGJNnM convert rfc822-to-8bit (ORCPT + 99 others); Mon, 10 Jul 2023 09:43:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229907AbjGJNm4 (ORCPT ); Mon, 10 Jul 2023 09:42:56 -0400 Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F163CBA; Mon, 10 Jul 2023 06:42:54 -0700 (PDT) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.95) with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1qIrA9-000zai-Vg; Mon, 10 Jul 2023 15:42:50 +0200 Received: from p57bd95f7.dip0.t-ipconnect.de ([87.189.149.247] helo=[192.168.178.81]) by inpost2.zedat.fu-berlin.de (Exim 4.95) with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1qIrA9-001iVF-NK; Mon, 10 Jul 2023 15:42:49 +0200 Message-ID: <0a47ed93fe90a77180533f8c2e42e402827e8f1c.camel@physik.fu-berlin.de> Subject: Re: [PATCH 08/17] arch/sh: Do not assign FBINFO_FLAG_DEFAULT to fb_videomode.flag From: John Paul Adrian Glaubitz To: Thomas Zimmermann , deller@gmx.de, javierm@redhat.com Cc: linux-sh@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, linux-input@vger.kernel.org, linux-media@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-geode@lists.infradead.org, linux-nvidia@lists.surfsouth.com, linux-hyperv@vger.kernel.org, linux-omap@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm@vger.kernel.org, Yoshinori Sato , Rich Felker Date: Mon, 10 Jul 2023 15:42:48 +0200 In-Reply-To: <20230710130113.14563-9-tzimmermann@suse.de> References: <20230710130113.14563-1-tzimmermann@suse.de> <20230710130113.14563-9-tzimmermann@suse.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 87.189.149.247 X-ZEDAT-Hint: PO X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,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! On Mon, 2023-07-10 at 14:50 +0200, Thomas Zimmermann wrote: > FBINFO_FLAG_DEFAULT is a flag for a framebuffer in struct fb_info. > Flags for videomodes are prefixed with FB_MODE_. FBINFO_FLAG_DEFAULT > is 0 and the static declaration already clears the memory area of > sh7763fb_videomode. So remove the assignment. > > Signed-off-by: Thomas Zimmermann > Cc: Yoshinori Sato > Cc: Rich Felker > Cc: John Paul Adrian Glaubitz > --- > arch/sh/boards/mach-sh7763rdp/setup.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/sh/boards/mach-sh7763rdp/setup.c b/arch/sh/boards/mach-sh7763rdp/setup.c > index 97e715e4e9b3..345f2b76c85a 100644 > --- a/arch/sh/boards/mach-sh7763rdp/setup.c > +++ b/arch/sh/boards/mach-sh7763rdp/setup.c > @@ -119,7 +119,6 @@ static struct fb_videomode sh7763fb_videomode = { > .vsync_len = 1, > .sync = 0, > .vmode = FB_VMODE_NONINTERLACED, > - .flag = FBINFO_FLAG_DEFAULT, > }; > > static struct sh7760fb_platdata sh7763fb_def_pdata = { I would argue that the current code is more readable that your proposed change. I agree that it's a no-op, but code is not just about functionality but also readability, isn't it? Also, I prefer "sh:" as the architecture prefix, not "arch/sh:". Thanks, Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913