Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2319606pxb; Mon, 20 Sep 2021 18:42:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7uI3OcXm0VMMDdRRJrgUwUjnACCYJTUJuv2ULE3uH9RKvi46K9Pp3bgKpRVpQWrCqscY1 X-Received: by 2002:a92:c7af:: with SMTP id f15mr19666260ilk.64.1632188574087; Mon, 20 Sep 2021 18:42:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632188574; cv=none; d=google.com; s=arc-20160816; b=MRzKuocBQT628sRsw8ikSBsa+yNaGPzYLTGbOGnKyIwXvDPsEoQaXeNpbs6NOvqiXr ArT2wMVsTikSapHJm5k4lOC0X8sJCiITtp7Nw1+VnWM8XEV3zvLBHVRv5m8rbgknZzdk 1Q8pT92xaLnkj46kjk/1wf68H5umHx5VxCo4rRJS5O44gNZxkAou4nl2Ek2OdQ+WfBoC wjsKu8wOL3J1XsRtO+jZarxWAKgeeSZ60wO5qrxziNNXs0iIJazF1JjfeT1EhgG3qPFu hUBRnBr0Rbp8tACzwqaqh6fdSwyjHNjFhE+Ro3+V47Evx3SQIqTrupnFSGL/6niX61OU vuTA== 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=lcW38KorY1w0ueVzuSjj/yCbKBJeOedm/lfIVwNE2Dg=; b=ONUhHC6KOCzDCwHZMHzlivbz/EFcy4tjMqXLb1typXHELnlCcEaFHIP/f4xwLW7VRf LkRN6WLxwT3T263L47taOR7iXXKaTX7rRNOK8xke5XvCMNP0CSV18jqQTmAEaZfa/Me/ ebOGyx7S2NOdDps1iz6l9KmPuOnFa7FbeOq7a6EoJcjyXAO9pC5j/jq5C1+a0gYXr/NJ 9Q6yheCyUZ/Q6b83P5/BRMC+qoYcgWeYaQrr+FDxBMjS6LbJwp1/Em9X7IpYDcCZlVtd ZsIvxnrUYd13KLHEQqD60j5qbASUnzeY8NCS4fMRdA0zSeONQYBRn8G4WgzqGWf7R1D4 zTLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zmuQ4Odx; 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 s7si13914548ilp.105.2021.09.20.18.42.43; Mon, 20 Sep 2021 18:42:54 -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=zmuQ4Odx; 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 S242997AbhITQwM (ORCPT + 99 others); Mon, 20 Sep 2021 12:52:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:38528 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236965AbhITQti (ORCPT ); Mon, 20 Sep 2021 12:49:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D90186128A; Mon, 20 Sep 2021 16:48:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632156491; bh=4M6l8XnkxZIOgOak0YlBiTwRChEPn0n+I4psvZFEQy8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zmuQ4OdxurwOhtoDZl7fo7A2EMzWCEIJz1Fv34gjcmS9JJ36vKHi9AqL2rmq3EBmQ qYgn6BOd/tQH0SKI/KFTXr6AmnaBWdMzxhGTCdwPUK5wbmld/T/bezTgFyOUg6XZlI /L727vm53WiNdVU/9eRsPtC8JdWByJ89MQoKQX2E= 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 4.4 083/133] openrisc: dont printk() unconditionally Date: Mon, 20 Sep 2021 18:42:41 +0200 Message-Id: <20210920163915.357380022@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163912.603434365@linuxfoundation.org> References: <20210920163912.603434365@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 3fbe420f49c4..92cdc1e56b60 100644 --- a/arch/openrisc/kernel/entry.S +++ b/arch/openrisc/kernel/entry.S @@ -491,6 +491,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) @@ -504,6 +505,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