Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3943045rwe; Mon, 17 Apr 2023 06:02:11 -0700 (PDT) X-Google-Smtp-Source: AKy350Zjn9j+KfNOA4LtqPGCrr8kaEmRvxyHXlBW3xAKfCbEh1mCKGGT8qMLErZ9cVb2iebeI3QC X-Received: by 2002:a17:903:410b:b0:1a5:253f:ace0 with SMTP id r11-20020a170903410b00b001a5253face0mr11765741pld.37.1681736531339; Mon, 17 Apr 2023 06:02:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681736531; cv=none; d=google.com; s=arc-20160816; b=UYZj6Tfs+0oVfAHECv2yXqhQhg5c6c9IepkHHJkehAnZqeG7P3tXxAQqAx1AlGjuX6 4egtFaTt+Sxj3aChf8ifihEY8qpPx41Z7hEmfASL7S4oaX/xD07dtetaxPa6sAHIrXtB AXHc4fFZV+YFE54ENIDiPNmo2EE0QHoIQyqP3nXbHie7I056Oqp4KM+xDYF25BuM1tF+ Ng0GsyNaLqj4NNbUIqUEIXnz/HBaLUfVVQEVDY9CpMSRBaKbV4NbDCGxE6Wr0EAyBBfL fSDCrWI9l18XFvCwFi5goI44+t9zfeFgj6D6RsE98VqrXppAH0Nz2RUPr00V1OQNV1sm wd+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=z5oHtiODmT5VtdEUuVBzsB4uvHMHB0s42hEhdpHh3X0=; b=mg7OIHZgglMTAeTQ2GxxdrvavUGfIOESZpIk6x0hL8SOkN5r4GXkHC1f1MjAXcnzmb o1BJhq329J1idyXrmKpTKIuAurixq/4rqFuuMrOL1A69q01kjSaQr9kXrYfcc+6rgj0a AVajXv7+2eUniJlW5BHIc4R73GCQp9r1hg1zFi2aTeE3D9Ansl6OR8M60sjVxUTyumoL MXADPJseRADnxg+/NCnEdvN95IzdawrVCbroNL8xEALg4itosFU5qW8nez6HZrlmDkoM Hcx3kIdT2yVYfqwbaZVpWt5+Lz6xgSs0mSj8MztSLzDVk5wos8dvHSfeAYWtOnzbh2sL ToXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=o8EYSmai; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="/lhTOEH6"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m7-20020a170902768700b001a6dfb34f8csi2070839pll.305.2023.04.17.06.01.54; Mon, 17 Apr 2023 06:02:11 -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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=o8EYSmai; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="/lhTOEH6"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231331AbjDQM77 (ORCPT + 99 others); Mon, 17 Apr 2023 08:59:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231251AbjDQM5u (ORCPT ); Mon, 17 Apr 2023 08:57:50 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FE1465AF; Mon, 17 Apr 2023 05:57:17 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 6619121A8F; Mon, 17 Apr 2023 12:57:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1681736224; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=z5oHtiODmT5VtdEUuVBzsB4uvHMHB0s42hEhdpHh3X0=; b=o8EYSmai4ek9unF85xHI969+48yfa85qfIP3+4RymV28gSLYyY9FDR+UTXE8+0dAsPldTi fzUSHCsPwJdRNnIaPTNXVm6eh+Xt0/OgBlOlyEYTcfcH/o74b0IByUDF75wCEnOkRg7ICD Z6M59seIWh9640UG7PmoiKhfgjt8EAI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1681736224; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=z5oHtiODmT5VtdEUuVBzsB4uvHMHB0s42hEhdpHh3X0=; b=/lhTOEH6NCN9tgeVloDthojbqpOJEg6m78Ct0xTyIktdYBjIavjrJHAT+AVqsRsYT0i8Zq 4P7Js8tZItMf2DBg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 03DF71390E; Mon, 17 Apr 2023 12:57:03 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id WPA2Oh9CPWToWwAAMHmgww (envelope-from ); Mon, 17 Apr 2023 12:57:03 +0000 From: Thomas Zimmermann To: 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, Thomas Zimmermann , "James E.J. Bottomley" Subject: [PATCH v3 14/19] arch/parisc: Implement with generic helpers Date: Mon, 17 Apr 2023 14:56:46 +0200 Message-Id: <20230417125651.25126-15-tzimmermann@suse.de> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230417125651.25126-1-tzimmermann@suse.de> References: <20230417125651.25126-1-tzimmermann@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, 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 Replace the architecture's fbdev helpers with the generic ones from . On PARISC, pgprot_writecombine() and pgprot_noncached() are the same; hence no functional changes. v3: * use default implementation for fb_pgprotect() (Arnd) Signed-off-by: Thomas Zimmermann Cc: "James E.J. Bottomley" Cc: Helge Deller --- arch/parisc/include/asm/fb.h | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/arch/parisc/include/asm/fb.h b/arch/parisc/include/asm/fb.h index 0b9a38ced5c8..658a8a7dc531 100644 --- a/arch/parisc/include/asm/fb.h +++ b/arch/parisc/include/asm/fb.h @@ -2,23 +2,13 @@ #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) -{ - pgprot_val(vma->vm_page_prot) |= _PAGE_NO_CACHE; -} +struct fb_info; #if defined(CONFIG_STI_CORE) int fb_is_primary_device(struct fb_info *info); -#else -static inline int fb_is_primary_device(struct fb_info *info) -{ - return 0; -} +#define fb_is_primary_device fb_is_primary_device #endif +#include + #endif /* _ASM_FB_H_ */ -- 2.40.0