Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3469534imu; Sun, 11 Nov 2018 15:49:51 -0800 (PST) X-Google-Smtp-Source: AJdET5dYLYX5oQZJcujNTbGfm24TPAxhRQGsBhEl5BCuOtwRK75wRz+lqEseTjOMmKSW0po/KBgq X-Received: by 2002:a63:81c7:: with SMTP id t190mr15725600pgd.393.1541980191873; Sun, 11 Nov 2018 15:49:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541980191; cv=none; d=google.com; s=arc-20160816; b=IOepLed06ZDBjV7xXcov8D7CfVr+m3SjkL/fq44qxpa4FR8XNwoQcJNnUj3DMC2Cbs lmBfihnpo0aMe0pKO3PfypzAQVggImW+Jh0H4KA2WUDq39cUDQV1xJofPrMNQPOtgee3 Ok/G1Thm8qs788xJKAizr0pE1Tfa2UtsgyZKM91qQI6Al4eP9rP6sABE3S46AsqyO1Gc JJY4NpxWc04Z4vWVbXtHiDbNeSmROvzRP12ZBfV0s+mqrFmU5va/nyXsLP701c96HtD7 tlIIjtiRyiiYwFEXIiP0csqjm6bKs04sLtGuIZ4DsDkNo1C2zhtk2fDPq7ci6K7h3NYz JUxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0Pi30iEHFb9/fwHetvgEN2D+AzWHr94hXu/gBywCVp4=; b=nOf/PM18fT0p64zRAyZa7OzM4iyOuXsybgfgjyGMAJHF9afuoqLIeW1nJ4SMqsHrM/ 5+7Junqp7tCUqkB7K3ZGcw3gbjrFUY+07DnGj+pFm2GD9GVmFSGDj3fQ6Iv2gaV+e1t6 Yf4uFcymnkj1e3axIBzP59QtZfhjlt4A4NFmJTRJR9VhIJoetPjNBanI3hWdGRaZhjdo 9u0rIfDSfwcoggZtwP22E/EylBe9oKAtBbucW0CBLqF3UG9MZdlNGIowwxyUTyPcfPDp xpKuwzX+BAz9O4+5R+u5cUuatipH7LoLf1VaV/mr1swPCvoIACzMo53JRT6a7rNX1czY Pk7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rlWkhyp+; 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 bf10-v6si15210920plb.200.2018.11.11.15.49.37; Sun, 11 Nov 2018 15:49:51 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=rlWkhyp+; 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 S1733050AbeKLISk (ORCPT + 99 others); Mon, 12 Nov 2018 03:18:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:38130 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733012AbeKLISj (ORCPT ); Mon, 12 Nov 2018 03:18:39 -0500 Received: from localhost (unknown [206.108.79.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7A4AA21780; Sun, 11 Nov 2018 22:28:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975323; bh=NwAUMyYhCtr4jqBIcGaxnqHkfdtXuG7XVG7Hu70S4Yg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rlWkhyp+e6HYKxt/kdF2fJ5MwGG98bXCPKlzs7FUjwow/vntzCsFeaJWjJhdp4rET YpZO2g3Lb8Bmf6visnPzXF79/5rbh3Pj4at2kBbkzsHdfsKg73ioLg8zHiZvOXo+CE 0HKPDthBGJX6pqkuiu/NeqLqsdLzIxVB5fJ9A50A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jia Hongtao , Scott Wood , Radu Rendec , Christophe Leroy , Michael Ellerman Subject: [PATCH 4.19 281/361] powerpc/msi: Fix compile error on mpc83xx Date: Sun, 11 Nov 2018 14:20:28 -0800 Message-Id: <20181111221655.901780771@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221619.915519183@linuxfoundation.org> References: <20181111221619.915519183@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Christophe Leroy commit 0f99153def98134403c9149128e59d3e1786cf04 upstream. mpic_get_primary_version() is not defined when not using MPIC. The compile error log like: arch/powerpc/sysdev/built-in.o: In function `fsl_of_msi_probe': fsl_msi.c:(.text+0x150c): undefined reference to `fsl_mpic_primary_get_version' Signed-off-by: Jia Hongtao Signed-off-by: Scott Wood Reported-by: Radu Rendec Fixes: 807d38b73b6 ("powerpc/mpic: Add get_version API both for internal and external use") Cc: stable@vger.kernel.org Signed-off-by: Christophe Leroy Signed-off-by: Michael Ellerman Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/include/asm/mpic.h | 7 +++++++ 1 file changed, 7 insertions(+) --- a/arch/powerpc/include/asm/mpic.h +++ b/arch/powerpc/include/asm/mpic.h @@ -393,7 +393,14 @@ extern struct bus_type mpic_subsys; #define MPIC_REGSET_TSI108 MPIC_REGSET(1) /* Tsi108/109 PIC */ /* Get the version of primary MPIC */ +#ifdef CONFIG_MPIC extern u32 fsl_mpic_primary_get_version(void); +#else +static inline u32 fsl_mpic_primary_get_version(void) +{ + return 0; +} +#endif /* Allocate the controller structure and setup the linux irq descs * for the range if interrupts passed in. No HW initialization is