From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2AFEC433FE for ; Sun, 13 Feb 2022 21:07:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238362AbiBMVHV (ORCPT ); Sun, 13 Feb 2022 16:07:21 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:44032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231176AbiBMVHT (ORCPT ); Sun, 13 Feb 2022 16:07:19 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 524CD53726; Sun, 13 Feb 2022 13:07:13 -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: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description; bh=TpeZJruUWIHQrec6INjMOe3tJKkfB5AtMyx8DX9DlJQ=; b=dTCnjumE+jgwvROuWmmif1aESN vamLKBGywF3n4msqcO1hqQlg3Utk9zzASDP2EubYBsL3TbKCYnmtcwYIGBHTJCfUKfHLP+75IgcO8 /KAyFEY3DjtaqJT2eD+6SanPhJHnXB+ZvYdy1Ja2yjg1Z3BMghBBQ6co8QaBpcWOWinNfZyn/553i S/Ah2RB5DVgDhpRc/4+byLkmxMjAduxMaI517+NyE3GhAH1nOrZ7Ffa9QWqDazxK8pv1bQ8RykO5S 9o6LF/Itgzohg3df0FZr0Nf3N6yYfAIl9JZ2PMQI3DJgL8fUduCB6MYKKCwfP9O1bILBR+GnQvahT C5PC0Uvg==; Received: from [2601:1c0:6280:3f0::aa0b] by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJM5M-00CHWi-Vl; Sun, 13 Feb 2022 21:07:09 +0000 Message-ID: <55c73cb4-21ae-7307-7b14-a19cf270f4d6@infradead.org> Date: Sun, 13 Feb 2022 13:07:04 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH] serial: parisc: GSC: fix build when PCI_LBA is not set Content-Language: en-US To: Helge Deller , linux-kernel@vger.kernel.org Cc: kernel test robot , "James E.J. Bottomley" , linux-parisc@vger.kernel.org, Greg Kroah-Hartman , linux-serial@vger.kernel.org, Jiri Slaby , Johan Hovold References: <20220213193903.8815-1-rdunlap@infradead.org> <0baabcbc-196e-08fa-e2db-b7e925993cc1@gmx.de> From: Randy Dunlap In-Reply-To: <0baabcbc-196e-08fa-e2db-b7e925993cc1@gmx.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/13/22 12:35, Helge Deller wrote: > Hi Randy, > > On 2/13/22 20:39, Randy Dunlap wrote: >> There is a build error when using a kernel .config file from >> 'kernel test robot' for a different build problem: >> >> hppa64-linux-ld: drivers/tty/serial/8250/8250_gsc.o: in function `.LC3': >> (.data.rel.ro+0x18): undefined reference to `iosapic_serial_irq' >> >> when: >> CONFIG_GSC=y >> CONFIG_SERIO_GSCPS2=y >> CONFIG_SERIAL_8250_GSC=y >> CONFIG_PCI is not set >> and hence PCI_LBA is not set. >> IOSAPIC depends on PCI_LBA, so IOSAPIC is not set/enabled. >> >> Making SERIAL_8250_GSC depend on PCI_LBA prevents the build error. > > It maybe makes the build error go away, but ... > >> Signed-off-by: Randy Dunlap >> Reported-by: kernel test robot >> Cc: "James E.J. Bottomley" >> Cc: Helge Deller >> Cc: linux-parisc@vger.kernel.org >> Cc: Greg Kroah-Hartman >> Cc: linux-serial@vger.kernel.org >> Cc: Jiri Slaby >> Cc: Johan Hovold >> --- >> drivers/tty/serial/8250/Kconfig | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> --- linux-next-20220211.orig/drivers/tty/serial/8250/Kconfig >> +++ linux-next-20220211/drivers/tty/serial/8250/Kconfig >> @@ -118,7 +118,7 @@ config SERIAL_8250_CONSOLE >> >> config SERIAL_8250_GSC >> tristate >> - depends on SERIAL_8250 && GSC >> + depends on SERIAL_8250 && GSC && PCI_LBA >> default SERIAL_8250 > > The serial device is on the GSC bus, so if you make it > dependend on the PCI bus it will not be useable on machines > which only have a GSC bus... > > We need another patch. > Do you have a link to the build error? No, it's from the other build error that you just replied to, where the incorrect compiler was used. I'll recheck it and reconsider what to do, if anything. thanks. -- ~Randy