Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp817597rwl; Wed, 5 Apr 2023 08:06:44 -0700 (PDT) X-Google-Smtp-Source: AKy350bCf+WltkIIPTFcRlLPXwJzKJkk/nT3mfdGhwnNUyoFNW5XMgs74PItFUhAVaB/5ptnt+N2 X-Received: by 2002:aa7:94b1:0:b0:628:1274:4d60 with SMTP id a17-20020aa794b1000000b0062812744d60mr5653422pfl.21.1680707204378; Wed, 05 Apr 2023 08:06:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680707204; cv=none; d=google.com; s=arc-20160816; b=GFq9CVAU/CaePRVvi9bAXIXXRp+1u7rhu/fh9J12e7uLK3+4RiUDZnZqo5Y4jA9HPT Kv7oKQPtOkre9Hn0fbZ4KWWFVOs730WnX4jhOollQALouMQg0Sj17WmRtn2WNkHJurs0 M4RYEfD9ByYTYVqycDN25tmDNLNa4xfrM4wB8lRK60dzCC6g1LSCDajEulzlQIDoS/Ks tuZjtUJRmt01CR/OdscLqX+tIP2dojVi/rwd/dKcr8iSQ/Eo1nGo2zh55STd2I3oxVOX KcIgLDqOvcaziZUseeGsn0lERqbuG49bsYx9iDVY2qQP3pWqNYRxE2zr1n3pguEAnNKK Oduw== 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=Copont4eN+mHeH6hlwq4k6Jyts7FEIa06AEN3mTCE4w=; b=fSP2q6v4nU3Y4R3v+uePTIwmBAkN1NtQg+BvdVVemswv4COtJ/JAqJcB3FOWxgIeF3 CgZ6a6/cmGRu8/VJbnJfNr09cQnFk5ByxLXmxp2D4SDlwllBT5373HCbli4lGrQwM6Bs /cQMd/gT8ZXGDSXK/HhpJswNK5pmCCw3VhjO0jlPJbsfrWC+mp8lSkyWXzrWbNJwb+6H Zt9uh8KyfQq72FCcaQhBZJqb7RNTy37l6I450QRTbgjrfZwfTHN1ZPQMFqVBcdgqZ0Il zoojuZ3Sha6JRMTX1Y1BDUk9LZQRxCY4VkUSyiqx7wm24fEy/cc/YURiU3S0Xu1zg0AD 5eRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=tBariHJ0; 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 h21-20020aa796d5000000b005907636f4bfsi12768978pfq.48.2023.04.05.08.06.26; Wed, 05 Apr 2023 08:06:44 -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=tBariHJ0; 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 S238670AbjDEPGH (ORCPT + 99 others); Wed, 5 Apr 2023 11:06:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238656AbjDEPGC (ORCPT ); Wed, 5 Apr 2023 11:06:02 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BE966191; Wed, 5 Apr 2023 08:06:00 -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-out2.suse.de (Postfix) with ESMTPS id C57641FD88; Wed, 5 Apr 2023 15:05:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1680707158; 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=Copont4eN+mHeH6hlwq4k6Jyts7FEIa06AEN3mTCE4w=; b=tBariHJ0AcDM0qb28qjIIneArgV2EQu9+rBWTOsmW82mVhugLYgmVpgR0XLn1B8d4i2lqN 4Kg+mAJIw4xTCxjDgP4xXuRDSVQuhf7XRI1ihJeTPfh4ozaBNdiLi4cXpWSLVWEJ+USJgD 1Jcn0weemyzT6zHsSVBr0RjMDspw28E= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1680707158; 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=Copont4eN+mHeH6hlwq4k6Jyts7FEIa06AEN3mTCE4w=; b=/cymTBaFY99MX9pjSwmwcE/Q+1ORQooup+NRNl7js3cJptoDfg5tc9WFx2QPTshCpucLcJ 9FHJENccCw8yjXDg== 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 5D63813A10; Wed, 5 Apr 2023 15:05:58 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 0K/dFVaOLWTPIAAAMHmgww (envelope-from ); Wed, 05 Apr 2023 15:05:58 +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 , Vineet Gupta Subject: [PATCH 02/18] arch/arc: Implement with generic helpers Date: Wed, 5 Apr 2023 17:05:38 +0200 Message-Id: <20230405150554.30540-3-tzimmermann@suse.de> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230405150554.30540-1-tzimmermann@suse.de> References: <20230405150554.30540-1-tzimmermann@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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: Vineet Gupta --- arch/arc/include/asm/fb.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/arch/arc/include/asm/fb.h b/arch/arc/include/asm/fb.h index dc2e303cdbbb..dff149eaecaf 100644 --- a/arch/arc/include/asm/fb.h +++ b/arch/arc/include/asm/fb.h @@ -1,20 +1,19 @@ /* SPDX-License-Identifier: GPL-2.0 */ + #ifndef _ASM_FB_H_ #define _ASM_FB_H_ -#include -#include #include +struct file; + static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, unsigned long off) { vma->vm_page_prot = pgprot_noncached(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