Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3941743rwe; Mon, 17 Apr 2023 06:01:34 -0700 (PDT) X-Google-Smtp-Source: AKy350bAVJVbRlvg6BWN13/iTYEfKn8LKFWmmuC5NGgTmON4Wx2vz+uO+NewmDcuBEW5EzpRI/tN X-Received: by 2002:a17:902:aa4c:b0:1a5:150f:8558 with SMTP id c12-20020a170902aa4c00b001a5150f8558mr9654316plr.17.1681736493969; Mon, 17 Apr 2023 06:01:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681736493; cv=none; d=google.com; s=arc-20160816; b=YhHVIfQh8Lx9nNDfGCLbjF3a+Ui5uGUcsPL8eREF7yu4G/ShJdNYBXxFTJoEnorTcA 701ZYbVLNRIza3d1J0Qk3l5gj2BaDsgIybeWyfkGO73kIL/oxVCEXsq/dsTW1Nl7/4OX MUAd6KHa2fPFpQZ5ZtEzhsTFpM68ay3kemRfjtS9fXZyFqYsC1F/fTZKEZk1EV7rqE2x cPWnmye/nd1Sn4Z1CuON88e3tNPmQpVNF5EISZMMgQQNxUMckivcJuxy3AwQ48cBD7Ul 51J0T4bYKiaz3/EQoy/1D6WScvzMg7gxrVYxtqxyk3Qh8O+WznDq0nJ38AKmE22bY5ew C1mQ== 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=fuWe06Pw+mXdvZx7RhcmZ5nPYKWfkXeunLzUAN0XdUY=; b=PaxxoIAoimtuUF7isakq5AR4c7N466u+sWthJI1k4OCMby4gg78TlMuuAzs4eTs+Zx iGD/A180xSPCT17gmZc4/UUaggVqHAgpKavrnwxCHhPCEcBfg4oJKHeVEwl69xWGUCs3 gfjFipsH0lT2tNd3JnC9uE6g25QgrEX3unfecBmFjhgyrRLVnCzjQp80kuLYdu7honp8 N+pRW/37XYLnwu6nvmc1FY8jExwuuLsiJU4Pxj38Ry8CVi+3+YWbMwcFEXOcT2L2zKRX CFxz20B2fqRamJyZzNuaVQKy0U5Iw1YjcNN6IlNKdjskg4NkhM8YSvp3XL0tAs0oUNrW V2ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="nwe1/bqG"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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 u1-20020a170902a60100b001a66b9d5e19si10979392plq.329.2023.04.17.06.00.59; Mon, 17 Apr 2023 06:01:33 -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="nwe1/bqG"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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 S231453AbjDQNAU (ORCPT + 99 others); Mon, 17 Apr 2023 09:00:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229540AbjDQM6P (ORCPT ); Mon, 17 Apr 2023 08:58:15 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F8266A7C; Mon, 17 Apr 2023 05:57:19 -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 D8B1721A90; 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=fuWe06Pw+mXdvZx7RhcmZ5nPYKWfkXeunLzUAN0XdUY=; b=nwe1/bqGJvVkGqjZ/h/kBBxlsQCz4YZJXhEYQpc2e6KE7Xjuq1IB1QewFvDM09NTcWM3qZ 7PwZoSRzp4emMa+aGQDX6CrD6tXXbBx6JGvu48ZTdfTR3Q/7LkQrD0cLFRiS6PGJqUgz54 cB9vMXTaNP2ZKpi3k2KqKwdN7UpXQ0A= 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=fuWe06Pw+mXdvZx7RhcmZ5nPYKWfkXeunLzUAN0XdUY=; b=S8FhjSx5oOMheMhPGiRsNskIj0HVx2G9AMIFYjDtqs/D7R1Co3FGj9riXatag4JfRDEFen Rk/7CRtAKQWwF3Cw== 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 6D8F61390E; Mon, 17 Apr 2023 12:57:04 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id YPHLGSBCPWToWwAAMHmgww (envelope-from ); Mon, 17 Apr 2023 12:57:04 +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 , Michael Ellerman , Nicholas Piggin , Christophe Leroy Subject: [PATCH v3 15/19] arch/powerpc: Implement with generic helpers Date: Mon, 17 Apr 2023 14:56:47 +0200 Message-Id: <20230417125651.25126-16-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 fb_is_primary_device() with the generic one from . No functional changes. Signed-off-by: Thomas Zimmermann Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Acked-by: Michael Ellerman --- arch/powerpc/include/asm/fb.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/include/asm/fb.h b/arch/powerpc/include/asm/fb.h index 6541ab77c5b9..5f1a2e5f7654 100644 --- a/arch/powerpc/include/asm/fb.h +++ b/arch/powerpc/include/asm/fb.h @@ -2,8 +2,8 @@ #ifndef _ASM_FB_H_ #define _ASM_FB_H_ -#include #include + #include static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, @@ -13,10 +13,8 @@ static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, vma->vm_end - vma->vm_start, vma->vm_page_prot); } +#define fb_pgprotect fb_pgprotect -static inline int fb_is_primary_device(struct fb_info *info) -{ - return 0; -} +#include #endif /* _ASM_FB_H_ */ -- 2.40.0