Received: by 10.213.65.68 with SMTP id h4csp249585imn; Fri, 23 Mar 2018 03:55:56 -0700 (PDT) X-Google-Smtp-Source: AG47ELs3bjVWfdzrQYBWVTKGsnqgiZGA2R+s8qyVM4yLmFLHeJHCzjh0x0CpT0xDFPmwi0o6xbXq X-Received: by 2002:a17:902:b43:: with SMTP id 61-v6mr28574537plq.270.1521802556042; Fri, 23 Mar 2018 03:55:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521802556; cv=none; d=google.com; s=arc-20160816; b=RlYGhEtEF7fqtBuWMJdSIjXFRZR9lPhK2nQly9o9cCASMCa3H7tl23Xj6HQfyhvnW3 /Mz4CwW9THmDPh+fOChQibGLnnSCOzBEiFTLIhKElwT8NC+rEu5z/Ga03c79gNxVqJtE gwvzeUAzBT1QoC7KDuQeqP7Lr6gkRkJi3oYjsyvFkBwWnxQBpLg+LFFRwatg9h4uVLhm b0p7pEO9xjdsdeOlCT+EWk0F+gAcXvXlmos0c0uVNxcdfcNuBGdt4/3u+2C0AVjJCXWO yq5mybAbJcZUf6AQpNwf/atIytqqhIZB4fcPVpvvbGs8BS1HET5NqNnY5Mfc0iMV9ql5 +32A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=qA6Ihn/V/+XUmttB7uBGo/VpxLCwxXFxPho49uvrBIo=; b=wrU36sQYk+KS+MctddIFn1+d2IR402Cu63x75bn3tUQ3PVPZkz22RfQFClaHwZMlKf kMm77PYwyQOCPr5vOzbcUCR5TCd+Rhd+9k+MkRhkcGC4x4lNguxxA2X+jTt03kooZPfT TqAiiNsyhMqRPMvv1wJQBVAdqKL+b07JMKAGkycScenXhCXGTb8F+aFJ2qkA3rXtQ36f JmXKzsK7HRxLwNzInwe2Ij+xz886WRjQcFqFHE51z4dkybjD6WE70Ark0haVrMsSSvrT WLFEsFPwxjFpXkjY5lMZPBOvkVd4vCObc7mwBgQ4d+IBXpyx4dIVRCRo2sNWiCtscnmE WK9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w2-v6si8618593plk.702.2018.03.23.03.55.41; Fri, 23 Mar 2018 03:55:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755916AbeCWKNl (ORCPT + 99 others); Fri, 23 Mar 2018 06:13:41 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:44890 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755901AbeCWKNh (ORCPT ); Fri, 23 Mar 2018 06:13:37 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id F23BF121B; Fri, 23 Mar 2018 10:13:35 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, rtc-linux@googlegroups.com, alexandre.belloni@free-electrons.com, Hans de Goede , Sasha Levin Subject: [PATCH 4.4 08/97] x86: i8259: export legacy_pic symbol Date: Fri, 23 Mar 2018 10:53:55 +0100 Message-Id: <20180323094157.982180842@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180323094157.535925724@linuxfoundation.org> References: <20180323094157.535925724@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Hans de Goede [ Upstream commit 7ee06cb2f840a96be46233181ed4557901a74385 ] The classic PC rtc-coms driver has a workaround for broken ACPI device nodes for it which lack an irq resource. This workaround used to unconditionally hardcode the irq to 8 in these cases. This was causing irq conflict problems on systems without a legacy-pic so a recent patch added an if (nr_legacy_irqs()) guard to the workaround to avoid this irq conflict. nr_legacy_irqs() uses the legacy_pic symbol under the hood causing an undefined symbol error if the rtc-cmos code is build as a module. This commit exports the legacy_pic symbol to fix this. Cc: rtc-linux@googlegroups.com Cc: alexandre.belloni@free-electrons.com Signed-off-by: Hans de Goede Signed-off-by: Alexandre Belloni Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/x86/kernel/i8259.c | 1 + 1 file changed, 1 insertion(+) --- a/arch/x86/kernel/i8259.c +++ b/arch/x86/kernel/i8259.c @@ -418,6 +418,7 @@ struct legacy_pic default_legacy_pic = { }; struct legacy_pic *legacy_pic = &default_legacy_pic; +EXPORT_SYMBOL(legacy_pic); static int __init i8259A_init_ops(void) {