From patchwork Wed Aug 7 15:10:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 11082365 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 14A7B1395 for ; Wed, 7 Aug 2019 15:10:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 048F028688 for ; Wed, 7 Aug 2019 15:10:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC8C328832; Wed, 7 Aug 2019 15:10:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 728B228688 for ; Wed, 7 Aug 2019 15:10:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=o2C8OjZ4lCUOIlwklKMlSDZiOSJP+wl4jjM0ILC7LOQ=; b=k3tbAxWZCrgY/S H3z+5zXt9dkwW/gCqm+rs9FsigAawBMzU2gXG0bwR+bxEYuvr4or4Vfv1zrWXXkI5hhB7D8XtNvX7 n59/LBgjIxVwppllP28amKDwdsmVYkPrh6R7xjatmGVPSBYS9AoWxkMItXjHG9VmzN1nTplj5MaBY xSCdrsNvD6CMf50f1XlYEGLhQwR2Vxo37RpBpkHivLTOZhCvMdyeyZYAz5Xhr/T3yUj5Rvt07e+Co lHQH0kaG2UsSTt92HzU5PxiWLTdDpK/m80lqhU0fsHyIsJ0O0yvvDludUM5JmpdzuOxLYXGVcn5pi nx2y1EZh3L6CqOa59cDg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hvNZu-0004EK-2j; Wed, 07 Aug 2019 15:10:14 +0000 Received: from [195.167.85.94] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hvNZr-0004E4-IF; Wed, 07 Aug 2019 15:10:12 +0000 From: Christoph Hellwig To: palmer@sifive.com, arnd@arndb.de, gregkh@linuxfoundation.org Subject: [PATCH] riscv: move sifive_l2_cache.c to drivers/misc Date: Wed, 7 Aug 2019 18:10:09 +0300 Message-Id: <20190807151009.31971-1-hch@lst.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Sender: "linux-riscv" Errors-To: linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The sifive_l2_cache.c is in no way related to RISC-V architecture memory management. It is a little stub driver working around the fact that the EDAC maintainers prefer their drivers to be structured in a certain way that doesn't fit the SiFive SOCs. Move the file to drivers/misc and only build it when the EDAC_SIFIVE config option is selected. Fixes: a967a289f169 ("RISC-V: sifive_l2_cache: Add L2 cache controller driver for SiFive SoCs") Signed-off-by: Christoph Hellwig --- arch/riscv/mm/Makefile | 1 - drivers/misc/Makefile | 1 + {arch/riscv/mm => drivers/misc}/sifive_l2_cache.c | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename {arch/riscv/mm => drivers/misc}/sifive_l2_cache.c (100%) diff --git a/arch/riscv/mm/Makefile b/arch/riscv/mm/Makefile index 74055e1d6f21..d2101d0741d4 100644 --- a/arch/riscv/mm/Makefile +++ b/arch/riscv/mm/Makefile @@ -11,6 +11,5 @@ obj-y += extable.o obj-y += ioremap.o obj-y += cacheflush.o obj-y += context.o -obj-y += sifive_l2_cache.o obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile index abd8ae249746..886d48301e8e 100644 --- a/drivers/misc/Makefile +++ b/drivers/misc/Makefile @@ -59,3 +59,4 @@ obj-y += cardreader/ obj-$(CONFIG_PVPANIC) += pvpanic.o obj-$(CONFIG_HABANA_AI) += habanalabs/ obj-$(CONFIG_XILINX_SDFEC) += xilinx_sdfec.o +obj-$(CONFIG_EDAC_SIFIVE) += sifive_l2_cache.o diff --git a/arch/riscv/mm/sifive_l2_cache.c b/drivers/misc/sifive_l2_cache.c similarity index 100% rename from arch/riscv/mm/sifive_l2_cache.c rename to drivers/misc/sifive_l2_cache.c