Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp11462544rwb; Fri, 25 Nov 2022 16:15:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf60No9tztGGEM56vpYMTUwBpim3QPM3j+C05rRdaui2S4FqLFY/LRASN8cP5KilGrjU1ofd X-Received: by 2002:a17:90a:cf08:b0:218:6bd8:3114 with SMTP id h8-20020a17090acf0800b002186bd83114mr42924472pju.128.1669421707579; Fri, 25 Nov 2022 16:15:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669421707; cv=none; d=google.com; s=arc-20160816; b=M4V88wLqlVqRY58rdTv3xXs0OmoB1SEfUID6vUz9U6dNoCP7dbIsRU0u5AWnWo3D9i bw4Ov3d/2Ihk8r9TR6I8pVLLPMQU5grxguPxIMRqP8WGAQATYFc/kHE21DRuYnqs/CAW o0J8wBpMTqUNNcZ1YKIwnZJaOe3AC3Otyy3T2WnQtKy8pbEaNlZ2w1Tr5+/bokPWSjbE 1M7fW60ZYW1fhtIh3s15Qmn+t78EkHIZEIgL6y3raBnMhx/LTc4QZhsZsHHjP7zJBudS dM/vUQmhEsSH5DlL+4i9iJIetOEPekBMZWvarYy5ZC1sy5KmL8NfJVmC0vVOLONDGoRf 5msQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=fCEpozuQZzSMlmSX68RJLiCk4zrpL6chfzTq9T/Cx5k=; b=BOHouIFrZwk/1iXaeRWVsqoknRrofQjTCC56iaVFj6D087OS8qexQTU3p4tR9wK237 cvq2AxmT3CB+rvkHiuNUbTaZEshqc6NxVw1IaHzNaZ2OxAIjOnFOGoF+EFR0lyrX1r0j 3nd5EUKLeryzwBxWS52aUl51bUJLTzjL04/KsF0GXdsRRdJnY9j/yJYY1/iAt3Ri8Fa8 OV/dF3caoumLtJl7531FcTalw6csKcO7SQcYOHwD9NoKyG61Fibjipikp2Kg3r+iw9Uu TKbPR/6rd8QFKdyR4B8rqmS+ZaB8xRwvcErHXXvbL9eCiDgvhmCkVaslLEo4O41QKSk1 SO+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=EsUHG75+; 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 l7-20020a170902f68700b00172f32450b7si5846573plg.197.2022.11.25.16.14.56; Fri, 25 Nov 2022 16:15:07 -0800 (PST) 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=@infradead.org header.s=casper.20170209 header.b=EsUHG75+; 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 S230086AbiKZAEP (ORCPT + 86 others); Fri, 25 Nov 2022 19:04:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbiKZAEN (ORCPT ); Fri, 25 Nov 2022 19:04:13 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D9B13054E; Fri, 25 Nov 2022 16:04:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=fCEpozuQZzSMlmSX68RJLiCk4zrpL6chfzTq9T/Cx5k=; b=EsUHG75+oID3GB27Y6g35LNJqk uHV7H16V2AyNE9Jjrx5LcQPqA/7lRSatnFyjSsmv79n+xloLV5EdP5ct+xZ8ruRygleiDumHWKfzK S+rH5/exa9VjcJqkwLGnH5bXeUy2Ml//sDH2MHlDC/gr7vmLxer2HPFg8MXv0UNcqlpjPLnuXG6r7 7fSvb5ynnF2yi9bVA3b4w+xqb27ZKPhojSap/CmdWytflOHw1QyNS2X8mSUzNBne+FEZPapvec5ZE dVG2zaTgtidnqvc9J5awYuFTWkQ10LI6xLfBytJmpKoTvn4L6ytYKPXLHHkIXFvDSUoAb3Lru3zad ll2nv8yA==; Received: from [2601:1c2:d80:3110::a2e7] (helo=casper.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oyig1-00A0ud-R3; Sat, 26 Nov 2022 00:04:14 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Arnd Bergmann , Masahiro Yamada , Thomas Zimmermann , =?UTF-8?q?Michal=20Such=C3=A1nek?= , linuxppc-dev@lists.ozlabs.org, Daniel Vetter , Helge Deller , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH] fbdev: make offb driver tristate Date: Fri, 25 Nov 2022 16:04:01 -0800 Message-Id: <20221126000401.25302-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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_NONE 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 Make the offb (Open Firmware frame buffer) driver tristate, i.e., so that it can be built as a loadable module. However, it still depends on the setting of DRM_OFDRM so that both of these drivers cannot be builtin at the same time nor can one be builtin and the other one a loadable module. Build-tested successfully with all combination of DRM_OFDRM and FB_OF. This fixes a build issue that Michal reported when FB_OF=y and DRM_OFDRM=m: powerpc64-linux-ld: drivers/video/fbdev/offb.o:(.data.rel.ro+0x58): undefined reference to `cfb_fillrect' powerpc64-linux-ld: drivers/video/fbdev/offb.o:(.data.rel.ro+0x60): undefined reference to `cfb_copyarea' powerpc64-linux-ld: drivers/video/fbdev/offb.o:(.data.rel.ro+0x68): undefined reference to `cfb_imageblit' Signed-off-by: Randy Dunlap Suggested-by: Arnd Bergmann Cc: Masahiro Yamada Cc: Thomas Zimmermann Cc: Michal Suchánek Cc: linuxppc-dev@lists.ozlabs.org Cc: Daniel Vetter Cc: Helge Deller Cc: linux-fbdev@vger.kernel.org Cc: dri-devel@lists.freedesktop.org --- drivers/video/fbdev/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -- a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig --- a/drivers/video/fbdev/Kconfig +++ b/drivers/video/fbdev/Kconfig @@ -456,8 +456,8 @@ config FB_ATARI chipset found in Ataris. config FB_OF - bool "Open Firmware frame buffer device support" - depends on (FB = y) && PPC && (!PPC_PSERIES || PCI) + tristate "Open Firmware frame buffer device support" + depends on FB && PPC && (!PPC_PSERIES || PCI) depends on !DRM_OFDRM select APERTURE_HELPERS select FB_CFB_FILLRECT