Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp291005pxb; Thu, 12 Aug 2021 16:44:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/L2jCayL1NcMLGvNIkoOiokjegOEDBuvWQNVa7lDiVtnAC3cOAX2f14IXogntY3IWwwjR X-Received: by 2002:a02:a581:: with SMTP id b1mr5929768jam.84.1628811887402; Thu, 12 Aug 2021 16:44:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628811887; cv=none; d=google.com; s=arc-20160816; b=X1RQmFWnPvWdWRzF86UIT0PO1CLuvC1IiJA7ENKHPfu5cmIZvZVKMblTheD8AoL3GI +Xmcy2QBiCWlE/MfO8Q0bLYIRmhE1bsD2vbOhxDIMiY7cUHoagBDSxpqXvl+8ZcG7j9c 8HfqlRqQqyZ549uP1HxI0AIeYadHxoAIxIitjFJOE6qkShIhNH8w2UtIa7ef5ZlIs2fm 6w4ZhEGIfZHKaSXSGuPqYMHDitLrGzFyGeEfq3pTieqwXoBVlnh+pXw2w5Pm2BZY8nTr V1EVSFfGkftq+Lg28USw8U9yFGxwd4716GaKhNRsPX4zBIez5i4uI7R06ZcwuSC+9sia VYdQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8xmQU91VQ1WFnJxXl2kf7guFwNsg5CoaUoLOrcmwGeI=; b=f/btBh3rmCvZI5jZWcK+hxzLYv09itPaB1UxNRFVZ8KLTIWk3JnIkzWt/qXlSZHB6N IGL1NS+R+8DIvdchR2wa/dzfd1XxxzT37Qkuz1OpYguk1XU//G396em/+OjKM724xhZ5 ncsD1iJ4yaeO399b8SndGl/ZQbAhgytYaYJ2ptDYauJ8Qwcac7J4oZpJ+eDwSPHJgBFV SdtiImc7IybGPiuasHWx+bRlPVfsz8k5ZoP2ZlRfXC+94fHd98Q/diJCd9IpLmI9A2vq Gf17y0ZPc7tfEoaN6vUq0JUilri0MrMxCQLJyvm1zZ9vvF4otlBL02DQkhj1NUSWieKx oAcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="QWX4/XqT"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 10si4548156ilq.145.2021.08.12.16.44.36; Thu, 12 Aug 2021 16:44: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=@kernel.org header.s=k20201202 header.b="QWX4/XqT"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238448AbhHLXi2 (ORCPT + 99 others); Thu, 12 Aug 2021 19:38:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:48678 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229703AbhHLXiY (ORCPT ); Thu, 12 Aug 2021 19:38:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 77E26610A7; Thu, 12 Aug 2021 23:37:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628811478; bh=EzG5ZCaN0Ov/2bBrqjCJNBMDzydYaPitAAplmJJosTQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QWX4/XqTEYX3uK7kYwjc64idMadI7TWJKNlhgJxfe+uTnye9wMyCedpg3BohCpUEZ Cw519zJ2THhizOzD5E8kB9KiYcb4EeXRYG3k4yb2ANwFQJBHsKI0N+gM0IrJbinlQs 40c7rNVVTc7tnjJNy2IKKz9pJrBTzyw6Oe9RDBmNEkkxugYcMEEmTUUQCnaagkiFKs cQ28PAGRMSzWHrkYd7KohwInsnhgLgzs9Z3xDugDQWaXqM0GF2mJqI4xOYzkB+lEJD gwuMSRJ8T+UAmNro6UggatV1907Rej9TM2BAnvdDGHXat3YUoMD61lKQqn1RUM4S+7 oOJab22wO8s6A== From: Vineet Gupta To: linux-snps-arc@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Anshuman Khandual , Mike Rapoport , Vineet Gupta Subject: [PATCH v2 03/19] ARC: mm: move mmu/cache externs out to setup.h Date: Thu, 12 Aug 2021 16:37:37 -0700 Message-Id: <20210812233753.104217-4-vgupta@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210812233753.104217-1-vgupta@kernel.org> References: <20210812233753.104217-1-vgupta@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Vineet Gupta --- arch/arc/include/asm/cache.h | 4 ---- arch/arc/include/asm/mmu.h | 4 ---- arch/arc/include/asm/setup.h | 12 ++++++++++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/arc/include/asm/cache.h b/arch/arc/include/asm/cache.h index d8ece4292388..f0f1fc5d62b6 100644 --- a/arch/arc/include/asm/cache.h +++ b/arch/arc/include/asm/cache.h @@ -62,10 +62,6 @@ #define ARCH_SLAB_MINALIGN 8 #endif -extern void arc_cache_init(void); -extern char *arc_cache_mumbojumbo(int cpu_id, char *buf, int len); -extern void read_decode_cache_bcr(void); - extern int ioc_enable; extern unsigned long perip_base, perip_end; diff --git a/arch/arc/include/asm/mmu.h b/arch/arc/include/asm/mmu.h index 38a036508699..762cfe66e16b 100644 --- a/arch/arc/include/asm/mmu.h +++ b/arch/arc/include/asm/mmu.h @@ -64,10 +64,6 @@ typedef struct { unsigned long asid[NR_CPUS]; /* 8 bit MMU PID + Generation cycle */ } mm_context_t; -void arc_mmu_init(void); -extern char *arc_mmu_mumbojumbo(int cpu_id, char *buf, int len); -void read_decode_mmu_bcr(void); - static inline int is_pae40_enabled(void) { return IS_ENABLED(CONFIG_ARC_HAS_PAE40); diff --git a/arch/arc/include/asm/setup.h b/arch/arc/include/asm/setup.h index 01f85478170d..028a8cf76206 100644 --- a/arch/arc/include/asm/setup.h +++ b/arch/arc/include/asm/setup.h @@ -2,8 +2,8 @@ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ -#ifndef __ASMARC_SETUP_H -#define __ASMARC_SETUP_H +#ifndef __ASM_ARC_SETUP_H +#define __ASM_ARC_SETUP_H #include @@ -34,4 +34,12 @@ long __init arc_get_mem_sz(void); #define IS_AVAIL2(v, s, cfg) IS_AVAIL1(v, s), IS_AVAIL1(v, IS_USED_CFG(cfg)) #define IS_AVAIL3(v, v2, s) IS_AVAIL1(v, s), IS_AVAIL1(v, IS_DISABLED_RUN(v2)) +extern void arc_mmu_init(void); +extern char *arc_mmu_mumbojumbo(int cpu_id, char *buf, int len); +extern void read_decode_mmu_bcr(void); + +extern void arc_cache_init(void); +extern char *arc_cache_mumbojumbo(int cpu_id, char *buf, int len); +extern void read_decode_cache_bcr(void); + #endif /* __ASMARC_SETUP_H */ -- 2.25.1