Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3938143rwe; Mon, 17 Apr 2023 05:59:08 -0700 (PDT) X-Google-Smtp-Source: AKy350bbiYyw5OJbdpAog9zgkStc+TcnFldc9yJZ72od4rA5NTGF9AgB6CfDaDmfQ/IHcvAH6GR5 X-Received: by 2002:a05:6a20:9385:b0:ef:95ee:895a with SMTP id x5-20020a056a20938500b000ef95ee895amr4972542pzh.30.1681736348436; Mon, 17 Apr 2023 05:59:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681736348; cv=none; d=google.com; s=arc-20160816; b=TTRIxPoFCZc6dO7rKdYkrOIj26JNJ0vyuPYxVHVuz5eUaHPoQUO2uyJ4CRK2/atBlW a2lYG/+YWDJQdqVf+N6IH+ZGYMqUuC10zEe0tT6DPeSxN/I1rxHj855ui4abV3U4Uhph W9v+sgjPNe8RbeqcR/zF4EUEteOiZyGobIGUFhLvcTAxGv4Fr2sEN5pTD9i2yBcjXiG/ Bm+jdD4TERNfQOBXiuyVsuyS8tkTxPGHJK72onk+5ecaKZtz13NENL1Qr+9d5A7JVEUp Rky7kOO51do5zSmIZb+Zl5gFqwzwYNDC3ZxXmNBLd/eRVpTe058gzzmyyCG7jVP1RT6T wBfQ== 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=QFDYtj/p55wXFlixZTM7qmGD63jo20Zks5qJy+aO2N4=; b=Sz3CIt7WttpJXK8fzy+2QWLn4I8GXJQHYrCkNPHYg96Ydl254niZQqha6yLQPh07K/ oFJVWD9b4G413AG7QM3cSuVR9h83pFrW1m76AKVIaGRd0gxsQ6xiKwxmyXO9f8jGjmPF mphUfoPbcWHZQMTKUNq8gmrzluaWyfMI1sEmc1dettcT8FpSUZ+Dm7VodGQLYvo900qA 1U+UqadcRMYLO2a1rV0B3uewqtSkGAOk7lCNYLQ3b56AbBYg1IpqFNNmgwekJ5VzKopk NsKNqOpoAXFjsHjJAXD5ekDMvyNRygwCds6ShraWRI/Lc2hBpbue59yaSw4yEnWkGVYR WKKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=hxXbx2by; dkim=neutral (no key) header.i=@suse.de; 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 k66-20020a632445000000b0051425f003e1si12178607pgk.526.2023.04.17.05.58.56; Mon, 17 Apr 2023 05:59:08 -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=hxXbx2by; dkim=neutral (no key) header.i=@suse.de; 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 S229551AbjDQM5v (ORCPT + 99 others); Mon, 17 Apr 2023 08:57:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231331AbjDQM5U (ORCPT ); Mon, 17 Apr 2023 08:57:20 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDE298699; Mon, 17 Apr 2023 05:57:03 -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 D662321A87; Mon, 17 Apr 2023 12:57:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1681736221; 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=QFDYtj/p55wXFlixZTM7qmGD63jo20Zks5qJy+aO2N4=; b=hxXbx2by2ceKis2BkuZW6Jdr22dlEFNpbWbxJ3cG9+GIl7w4NfB4EAvHyW06cd3irF08BJ FxrfYnjd8kWBAlruZTb63L9GrwdStTdY5vYwaUHR9kotpryTA/rJcqcpyj2EVZPzyAKf6A nOOfSPOHQmhjMpiC+ipxqIoQ07C1Oi0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1681736221; 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=QFDYtj/p55wXFlixZTM7qmGD63jo20Zks5qJy+aO2N4=; b=+20MRO6FXDPHw0n9k6ddFTctDjj/7L8rUKzYIYwGV3WDsGkfpuIulEoiAVNdBdYgpZ9QcO 9XQy249kuJ2g0pCA== 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 7B5611390E; Mon, 17 Apr 2023 12:57:01 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id MHn4HB1CPWToWwAAMHmgww (envelope-from ); Mon, 17 Apr 2023 12:57:01 +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 , Geert Uytterhoeven Subject: [PATCH v3 08/19] arch/m68k: Implement with generic helpers Date: Mon, 17 Apr 2023 14:56:40 +0200 Message-Id: <20230417125651.25126-9-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=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 Replace the architecture's fb_is_primary_device() with the generic one from . No functional changes. v2: * provide empty fb_pgprotect() on non-MMU systems Signed-off-by: Thomas Zimmermann Cc: Geert Uytterhoeven Acked-by: Geert Uytterhoeven --- arch/m68k/include/asm/fb.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/arch/m68k/include/asm/fb.h b/arch/m68k/include/asm/fb.h index 4f96989922af..24273fc7ad91 100644 --- a/arch/m68k/include/asm/fb.h +++ b/arch/m68k/include/asm/fb.h @@ -2,11 +2,11 @@ #ifndef _ASM_FB_H_ #define _ASM_FB_H_ -#include -#include #include #include +struct file; + static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, unsigned long off) { @@ -24,10 +24,8 @@ static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, #endif /* CONFIG_SUN3 */ #endif /* CONFIG_MMU */ } +#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