Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp487381ybl; Wed, 8 Jan 2020 00:20:46 -0800 (PST) X-Google-Smtp-Source: APXvYqyJb/IaVo9FTpBZ9hotIPxgpQr9ea5BNWj9rO0KKyu/Wc3Af0vuLOLHHCqHAqJoP52Qw9Go X-Received: by 2002:a05:6808:658:: with SMTP id z24mr2237151oih.91.1578471646235; Wed, 08 Jan 2020 00:20:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578471646; cv=none; d=google.com; s=arc-20160816; b=X6RWJ10exEaZc4yB4UF/8O/n5fUsnTznaTUIsFhzUUQQZqT0E4j1B923l7xal71aE8 dUPkD9G/7RFYEvV/hR5ZyrZC1zralIthdC/nu5JuBUslP/Me9aakmh7dCIQ7+RC1ToFl 5uZIxz/Ihx1v0LOOMLLX3n+sgrP7g41NETOPqwptZTuEoyqZxTekmX9+YeSnIIPyJqz8 E/XA1EivprxrZK5RmoSj5Qco5HoNnwDxGYYdzS6vyH6pyZC9entsEZFsOW0XpzLSRgKp AlJVonQ3EwQBizcwpoIsRF+TUOCTzVXmvwPFjsuB348nyz7LkjrlG8C03n0L5DVSKLYL Go/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=abwTz2beL2gLghCfDY6LQgHixzJKFXuNxR9Ws8d7RDM=; b=s6+ZcUrVensEpy+13Bi4uyYg4fK3KL9zywsNZxte5RIFbNS2x6LJuGnWegUJRANBzm QhQeYajfGnZ4uJxdH9a5jfLFaw7shecmbDWhjGA0Jcs07X2wI0GMiWGwcgXomjhcSb7b Z+tX9aNThihMjfYZIJPpu5hCt6HNbAtc+kBCB0NUrxSBqr5WJWGcVaE3ZIGnefMsJWcp nT9AKeF3rtDWi85gsuVbrpwFUvBDVQfh6EsBMk4htm1HAp+CyNhLuu0AfqlkYXscEvD3 v8iktC/NyF/HZl+f1rA9EfyAhuGc2VG1pa/3TgHWProb+nbagKV5jvvhapXeE4FocDLQ 0i2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=aI0ASofZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9si1391454oif.92.2020.01.08.00.20.34; Wed, 08 Jan 2020 00:20:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=aI0ASofZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726945AbgAHIRd (ORCPT + 99 others); Wed, 8 Jan 2020 03:17:33 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:39304 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726290AbgAHIRd (ORCPT ); Wed, 8 Jan 2020 03:17:33 -0500 Received: by mail-wr1-f66.google.com with SMTP id y11so2340189wrt.6 for ; Wed, 08 Jan 2020 00:17:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=abwTz2beL2gLghCfDY6LQgHixzJKFXuNxR9Ws8d7RDM=; b=aI0ASofZ8Mua6VCbXQHpsVOKk4LmrksJUB9HHWJ4R//7YVTf+AUhqMkWJH0W9VehP8 hO4J7xnWfhFJ3/BjgARnjAydkUNLG6miKqZXznSTmYG7NbXK/nCVrNLCgMgMDgwZW17h //+Qlu+yDH80bAB+zotUnImUeyCrF9shYMSmq5TxYR+EcUA9NiQwKAyiiJ3qw9kw6LAY gdy7z21xh2Qa9I2UJPvmYXXDxdKMod6+yjf1nzPgX1eWzeSCDQhhxqEnQovgazaNQfCM qQBVz3rFWrQyGcD678n9tQ0zwItTkphu7bT8QJNWvgAOvheUlsYrjQA5omq0vUDdpVS1 gUXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=abwTz2beL2gLghCfDY6LQgHixzJKFXuNxR9Ws8d7RDM=; b=YNehIaCRdlz6rAEt2t0H+zsha5TYajG7pEtftN+xhACE5gvt5s4NtoG13gngDkbTnc cMFtA6Epx38gzEott2nfEGIfLLZHcQrvA7xrGIwHLLI3fvWj4lbHvW7nzoysBYGEr587 O48K/0PuDdN8lyUJ0WvxpqiyNSHIzrRhejW4u9W3iEMrq4TsLy0HmEux+EL5Hu3NguqT kCOzfGxR1l6g4NJYjrSuel6twujPOCUHGu9ryR4LLBp3drRn6Lnc++LoWoNMahwdfcGP dO/Yft87OLw5ht/LfuHWs8T5emmCgXr0BSlaM5joc+nh3USmYfbSHK22lfNf9brise1x TqDw== X-Gm-Message-State: APjAAAVcAgAOGfbcIuPGG+e4KRHIOmbAUIHY7NVUwuLCQOrBRSe+tPCZ b5k2GXV2CTi55xW/vzmAxETH9Z0Vr+h/iWqJWhFrPQ== X-Received: by 2002:adf:d850:: with SMTP id k16mr2893460wrl.96.1578471450572; Wed, 08 Jan 2020 00:17:30 -0800 (PST) MIME-Version: 1.0 References: <1578463746-25279-1-git-send-email-yash.shah@sifive.com> In-Reply-To: <1578463746-25279-1-git-send-email-yash.shah@sifive.com> From: Anup Patel Date: Wed, 8 Jan 2020 13:47:19 +0530 Message-ID: Subject: Re: [PATCH] riscv: move sifive_l2_cache.h to include/soc To: Yash Shah Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Borislav Petkov , mchehab@kernel.org, tony.luck@intel.com, James Morse , rrichter@marvell.com, linux-riscv , "linux-kernel@vger.kernel.org List" , linux-edac@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 8, 2020 at 11:39 AM Yash Shah wrote: > > The commit 9209fb51896f ("riscv: move sifive_l2_cache.c to drivers/soc") > moves the sifive L2 cache driver to driver/soc. It did not move the > header file along with the driver. Therefore this patch moves the header > file to driver/soc > > Signed-off-by: Yash Shah > --- > arch/riscv/include/asm/sifive_l2_cache.h | 16 ---------------- > drivers/edac/sifive_edac.c | 2 +- > drivers/soc/sifive/sifive_l2_cache.c | 2 +- > include/soc/sifive/sifive_l2_cache.h | 16 ++++++++++++++++ > 4 files changed, 18 insertions(+), 18 deletions(-) > delete mode 100644 arch/riscv/include/asm/sifive_l2_cache.h > create mode 100644 include/soc/sifive/sifive_l2_cache.h > > diff --git a/arch/riscv/include/asm/sifive_l2_cache.h b/arch/riscv/include/asm/sifive_l2_cache.h > deleted file mode 100644 > index 04f6748..0000000 > --- a/arch/riscv/include/asm/sifive_l2_cache.h > +++ /dev/null > @@ -1,16 +0,0 @@ > -/* SPDX-License-Identifier: GPL-2.0 */ > -/* > - * SiFive L2 Cache Controller header file > - * > - */ > - > -#ifndef _ASM_RISCV_SIFIVE_L2_CACHE_H > -#define _ASM_RISCV_SIFIVE_L2_CACHE_H > - > -extern int register_sifive_l2_error_notifier(struct notifier_block *nb); > -extern int unregister_sifive_l2_error_notifier(struct notifier_block *nb); > - > -#define SIFIVE_L2_ERR_TYPE_CE 0 > -#define SIFIVE_L2_ERR_TYPE_UE 1 > - > -#endif /* _ASM_RISCV_SIFIVE_L2_CACHE_H */ > diff --git a/drivers/edac/sifive_edac.c b/drivers/edac/sifive_edac.c > index 413cdb4..c0cc72a 100644 > --- a/drivers/edac/sifive_edac.c > +++ b/drivers/edac/sifive_edac.c > @@ -10,7 +10,7 @@ > #include > #include > #include "edac_module.h" > -#include > +#include > > #define DRVNAME "sifive_edac" > > diff --git a/drivers/soc/sifive/sifive_l2_cache.c b/drivers/soc/sifive/sifive_l2_cache.c > index a9ffff3..a506939 100644 > --- a/drivers/soc/sifive/sifive_l2_cache.c > +++ b/drivers/soc/sifive/sifive_l2_cache.c > @@ -9,7 +9,7 @@ > #include > #include > #include > -#include > +#include > > #define SIFIVE_L2_DIRECCFIX_LOW 0x100 > #define SIFIVE_L2_DIRECCFIX_HIGH 0x104 > diff --git a/include/soc/sifive/sifive_l2_cache.h b/include/soc/sifive/sifive_l2_cache.h > new file mode 100644 > index 0000000..04f6748 > --- /dev/null > +++ b/include/soc/sifive/sifive_l2_cache.h > @@ -0,0 +1,16 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * SiFive L2 Cache Controller header file > + * > + */ > + > +#ifndef _ASM_RISCV_SIFIVE_L2_CACHE_H > +#define _ASM_RISCV_SIFIVE_L2_CACHE_H > + > +extern int register_sifive_l2_error_notifier(struct notifier_block *nb); > +extern int unregister_sifive_l2_error_notifier(struct notifier_block *nb); > + > +#define SIFIVE_L2_ERR_TYPE_CE 0 > +#define SIFIVE_L2_ERR_TYPE_UE 1 > + > +#endif /* _ASM_RISCV_SIFIVE_L2_CACHE_H */ > -- > 2.7.4 > LGTM. Reviewed-by: Anup Patel Regards, Anup