Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1529134pxb; Thu, 16 Sep 2021 09:18:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWxg3u/7qi5LRIVVRJGKen94yOYkKNywEwiXIWFJ1rox4ayTbApRy7Z/NHhOn07HwBrxE6 X-Received: by 2002:a17:906:f11:: with SMTP id z17mr7288536eji.385.1631809088768; Thu, 16 Sep 2021 09:18:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631809088; cv=none; d=google.com; s=arc-20160816; b=F2kx/+je9wWKUVSrzOGhcMsdN91AQZv6sgtqXIZHS34uL9sPHUX99T5WErY/WN5lqM sZ7e/uI+0iRr+ljcCZDldxeNkwvYJT0BxxeZWAP9ub2UpGEjHmEQkTif8FQbnMEQjC3p vnGd51nsAGNjxY/2/WhFn8jDBPEkrn/Ox6ttwik1ZD9yJNowX3hT1zBhEN4nVXBWOg1z OVHHAp449FcM8nxgb2oRqFSNsaMsh8L6z/jIagORtJ5SK/XZuFXM9pcC67Y7it9zd2pm TTSAhcGcI/RTnlwWWH3VbD4lPDnduKE/rhdHD8WrXdDFo2tZADRaRHZ/plXPIc5Jb5sp 8pQQ== 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=/wWYJRXGNZU42FY8PuB8TsDlYeqjGndkxPUoOD15CVk=; b=0WhYXRdXjSlPu20YK5KYiBWdYXydO5v+mHFTP4/28fTZSYfyrwp4N0oUg8QYM6XJv8 OL386pRTRNCwYEL/resoUzcScgxN3BGM63ZZLhwID3NoB0VH5dztfKnUZZzC1eHwqK2g /oSHWQMhD0r7Z99NIETF3i3qGS58tKbJMooRDPtB15qrnr+NsEfYN1J1VfQZ+X+mtpco BXOoFH1H7QuTXRNF+sRzTpmaHXQMScWZYtN1VmWdD7o8Hjq8MmxxqC9+qVvx6gwDO5Rj 0fU+L97oGMne1j171wGKJUvy+fqAgJwNBCi4pbvtZI9mqX+Uc1c7jiGvoU/TN2UU4PBY utjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zSPAMesl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 1si3935476edv.359.2021.09.16.09.17.45; Thu, 16 Sep 2021 09:18:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zSPAMesl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239273AbhIPQQ2 (ORCPT + 99 others); Thu, 16 Sep 2021 12:16:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:48684 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233448AbhIPQJX (ORCPT ); Thu, 16 Sep 2021 12:09:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C3B0D61130; Thu, 16 Sep 2021 16:07:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808477; bh=lImvXFqv8F4CpYEnM2+99TdewWuYd0/Ydfc+dsWapjY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zSPAMeslndbyL+wzy/G4H1HoTN5SQXLZ+Kq3/n9mQXvvc81N6l9mfS5L+KK4eQLot VQWiN6GlcxSjcceih/+gthaQpqEQUSuymvtVkfesxknSfFoYa8HNOCF0wKjRLgclJY JEO7R1j0tacZ6U0JeihGm8IU9P9WC0M0CiNJYmXU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , kernel test robot , Jonas Bonn , Stefan Kristiansson , Stafford Horne , openrisc@lists.librecores.org, Sasha Levin Subject: [PATCH 5.10 073/306] openrisc: dont printk() unconditionally Date: Thu, 16 Sep 2021 17:56:58 +0200 Message-Id: <20210916155756.548794542@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap [ Upstream commit 946e1052cdcc7e585ee5d1e72528ca49fb295243 ] Don't call printk() when CONFIG_PRINTK is not set. Fixes the following build errors: or1k-linux-ld: arch/openrisc/kernel/entry.o: in function `_external_irq_handler': (.text+0x804): undefined reference to `printk' (.text+0x804): relocation truncated to fit: R_OR1K_INSN_REL_26 against undefined symbol `printk' Fixes: 9d02a4283e9c ("OpenRISC: Boot code") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Jonas Bonn Cc: Stefan Kristiansson Cc: Stafford Horne Cc: openrisc@lists.librecores.org Signed-off-by: Stafford Horne Signed-off-by: Sasha Levin --- arch/openrisc/kernel/entry.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/openrisc/kernel/entry.S b/arch/openrisc/kernel/entry.S index bc657e55c15f..98e4f97db515 100644 --- a/arch/openrisc/kernel/entry.S +++ b/arch/openrisc/kernel/entry.S @@ -547,6 +547,7 @@ EXCEPTION_ENTRY(_external_irq_handler) l.bnf 1f // ext irq enabled, all ok. l.nop +#ifdef CONFIG_PRINTK l.addi r1,r1,-0x8 l.movhi r3,hi(42f) l.ori r3,r3,lo(42f) @@ -560,6 +561,7 @@ EXCEPTION_ENTRY(_external_irq_handler) .string "\n\rESR interrupt bug: in _external_irq_handler (ESR %x)\n\r" .align 4 .previous +#endif l.ori r4,r4,SPR_SR_IEE // fix the bug // l.sw PT_SR(r1),r4 -- 2.30.2