Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1909243pxb; Thu, 16 Sep 2021 19:56:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwG5w55TpYA63x/DM3r+lvKnYfYH0ua7N224xmXwpjQOhtkr8/DfxFOmi0KnsTbL655G0iN X-Received: by 2002:a17:906:5f88:: with SMTP id a8mr10207359eju.564.1631847391863; Thu, 16 Sep 2021 19:56:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631847391; cv=none; d=google.com; s=arc-20160816; b=srD/3RO/sjbXmu5PqMCcWGxLOIk2uAVvVZdDXmorHIbBgKVK0clYvJUHuzsewNt6rd HJqgcbPvN8n416Jgerc/nDKB+gZqjkxcsWNhuPH9qQyi+sS93ZdhaZEZLCiIGFT2Rm6B EBJqvwMS/oWhCw3ybP1KTnBM5scPe6HAAcTa5BJMX228iTX5vKGW/dqzE6QJIk+8TIoA A/a6mQ6CMfOWgFIkadD3VTBz0LzupN3JBSZ//QqdGDxd2GeqkDLRcn1Nnbe6PO8nY9Xg s6WMcP9mrM/cNeODpLxLyW8GGycYsEMAs3QHEKqjJ+UWtisKQJ5Ktz0l4QLu2rCogHNg tqvg== 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=ppsbc3FFFnG6FXhCAmojdVhBGgDVXtJsxNhwaJN+TJ5FtCd95BZsnjXGuse/SljF92 BtTKEoTGZnVfl2EkTFsQjqGLwDyAE59ySLBFcuPMuS6fpiD8XSCQSfylLMup/lwZ22fE vPOM3ihEf2VugJAjMydwbY7bwZ+mtOJnpZqh9zTR9WNTwuXWp3+N6pzQd+R9cAypG42Q jn2X1tcvsJwp0x/J90CJR9i25jdM3ApZ4Pc+DiTsugQL0kr0aoS965K9Jbovekmjm0OG JJ8ZbXR8AWk9NBIwigyu3tjrb1yVPtOmu+VRyDDMf30s6nvTdp0C9+g5IKzjTVyKMYia 09Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pnkgQxNE; 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 dz15si787015edb.601.2021.09.16.19.56.06; Thu, 16 Sep 2021 19:56:31 -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=pnkgQxNE; 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 S1352173AbhIPRUq (ORCPT + 99 others); Thu, 16 Sep 2021 13:20:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:41022 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344405AbhIPRNX (ORCPT ); Thu, 16 Sep 2021 13:13:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 83AF861A3B; Thu, 16 Sep 2021 16:38:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631810328; bh=lImvXFqv8F4CpYEnM2+99TdewWuYd0/Ydfc+dsWapjY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pnkgQxNEdjW6ABNJrlhARGr3DRB6SATV+r2cEwXIMQEqaVRvFtIWaamuCVibqiErA WAmDnGi6TYe0Br3H16rg0CrRaiuxl1rvwHOuy6nQae3XiKpPFPKKlGvPyxXNLFy62M CnTwK86CWvkaHBNk0hdmtBw7gxvZ3dEPfVFvCRcw= 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.14 101/432] openrisc: dont printk() unconditionally Date: Thu, 16 Sep 2021 17:57:30 +0200 Message-Id: <20210916155814.205641252@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155810.813340753@linuxfoundation.org> References: <20210916155810.813340753@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