Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4424451pxb; Mon, 21 Feb 2022 21:11:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlVEAuSxR3ewu0/j0YwXhjpYjgzDw0/muF/ZWoUzuPk37rFOUl1CGRG0jKtphRiVLcbDV8 X-Received: by 2002:a05:6a00:1692:b0:4df:c6b0:2f02 with SMTP id k18-20020a056a00169200b004dfc6b02f02mr23174493pfc.50.1645506679129; Mon, 21 Feb 2022 21:11:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645506679; cv=none; d=google.com; s=arc-20160816; b=ywpXW2EdK5XAtVEasbX1xnxImznr5YU/G720OLRZ6mGeGztoI4w8BHZlD2mcXSv/dM o8W6ZVY4XWHwZy6iWFMHiZxzCCrknh9svvG/BKKJpD1knejrUusg3NKZcEHzfQpVIE75 Xi+/Xfcu356wSchatVUAR13YRuaHi6XPm8CV/DGeEboJ+wnpv2NGfHqeVOwGeTvtbwzd 2uGRwAgDfrpGImMH/D2Pkl322hIJctJNGjWfxAG6MrgZdVfnpKxndmQ7bE9Lyta5utKx MioEtE0i42RxQhGGIn1p4pAsXewfaDFlwKlEtFRkQvKLo3RB1O/LnopP7iqeQvr3eW0V 47aA== 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=Lx6hvLNcnZAtXZgu6eSrUQXaViRmR7krO1Zq5+Ej1agCnaVOerQK+Skz5e0WnE41Fg 9tBL1kbq+G+jj/uiF5j0Tz+c6ZQ8i9i/bx4YqocbcOEapFs9zwChyatFbxrXH/1fQ4+2 fl50FwL21YZTXg7HZ8A6l356xUBiUU09U7PEgwsrKbcJGXpgPdXFBRwlqdZ7uh71rFy3 51ywX+V+HHfaZAOXG//sMIFnf3ZouUjbUsOo79D6gw6bDD67IlvdT0ijEeCtcbSvwPv0 YmY1gSn9bUGUb9t5Na9q38xJDabGFNCIsa47X3gxPk/FlxK7dec2QToExizyXz4/XuhI Vwsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tR0Ia0+X; 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 y4si18898998pgl.19.2022.02.21.21.11.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 21:11:19 -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=tR0Ia0+X; 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 4C2D0CE919; Mon, 21 Feb 2022 20:44:07 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347478AbiBUJGj (ORCPT + 99 others); Mon, 21 Feb 2022 04:06:39 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:59660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348312AbiBUJCj (ORCPT ); Mon, 21 Feb 2022 04:02:39 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1862B2C106; Mon, 21 Feb 2022 00:57:54 -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 EC9D061152; Mon, 21 Feb 2022 08:57:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6E60C340EB; Mon, 21 Feb 2022 08:57:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645433873; bh=HKrIBi5m5CFXzZ+6/xBVUfB/8hJp8GunVilEDIKwwTQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tR0Ia0+XftoxZ2Nev8SPakCUk9LBtiQ2LkYGqgxi+G2dWHO9sIMj18JWG8NZsid41 4r2j4YnL1SOsGWRRpf4som3kDMZvRVgBNyhHqCir3JCAoVw/ZpNhbq9jJlSyeplN0m ibv3Ukrf0sRmFyOkIHScgwc1FxziZg6Y5+OqqDl8= 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 5.4 04/80] serial: parisc: GSC: fix build when IOSAPIC is not set Date: Mon, 21 Feb 2022 09:48:44 +0100 Message-Id: <20220221084915.714278330@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220221084915.554151737@linuxfoundation.org> References: <20220221084915.554151737@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