Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3301556pxk; Mon, 21 Sep 2020 10:04:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyarOJqMcKgtJbW+DJTcMLTKLybzIAiV/yx22uIR2sIc5PmU9703KBEmdsSRqgLXMi4Qe5q X-Received: by 2002:a17:906:1186:: with SMTP id n6mr372497eja.331.1600707893258; Mon, 21 Sep 2020 10:04:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600707893; cv=none; d=google.com; s=arc-20160816; b=CNzHg8Z9+ZWN1Qzu2dxB8SUDlvaMo8jkebVrmho71Q034AKExLKScD6HgzAn/tQ/su lUJy3gaYlrcc0McbLlLITmX4pT/ojq+oOgKR8RspS2hzRDhozd15ZP+RqqZQWnJGr7w4 Dbf58TsGJ9TsZBhs1Lbthb6m94n0ttYm3ohYbC2RolqDfhsu4ilvbiDXdkC0mbDD08hr wP008PQzis4QHPi+PgEBZvuqCeXKdxDzxASq1VPEFF49djtc3HvMD9FmGbazpAChTnMR 5OrfuDcxqYEXKxs61/FeWTXAX+KNHARc7gmg2/PeJIhlDM2Lu/Z0KhdS88GBnEWnZZiN 0Xqw== 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=mH12s8BAJC79KiAoofYJ4jRVbTHoP9hnCruI2VMJDJk=; b=wcWQIS52NDQDR828wXaTWo/L5AeODYyP2aZh+H7xAiBbmI7QE/QLWp3jN0xVh3sO4F A4FlKH+fgTRbGK0Avo49zxq4ZAk2Z/a6waYbL+NBLboy4lvrNrad5JeIoCRWoN72AQtZ vhWJ8Yu/JJsyclf+sQEXJKCaqEr86FzZ6CRhvlsww40aMBccxpKKkZ8hQ0GcbKDVKb85 oRTVjeLvPXFpsbrQrusKuu6HoZ6kvCXFVkKmGpIvogcOwAR3Bvcl+1KhSj54EJF5CDW6 JQih5cUufkDYIhCWnKuCtgVW59aQaD5fLiEWctx6ZMnhPLQ+ba9a2Mz2qHiBZrd2XGq1 0Rug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PiNFUrfH; 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=fail (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 kt8si7728454ejb.503.2020.09.21.10.04.29; Mon, 21 Sep 2020 10:04:53 -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=@kernel.org header.s=default header.b=PiNFUrfH; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728650AbgIUQhT (ORCPT + 99 others); Mon, 21 Sep 2020 12:37:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:37280 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729034AbgIUQhJ (ORCPT ); Mon, 21 Sep 2020 12:37:09 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 2696E206DC; Mon, 21 Sep 2020 16:37:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600706228; bh=Y7DfL2QIoK+7AlOig5I7K0jPWLIoatifmL4WfTHq3TM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PiNFUrfH6TZmu+ZeTMhrmM4szmyh0XyUARs5klJCGgTBKyqig2/4DCZ3s+NQPrkhZ jfYCX7c0Zz2oNJ5VQuyqwurpnnmWuSQdgqNQdiSe0NXJTSY9LOxyQqZwHhqd7C4a5K 4Jbri4A1LBFqJ07wIjK6tylkIx32tzr3VFrkQvwY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Sebastian Andrzej Siewior , Vineet Gupta , Sasha Levin Subject: [PATCH 4.14 17/94] irqchip/eznps: Fix build error for !ARC700 builds Date: Mon, 21 Sep 2020 18:27:04 +0200 Message-Id: <20200921162036.345007680@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200921162035.541285330@linuxfoundation.org> References: <20200921162035.541285330@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: Vineet Gupta [ Upstream commit 89d29997f103d08264b0685796b420d911658b96 ] eznps driver is supposed to be platform independent however it ends up including stuff from inside arch/arc headers leading to rand config build errors. The quick hack to fix this (proper fix is too much chrun for non active user-base) is to add following to nps platform agnostic header. - copy AUX_IENABLE from arch/arc header - move CTOP_AUX_IACK from arch/arc/plat-eznps/*/** Reported-by: kernel test robot Reported-by: Sebastian Andrzej Siewior Link: https://lkml.kernel.org/r/20200824095831.5lpkmkafelnvlpi2@linutronix.de Signed-off-by: Vineet Gupta Signed-off-by: Sasha Levin --- arch/arc/plat-eznps/include/plat/ctop.h | 1 - include/soc/nps/common.h | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arc/plat-eznps/include/plat/ctop.h b/arch/arc/plat-eznps/include/plat/ctop.h index 4f6a1673b3a6e..ddfca2c3357a0 100644 --- a/arch/arc/plat-eznps/include/plat/ctop.h +++ b/arch/arc/plat-eznps/include/plat/ctop.h @@ -43,7 +43,6 @@ #define CTOP_AUX_DPC (CTOP_AUX_BASE + 0x02C) #define CTOP_AUX_LPC (CTOP_AUX_BASE + 0x030) #define CTOP_AUX_EFLAGS (CTOP_AUX_BASE + 0x080) -#define CTOP_AUX_IACK (CTOP_AUX_BASE + 0x088) #define CTOP_AUX_GPA1 (CTOP_AUX_BASE + 0x08C) #define CTOP_AUX_UDMC (CTOP_AUX_BASE + 0x300) diff --git a/include/soc/nps/common.h b/include/soc/nps/common.h index 9b1d43d671a3f..8c18dc6d3fde5 100644 --- a/include/soc/nps/common.h +++ b/include/soc/nps/common.h @@ -45,6 +45,12 @@ #define CTOP_INST_MOV2B_FLIP_R3_B1_B2_INST 0x5B60 #define CTOP_INST_MOV2B_FLIP_R3_B1_B2_LIMM 0x00010422 +#ifndef AUX_IENABLE +#define AUX_IENABLE 0x40c +#endif + +#define CTOP_AUX_IACK (0xFFFFF800 + 0x088) + #ifndef __ASSEMBLY__ /* In order to increase compilation test coverage */ -- 2.25.1