Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp508084rwl; Tue, 11 Apr 2023 23:21:02 -0700 (PDT) X-Google-Smtp-Source: AKy350Y9yev8LgFYhT7WAOI3ZIQ0+IkCXXSlVEvL+PHFTvW+Sh0G3/v8udEovqKTUF4n9BbYesLn X-Received: by 2002:a17:906:64dd:b0:94e:4663:4f4b with SMTP id p29-20020a17090664dd00b0094e46634f4bmr2494800ejn.14.1681280461983; Tue, 11 Apr 2023 23:21:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681280461; cv=none; d=google.com; s=arc-20160816; b=b71S56yvqXONId1Ef/WQnMBx/2Eqt9ovDIeah1Yjsq7Xvo+WSMZ5CNHBo0S0mnrYO5 pUIwJYkZ9YWrPUpDnY0oL5L5yQIykXR7V44FMuMOhuImVp/WZ7A7mCUIwPnMn1N0Ez4d thac9GImnLcqQLzR5blOS/EMYuszb+BPQ0NY1cfltSROO10Gg0JfBAyiUzyRlL8gOKZk LVMvlQLWj1p/HaghXYS0WiMWBqT/AM3XUFiM76sKwE8T7VJzgkqGka/gMth0dMVWGJD6 QS76U+qjQiWBYCW7kkTNf5XXazwEZTn/y2PbrP6IOZnhgk90Bv8k0+SZQB2MZ5A9rRUK 8L3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=mVus6VBYhH8GmWv60JhlJfNhVtxbImSRmEm6BDRrW3s=; b=bPsHWfWDJttpzhK6qMGU30zuDfx+n1UIOXwBk9m+yv1OziPj47FwAZz+UyGmzZeMcm 4eFBVu2NbnIQXR/uV+l796mhIzEQWZzQ9a6G4jH7HuuSRb79G4tAlhBGkOOZf5Ztj6PG jDU6eKbnR6M71voKvv2/7OhGBsDiSB3qaqAf1lgKDd0iti8q98sigPYvfB6Yr+mkw/rG ODi4lphPbV4Kzgq9UBDQ9v7pPFj2b5YRPZBX1iQK0s558Ax/4AKJ6fapBvAPargj9zF/ ypMXCaldKKNdUTSnyBhG06EhcG548PAekFT9xK+ndDJP0c9O9sU5M9/Oi8w4XC10p3nk nQGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=lTZEAUAJ; 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 g5-20020a170906348500b0094e4d06822csi1298964ejb.196.2023.04.11.23.20.38; Tue, 11 Apr 2023 23:21:01 -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=@ellerman.id.au header.s=201909 header.b=lTZEAUAJ; 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 S229558AbjDLGSR (ORCPT + 99 others); Wed, 12 Apr 2023 02:18:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229638AbjDLGSO (ORCPT ); Wed, 12 Apr 2023 02:18:14 -0400 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C99AA527A; Tue, 11 Apr 2023 23:18:07 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4PxCF401xjz4xFj; Wed, 12 Apr 2023 16:17:59 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1681280282; bh=mVus6VBYhH8GmWv60JhlJfNhVtxbImSRmEm6BDRrW3s=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=lTZEAUAJ2QZsc9UPHGoexeIDhivQg0OZP2tQ8N178oguDiIOjU/GS5yjDEkHA0ZQY UoSdL/mLxTXV/wa3HPEVjblwcxsdx2c+OnuyDK5Tv1Pbg7hiKGkpXXQYiHyY9ZXKUK 6CSwY02DKtu+cGQJMahEUbmjJakfBQLvnLNWdj1LScutIwzO/9mPiHZFRCutiHgFFy LDNwBaVtxl/OmcZoIc9q0YGGvsTAR4vPp6o9KxvHWYHacDs55AZq5ZD42D7HmgmLSM 12TeMwxecBFtXBTtmtuIhlm5OkckoQGJYZdQPchk2E7CbMKkKzVuJ/odBCPWTELN7l 5ijFDMn/S4fVA== From: Michael Ellerman 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, Thomas Zimmermann , Nicholas Piggin , Christophe Leroy Subject: Re: [PATCH v2 15/19] arch/powerpc: Implement with generic helpers In-Reply-To: <20230406143019.6709-16-tzimmermann@suse.de> References: <20230406143019.6709-1-tzimmermann@suse.de> <20230406143019.6709-16-tzimmermann@suse.de> Date: Wed, 12 Apr 2023 16:17:59 +1000 Message-ID: <87r0spipyg.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain 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_PASS, SPF_PASS,URIBL_BLOCKED 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 Thomas Zimmermann writes: > 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 > --- > arch/powerpc/include/asm/fb.h | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) Looks fine. Acked-by: Michael Ellerman (powerpc) cheers > 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