Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3427885imu; Sun, 11 Nov 2018 14:52:35 -0800 (PST) X-Google-Smtp-Source: AJdET5dZeOGfqkjfINCJsC7LS8s/h2wrPxqb9/tExMEamiCHREDWj5h+JPM9sIQyHs/LDXYSZ/nZ X-Received: by 2002:a62:6e47:: with SMTP id j68-v6mr17761095pfc.197.1541976755797; Sun, 11 Nov 2018 14:52:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541976755; cv=none; d=google.com; s=arc-20160816; b=EaWNsDKpo5riWT/KMKMd3JRWatLu6n9KowqxizFiTauqQpmhtj3IDA/ThKK7P5ow/i L75sh2BAPUIOa0t6D/DZtawx9MQTxovORMplgvTrL6FBoEL6wYpZ8nPc2HL5eZqclBg8 hRo7gKLd63k/iGN60KypsV3AFONIX1U2qldrN1gofFdlN3nqKsd9Jux8ijZMaJe/Vssx BZviHD7xcWDWecXC5IeEBckWBw0y3ulUla6SeEhp5Or7v+h82wvGu5xslAyMf49kRPjv Qf5Rx+zsfS/MjSoaytkZ+GCCQ/sj72ouHkBz5K+eSn1HzyHI4tHRh0C+RRZgux2Fptdz TJfQ== 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=0Nv7vvmQ2e1s55Mk8ticXBFBZbKqIkOe7tZGUttuey0=; b=Mq6DPWI9hftLYB/8I1fGNCeV3coMRBAAvNLsZJ2VGlzsV0tYNa2k3il9h2RBYpwaq5 BwpQmyyCELrO7NxK7nJiSUugBT+9DxikCsbOxlVdOR8MAOxeApuMvHr0G/tj994MuaAP KcnC4GRkiK/doA9p8PIeAxVTbAddIq3g+s8n5Vgh/CO4FRoXwaCkpC0F50pRCukEwgek RdflZLGC/4K4TO0k8rsCGslqAShTQq9t/+gP0HcZ+vnY2mJYJpz+u8CVpV2xxCDlXxj1 5r8Wgc8Ki3LdCQvRddHo05D2s8XPmGYjnGHXwVms/vM7h4q54E+Tw+USgbRKHzfIAwkM rlcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GloZYgTH; 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 m3-v6si15905205pld.435.2018.11.11.14.52.20; Sun, 11 Nov 2018 14:52:35 -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=GloZYgTH; 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 S2404135AbeKLIXF (ORCPT + 99 others); Mon, 12 Nov 2018 03:23:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:54672 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404047AbeKLIXB (ORCPT ); Mon, 12 Nov 2018 03:23:01 -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 605A3208A3; Sun, 11 Nov 2018 22:33:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975584; bh=4zgveZXYS+Ib37MQPtgygoL9zzyL5ZpBRtrLvr0WzLs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GloZYgTH1u9A8jmnp2nzUFruJQTWjqQMlLTJ79VM9GRSEO+W414nwrtD965n1Xn3L BYAfn5dzMOWAXwHx2deIavjPUXULf08i3by0DfCEKyY3rAzVPbutI4gpbCpsYGuue4 zibvNudl0glvAD1Kd/8ezNvWqKrk054Iy6m7J5So= 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.14 176/222] powerpc/msi: Fix compile error on mpc83xx Date: Sun, 11 Nov 2018 14:24:33 -0800 Message-Id: <20181111221702.843552688@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221647.665769131@linuxfoundation.org> References: <20181111221647.665769131@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.14-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