Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4059345rwe; Mon, 17 Apr 2023 07:25:59 -0700 (PDT) X-Google-Smtp-Source: AKy350b2j7cCS7MnYWnx3OgpuYvndBs4xREV6ZC/hm2fDWISXQASbudt+YuaK2xtJl0gjDaCZDXj X-Received: by 2002:a17:903:4304:b0:1a2:626b:ba1d with SMTP id jz4-20020a170903430400b001a2626bba1dmr10438888plb.39.1681741559441; Mon, 17 Apr 2023 07:25:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681741559; cv=none; d=google.com; s=arc-20160816; b=jEafMjM1nwITtYl/ltF/3E2Rxgn6ID5uSTupki/IJJPYJjQPb4jAF865J2yQ3JFguI h+N0to9JjDEKcmgFFLFK6YvOZ/x6nDsviIDN8VAyFM1hLtjrDCJudGoJP1ZJVgrRzEKl XRYD4movzNMGRAYsdQKOwquJYwhjr3ejOGS3x88KMpzyImAOh58H5U+5a4ERFn0EAV3Y 4AUrUAPVlzY38Yp1quJ3nuiC7u9KQdvw0rh9NM+wqh9aP/JghpqTeTPFLzZS9jlWtazx PoJQlqc3rTloRsNPdQG8m7UCYVwyjkxSpBwVrjzpKAPG4cEmQBUAKjn7Ou47fPYdvIU3 exMQ== 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=DkXy0P06hG8+0Zvb8mhD1L+cEqigr2Ll1UNErdaI8Tk=; b=Fdj4Ba71dT4HHPdGNiEXlY1x08OJ+HYRNnBpM51ImTyYW/0NNYiwi0dKjSbDArJQn4 GEA3awrZMuU8O1tMLA3arooUdmJ8WhCbfIwys900C1Rfdczwfvk4AEn3uNfpH3pkKchX 2xUGHQ7B77LJlETXW33WgtFExUKHUa3+WlhnKpQTvhNzpBfahU1p2iyWlFvkJDNfV/DU gJ4DS4Ak4OMKYdcM++632IFUl+2l/q46Su+njA+XovLK3Pck1k2fDWu8VkspEj/Zb1ZW yF1gdEZ5rpBHjMRP7OoIftW6/F2yxkAH6M63nPknht4R6Ya5ugoganApknrd0sdl91Ri aR3g== 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 f9-20020a17090a638900b002343565e8b4si5598294pjj.122.2023.04.17.07.25.45; Mon, 17 Apr 2023 07:25:59 -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 S230221AbjDQOVo convert rfc822-to-8bit (ORCPT + 99 others); Mon, 17 Apr 2023 10:21:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbjDQOVm (ORCPT ); Mon, 17 Apr 2023 10:21:42 -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 17835F3; Mon, 17 Apr 2023 07:21:41 -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 1poPjb-002Mbf-Vt; Mon, 17 Apr 2023 16:21:36 +0200 Received: from p5b13a017.dip0.t-ipconnect.de ([91.19.160.23] 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 1poPjb-0046Ky-Nw; Mon, 17 Apr 2023 16:21:35 +0200 Message-ID: <3522e1a2957f20a01bd5bc61b0f78d4d38e43b68.camel@physik.fu-berlin.de> Subject: Re: [PATCH v3 16/19] arch/sh: Implement with generic helpers From: John Paul Adrian Glaubitz To: Thomas Zimmermann , arnd@arndb.de, daniel.vetter@ffwll.ch, deller@gmx.de, javierm@redhat.com, gregkh@linuxfoundation.org Cc: linux-arch@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, x86@kernel.org, Yoshinori Sato , Rich Felker Date: Mon, 17 Apr 2023 16:21:34 +0200 In-Reply-To: <20230417125651.25126-17-tzimmermann@suse.de> References: <20230417125651.25126-1-tzimmermann@suse.de> <20230417125651.25126-17-tzimmermann@suse.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.0 MIME-Version: 1.0 X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 91.19.160.23 X-ZEDAT-Hint: PO X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 On Mon, 2023-04-17 at 14:56 +0200, Thomas Zimmermann wrote: > Replace the architecture's fbdev helpers with the generic > ones from . No functional changes. > > v2: > * use default implementation for fb_pgprotect() (Arnd) > > Signed-off-by: Thomas Zimmermann > Cc: Yoshinori Sato > Cc: Rich Felker > Cc: John Paul Adrian Glaubitz > --- > arch/sh/include/asm/fb.h | 15 +-------------- > 1 file changed, 1 insertion(+), 14 deletions(-) > > diff --git a/arch/sh/include/asm/fb.h b/arch/sh/include/asm/fb.h > index 9a0bca2686fd..19df13ee9ca7 100644 > --- a/arch/sh/include/asm/fb.h > +++ b/arch/sh/include/asm/fb.h > @@ -2,19 +2,6 @@ > #ifndef _ASM_FB_H_ > #define _ASM_FB_H_ > > -#include > -#include > -#include > - > -static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, > - unsigned long off) > -{ > - vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot); > -} > - > -static inline int fb_is_primary_device(struct fb_info *info) > -{ > - return 0; > -} > +#include > > #endif /* _ASM_FB_H_ */ Acked-by: John Paul Adrian Glaubitz -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913