Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp2566017lkm; Mon, 20 Sep 2021 18:52:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwk875q03DQGCBxTOuzXuqqaNpkAaSOytBO6hLmt9FIuiJoWEtfu9vSI+EHbg1C1kxT0AgF X-Received: by 2002:a05:6e02:1a84:: with SMTP id k4mr12273859ilv.146.1632189047146; Mon, 20 Sep 2021 18:50:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632189047; cv=none; d=google.com; s=arc-20160816; b=Qd4/O3b6cSqH4F1ZbRvDPX+WimoR70lgrU/iKeyVZW/5mvYme/nCeU23zQ+zQVqg22 CYiqWQno+Bgbpu7zE6bAq58NdTACzeHXdVII+spssSOJPouAUs1AsjLzpiSnLen3Hy5h VmxizpXuOahL1ScpbpidsXlmL3dm1AzY8vIOzh8oEaT1Js72zLuTvlCke4lSADXaZjY8 0JGm8dkaPL3U/fU9axk+dqApRDZUG6YUUXlrkmcE7u9k+46lhiPKpA8PuuQm8/7H67r5 1T71Y95ndJT1pwZiJyINGMB0BvbnTEAFKVLl0ULR58tCLXa33m3pCcqerUJjtVjbxzRi HdXA== 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=KrtflvvfVulA58HDu7Lz/k4k3SDuwOs39ELRUGDQce8=; b=Cdi7/IpXRHPl8cYT/1TfZeh7702Snl5OjnDAph6nZYNZg4p0Kqr9iFcSThzE1Mj50Y O6n3ijzlGATkvrsujmv/njpznFl1qQKkE1Y+EMu7weJBPolIVErdfh6QSNQXwQz6ZBOT 07GqCVCnT4+pT/ADNRwJ3LqGSuSkbSgebiP2iiRklPXrM/5RVwWEtnq6i5ioxB/2kepF 8wUZCkQn7HJZNPkrDOLkIg7USfdW6lvI04IqxAnySvqgUYioP0NITS/RtxVbW3YiVKRn eWEbzlORDf3iWdWOnBOr4/EhQxGm/cp1zv9YgESQlhuzIeUtoUmutZVWZwtJU3RQiRYy Nclw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="afmaQ/RW"; 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 s7si13920150ilp.105.2021.09.20.18.50.36; Mon, 20 Sep 2021 18:50:47 -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="afmaQ/RW"; 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 S1347601AbhITSI6 (ORCPT + 99 others); Mon, 20 Sep 2021 14:08:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:33072 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357334AbhITSD4 (ORCPT ); Mon, 20 Sep 2021 14:03:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 27F0A63240; Mon, 20 Sep 2021 17:16:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158219; bh=AVKcTcYlNoH2NzjDSZ6G0EuI+eBeklxmc/2EmFipF28=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=afmaQ/RW4ypBL00dHJbp4ib8xrYHvt07IMhB34Dk1bJoyM9+UB8O3ZsNTgmxQBjGm 6p97iK/Log92XtljDlK+3U93XxDz/Q6fC/A46Wi3+zdgJuYuNQnq7MWkWrbsrbAV9G anM5RQpLJ22q6uF3FAW9kqWw9OB5opJgsRZ9xwBM= 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.4 048/260] openrisc: dont printk() unconditionally Date: Mon, 20 Sep 2021 18:41:06 +0200 Message-Id: <20210920163932.742513717@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163931.123590023@linuxfoundation.org> References: <20210920163931.123590023@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 c6481cfc5220..6b27cf4a0d78 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