X-Received: by 2002:a17:90a:8e85:b0:1bc:429b:513d with SMTP id f5-20020a17090a8e8500b001bc429b513dmr2428588pjo.11.1645507791795; Mon, 21 Feb 2022 21:29:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645507791; cv=none; d=google.com; s=arc-20160816; b=z+STjVX1k2rq+aVGZ7xsM5+o/8ue0UTJndwqUI8tki+8cD2hxiVCAlm3ezVtABg9gO GGa18x0bFBfJh4tOIctsgFMkjQHAFz9f3IRTJS3Fh+FqN3Pdsf3AOvyI90hy426aDq4f QeHpAtEypFaAzHPYTqkEaG0i3NhRxBO07prQF4pI1ArloY5NEoCAZ3d+QbIAgrkXVsg+ dnfkPdiSnjYQGgZYLOKsMKOPF9ziiThQCK1zEVCjfCL6fQYB0YRBaTfP8oyJW2gG0s47 YQAYF1oxGdUdaA5PUHQQ1NziGLjEd/074f+B4vpIv/p8Ww3Sz9COIfk8hvoX41KIDS+z xrWw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=EMvolAc9BCdu/gH52qTnf+0QK6Bz3cfdPvJBQQqFKzU=; b=fdL8xMlfh0ZnVrMdDF+Ooj57905WYL/uVPI2l0Vi0Zv9yKdSvhbk5uw0Y9jdq8aR5F 8zR2RfAGOYHwkLgF+oVXep7Jz8ESTX3GfKXQt42IFvxWwoUbtYdyvVrBYUwXPo7U8g/T ag5/oFx+oQRuU61x/PyVrFWO16rrlxCDrgwrzkSyHArFlkE25ipkFbAw3tjrWbOV80Ol 6UGdz2fpBKXr7Rpgn/CpKQbnlJ/poelaapgFSfp5zkzMos6YXyjOj3Zx7IsX0CUDoFrG ny+efVQj7lU0Gj+zDF0x7r48eMGfZAHfTFE2Ek22AhlNl1ZsyaiZypAiLQLJrodqjkED dTJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="ExsgDo/D"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l13si19051992pgq.411.2022.02.21.21.29.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 21:29:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="ExsgDo/D"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 198EB6CA6B; Mon, 21 Feb 2022 20:58:44 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347064AbiBUJDW (ORCPT + 99 others); Mon, 21 Feb 2022 04:03:22 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:33076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347050AbiBUJAq (ORCPT ); Mon, 21 Feb 2022 04:00:46 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 009FA24BDC; Mon, 21 Feb 2022 00:55:43 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EB03E61152; Mon, 21 Feb 2022 08:55:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE407C340E9; Mon, 21 Feb 2022 08:55:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645433718; bh=HKrIBi5m5CFXzZ+6/xBVUfB/8hJp8GunVilEDIKwwTQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ExsgDo/DxsCzzaG0a1V3IwszrRu4XlKxrPKTCtSIJztBTuWAN6rt6qSxWk5hdm3fr OfcQ/IaJoR2hl9ZY8LwuQLXmZh6gBsYW2afprr4yN80JhGWAEPzekCUIHnkdP14OlA jfYJ+00GHgeM8UQ6euOIdzWrB56z6PLPUVfYlKvQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , kernel test robot , "James E.J. Bottomley" , Helge Deller , linux-parisc@vger.kernel.org, linux-serial@vger.kernel.org, Jiri Slaby , Johan Hovold Subject: [PATCH 4.19 03/58] serial: parisc: GSC: fix build when IOSAPIC is not set Date: Mon, 21 Feb 2022 09:48:56 +0100 Message-Id: <20220221084912.003426541@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220221084911.895146879@linuxfoundation.org> References: <20220221084911.895146879@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Randy Dunlap commit 6e8793674bb0d1135ca0e5c9f7e16fecbf815926 upstream. 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. Make the use of iosapic_serial_irq() conditional to fix the build error. 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 Suggested-by: Helge Deller Signed-off-by: Helge Deller Cc: stable@vger.kernel.org Signed-off-by: Helge Deller Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/8250/8250_gsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/tty/serial/8250/8250_gsc.c +++ b/drivers/tty/serial/8250/8250_gsc.c @@ -26,7 +26,7 @@ static int __init serial_init_chip(struc unsigned long address; int err; -#ifdef CONFIG_64BIT +#if defined(CONFIG_64BIT) && defined(CONFIG_IOSAPIC) if (!dev->irq && (dev->id.sversion == 0xad)) dev->irq = iosapic_serial_irq(dev); #endif