Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2204502rdb; Thu, 21 Sep 2023 11:22:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEZqFH7CnGE73PYjt0oXd9d1DHbPg5iY7UAwg7AtPo9Qbbnr76C2G/4G+EpkLakLKNPCXgF X-Received: by 2002:a05:6808:3096:b0:3a7:46ae:ea1a with SMTP id bl22-20020a056808309600b003a746aeea1amr7331469oib.55.1695320577372; Thu, 21 Sep 2023 11:22:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695320577; cv=none; d=google.com; s=arc-20160816; b=Ujus2Nms7xoYiLlo96xzx412SUC4gv12Jbg7J8JBiEefuse8VGV60mxsogQiMZY2pR dKzAvSmT0IhKOmZrS+r7JgkQJP4j0gdhYBIjQtbuJEhFnvgUNdQVFg6UrIc7sED1g74M VsqaI95yO9eOz1OoURS1jB7Mt8/2SoJkT1eS/zTMQECuTfV3HBhbu38uGFUAMhYBKwS8 WnneOLiVZsy4YjjR3q2pbZ5vHQu8vfrrFKUXHXUIBI68l3QXvwR/cyUm+THhB0uijmt0 8zKz1EMtt/8o3SSKmSACLSMhjydH61ozQG+gxtWw2nTmd6CyEjBXByvSWjo3SFAn0A9o Rc/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=QPeoiECcZk2LCjeDHWgL/laUnlhLLh4q+qeOQbK5OFI=; fh=Tc6vqEZwxCv8zAqFFMjWmq2eV4K9p1jgBfHJmLIDNkc=; b=x0qHch6a5vtKQ3O286GbKR0eaXWWf/jrZ1gtVm9t3lX0n5mpPUgSLfO/X3yJpddgIF hTikKKC1nHDY1W98ni+inlDfDgcwfwkPHRqWz1nQPLHweTaxanyWl640zRLQzYuqBI7T owzDCL01c+Db5NHEbg2ZoNnOWisS0DfgXrETYlWePLDX7OLxrJf5uzD0ROlocUejMyLI X9DfMOIZk2PQNuwnZXB87jXODNF8/CfI4l82HwUekQRpitvukTiNghCr26zNFWw+OLGf CziOJXtwwcT5EsLr3wpmlXMxttL6W7Cc0DgPUyCjbul70KI2fx8oD/fysXgc7PAyqHCB /Zrw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id t190-20020a6381c7000000b00573fc6de956si1913960pgd.223.2023.09.21.11.22.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 11:22:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D273482A38E8; Thu, 21 Sep 2023 11:12:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230075AbjIUSMM convert rfc822-to-8bit (ORCPT + 99 others); Thu, 21 Sep 2023 14:12:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229821AbjIUSLY (ORCPT ); Thu, 21 Sep 2023 14:11:24 -0400 Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 003A788485; Thu, 21 Sep 2023 10:38:54 -0700 (PDT) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.95) with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1qjDkX-003HZ5-Oh; Thu, 21 Sep 2023 09:05:21 +0200 Received: from p5b13a40a.dip0.t-ipconnect.de ([91.19.164.10] helo=[192.168.178.81]) by inpost2.zedat.fu-berlin.de (Exim 4.95) with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1qjDkX-0029eD-7S; Thu, 21 Sep 2023 09:05:21 +0200 Message-ID: Subject: Re: [PATCH] fbdev: sh7760fb: require FB=y to build cleanly From: John Paul Adrian Glaubitz To: Randy Dunlap , linux-kernel@vger.kernel.org Cc: Daniel Vetter , Helge Deller , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-sh@vger.kernel.org Date: Thu, 21 Sep 2023 09:05:20 +0200 In-Reply-To: <20230921060228.29041-1-rdunlap@infradead.org> References: <20230921060228.29041-1-rdunlap@infradead.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 91.19.164.10 X-ZEDAT-Hint: PO X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 21 Sep 2023 11:12:32 -0700 (PDT) Hi Randy! On Wed, 2023-09-20 at 23:02 -0700, Randy Dunlap wrote: > Fix build errors when CONFIG_FB=m and CONFIG_FB_SH7760=y: > > sh2-linux-ld: drivers/video/fbdev/sh7760fb.o: in function `sh7760fb_probe': > sh7760fb.c:(.text+0x374): undefined reference to `framebuffer_alloc' > sh2-linux-ld: sh7760fb.c:(.text+0x394): undefined reference to `fb_videomode_to_var' > sh2-linux-ld: sh7760fb.c:(.text+0x3a0): undefined reference to `fb_alloc_cmap' > sh2-linux-ld: sh7760fb.c:(.text+0x3a4): undefined reference to `register_framebuffer' > sh2-linux-ld: sh7760fb.c:(.text+0x3ac): undefined reference to `fb_dealloc_cmap' > sh2-linux-ld: sh7760fb.c:(.text+0x434): undefined reference to `framebuffer_release' > sh2-linux-ld: drivers/video/fbdev/sh7760fb.o: in function `sh7760fb_remove': > sh7760fb.c:(.text+0x800): undefined reference to `unregister_framebuffer' > sh2-linux-ld: sh7760fb.c:(.text+0x804): undefined reference to `fb_dealloc_cmap' > sh2-linux-ld: sh7760fb.c:(.text+0x814): undefined reference to `framebuffer_release' > sh2-linux-ld: drivers/video/fbdev/sh7760fb.o:(.rodata+0xc): undefined reference to `fb_io_read' > sh2-linux-ld: drivers/video/fbdev/sh7760fb.o:(.rodata+0x10): undefined reference to `fb_io_write' > sh2-linux-ld: drivers/video/fbdev/sh7760fb.o:(.rodata+0x2c): undefined reference to `cfb_fillrect' > sh2-linux-ld: drivers/video/fbdev/sh7760fb.o:(.rodata+0x30): undefined reference to `cfb_copyarea' > sh2-linux-ld: drivers/video/fbdev/sh7760fb.o:(.rodata+0x34): undefined reference to `cfb_imageblit' > > Fixes: 4a25e41831ee ("video: sh7760fb: SH7760/SH7763 LCDC framebuffer driver") > Signed-off-by: Randy Dunlap > Cc: Daniel Vetter > Cc: Helge Deller > Cc: linux-fbdev@vger.kernel.org > Cc: dri-devel@lists.freedesktop.org > Cc: John Paul Adrian Glaubitz > Cc: linux-sh@vger.kernel.org > --- > drivers/video/fbdev/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff -- a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig > --- a/drivers/video/fbdev/Kconfig > +++ b/drivers/video/fbdev/Kconfig > @@ -1762,7 +1762,7 @@ config FB_COBALT > > config FB_SH7760 > bool "SH7760/SH7763/SH7720/SH7721 LCDC support" > - depends on FB && (CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7763 \ > + depends on FB=y && (CPU_SUBTYPE_SH7760 || CPU_SUBTYPE_SH7763 \ > || CPU_SUBTYPE_SH7720 || CPU_SUBTYPE_SH7721) > select FB_IOMEM_HELPERS > help Actually, Thomas Zimmermann already posted the same patch already on Monday ;-). See [1]. Adrian > [1] https://marc.info/?l=dri-devel&m=169502772500717&w=2 -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913