Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5988379ybc; Wed, 27 Nov 2019 12:59:35 -0800 (PST) X-Google-Smtp-Source: APXvYqwFPjoYEPiock8Lo4HB+/trPdON3hAIZXx0pNr5xvrmQT8/ikzW3RLohZvpHMmZ1GGqFy40 X-Received: by 2002:a17:906:3919:: with SMTP id f25mr51922322eje.210.1574888375809; Wed, 27 Nov 2019 12:59:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574888375; cv=none; d=google.com; s=arc-20160816; b=xFoHeRTzO+6uMdHONt1BQfNlcp7ru6j1sd9OuiBE6+AUtdzlvhE5Zh+kIlDyzyXddi VAmg/EIx4EcKgOa2h5Pnw/29GMeULOhapU47n1NnVO1YVHwPCVsnRlLdUZmv8lThwQAM mPFCeefvSb5ZxUaqAZzIZ26GUt4NEq2s8prGf24x+c5pdmjhxEOTWDMIZzQllZmkmKVM PojewNsNSNIIzHpeysh5L4NgkcjdOHhNl4Or8hWw3AcBM9K0DdUVEc/MydWP+mbJegnH 65ATqlhEabIV67CkAy2c0/F3mduQqWVOyq3pE3O6NYtU5tEShcd23bkQnSkPLB9bXYZY FpHg== 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=1+S1qWJhzI32ZqWafA6IcLhUe8RREaZz4cwOj9x1YvA=; b=cR6OksemDxVUfaI7+/ncoVtDeeB9E34lDdtohjl1wjO3IKu5Zbil12EC9+rIUVgZm6 Nj7ShqGX9q7vt965BKw6Wbu3hXiDWVxPCYcIN32efTz2OhzZrgy7U8Hu1PTFo+sVwt0I s8Mq/vFf3RXYdlgCreI9P+PQXuewoJL5WTde0CkNtLkLPD4U3qGDj/Gd3I1vi5iYKdiW tL6RLgij/QemxOty8Bcxix+KTpy5XM7hT+ivVbJZ5CNN4OdVprvWuoGePfN1p+G6mVy9 1tCoOYouCbkDhdOtwpc3g10j5Tntc3NS2ZtLtNjDyhGU9GIO6CHCrTxc10cT8DL9w3Ux FdXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=T7EgxXbL; 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 sa8si4157204ejb.279.2019.11.27.12.59.12; Wed, 27 Nov 2019 12:59: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=T7EgxXbL; 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 S1730374AbfK0U4P (ORCPT + 99 others); Wed, 27 Nov 2019 15:56:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:47000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730746AbfK0U4N (ORCPT ); Wed, 27 Nov 2019 15:56:13 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 EB057215F1; Wed, 27 Nov 2019 20:56:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888172; bh=4Bq9zUx7ceP48+ET5OQc8d7++KgI10SHReEseY/1MN0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T7EgxXbLx+BN8oZ4RBi7M08M4v5bVTFntMVsO5UxlxF6YW+IBvUFkGDdHE/zHVqsp fzM2tRET1FE4BbRr4c9S/B6gL5aRnyn4EoXMApyP9+zMtIKc+VG/Chze71uveAPfr1 bqIzkKT84ldLXefJeWQ7gn0duJDboci1Q5ufSEBg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Joel Stanley , Michael Ellerman , Sasha Levin Subject: [PATCH 4.19 032/306] powerpc/boot: Fix opal console in boot wrapper Date: Wed, 27 Nov 2019 21:28:02 +0100 Message-Id: <20191127203117.097130733@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Joel Stanley [ Upstream commit 1a855eaccf353f7ed1d51a3d4b3af727ccbd81ca ] As of commit 10c77dba40ff ("powerpc/boot: Fix build failure in 32-bit boot wrapper") the opal code is hidden behind CONFIG_PPC64_BOOT_WRAPPER, but the boot wrapper avoids include/linux, so it does not get the normal Kconfig flags. We can drop the guard entirely as in commit f8e8e69cea49 ("powerpc/boot: Only build OPAL code when necessary") the makefile only includes opal.c in the build if CONFIG_PPC64_BOOT_WRAPPER is set. Fixes: 10c77dba40ff ("powerpc/boot: Fix build failure in 32-bit boot wrapper") Signed-off-by: Joel Stanley Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- arch/powerpc/boot/opal.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/powerpc/boot/opal.c b/arch/powerpc/boot/opal.c index 0272570d02de1..dfb199ef5b949 100644 --- a/arch/powerpc/boot/opal.c +++ b/arch/powerpc/boot/opal.c @@ -13,8 +13,6 @@ #include #include "../include/asm/opal-api.h" -#ifdef CONFIG_PPC64_BOOT_WRAPPER - /* Global OPAL struct used by opal-call.S */ struct opal { u64 base; @@ -101,9 +99,3 @@ int opal_console_init(void *devp, struct serial_console_data *scdp) return 0; } -#else -int opal_console_init(void *devp, struct serial_console_data *scdp) -{ - return -1; -} -#endif /* __powerpc64__ */ -- 2.20.1