Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp395165ybl; Tue, 7 Jan 2020 22:10:27 -0800 (PST) X-Google-Smtp-Source: APXvYqzVUWjmeeHFleYAW8YUKUCW1Zbvpugp5hBl3RnujgnY7kGfmVJLgRepTnwbGHwCJ8XcX3dg X-Received: by 2002:aca:5d57:: with SMTP id r84mr1925209oib.42.1578463827391; Tue, 07 Jan 2020 22:10:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1578463827; cv=pass; d=google.com; s=arc-20160816; b=nTi5ihJ7r9hPbw8cBp/iCbwuISonesrGEuABWy6F4vrJUFRx+NpTu64YgG5+MGb29m A+wlm0dmuRneWO36VErmV9U/fARYArriLignwXaoXUp5VYIFfE8YwrotED0Kwaw8H2qr W778iqYYKC41kbVK2cveIMIUM9QHUkTcxh8FvaGNBszFCRnfpHW///xpjJjtjj1fkPvD 3zTgswvRCrfjimDgbwhgm9jJMfgikwURGMfs9jzwd4zp66s6S7iAsRcszkxdwpm2jfRy gao5YYC9VFz1qbzDewc/i6jrdwD1BvtEX1hMSIJ1eZZNBmheAFMTpKYJrVdjwGWq0vPu 91Pg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=peLYY282PBg7aicRw1OrSAXJys5aHQoyp7o10RRemB8=; b=NfAfEjTBNm3h20SPyGz3LbFw5y3HTujan4U+xMSGy+rScFJfv8s37lr6QRMiaGSrqI b/iWE+sKEYnFyrgMxVEfNOzxqHtuTerQM3G5loaff781eE9rsQR4ZCiX2NGZ4OFsbEso 91/F9bD3T5PYl+4g1pBWBg19XPrcbQPJv0OZUN9nbRCX1EJvyK+k2S+t2v+I+p0rACWf th5NRPQ7WVdSLuuN9cjEX+JInFl01cFYcNFjpsprQQJ5jAiZbiJZkqDz38fN8XSW3YCz qgAwuhWyYrWhRLKAqLx7QV/IUBtyPYLXkunl2u/jTBh04aImgo8m5PQQiw2CB6JEE0Uw 0c/w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sifive.com header.s=selector1 header.b=pISRR3lt; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); 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 b1si1241058otl.302.2020.01.07.22.10.13; Tue, 07 Jan 2020 22:10:27 -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=@sifive.com header.s=selector1 header.b=pISRR3lt; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); 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 S1726318AbgAHGJZ (ORCPT + 99 others); Wed, 8 Jan 2020 01:09:25 -0500 Received: from mail-bn8nam12on2070.outbound.protection.outlook.com ([40.107.237.70]:6123 "EHLO NAM12-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725773AbgAHGJZ (ORCPT ); Wed, 8 Jan 2020 01:09:25 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U2RpV9OQLCcWBAuHfyxVd6MiHjHWMWFPzqFlHr1VUFHwJWN/qQf7fb9sG6lBgoyY6hCv+CoXGWIcTGgfcDICXWbe6qcFtQv35loh5gkAdi6EKai9zrxXou3ceUCXAgyij8R5cKxHT+JFgjIZQEbsf8M9QuZewkqGQsiRp/VBSdEVTSDblW7/mJV135+E0OaHbKKVWTiz1wTIrCL/MF0cH4ugohXX43gyMtrhNFN0631vgYNd+RZ0H+xySi3ElQOkXMgzr/YFKc2DcLqSZl3XkAe/ItJt0gdHbFv9nkQdium4Szr+VRfqW42q0ANJxPkG3eCWaeYFxAmT6xOKkCOATw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=peLYY282PBg7aicRw1OrSAXJys5aHQoyp7o10RRemB8=; b=FIMi/OliCehzuZHOMURE0p24vhQqanWUMfMMx75W/fZ7FFTkP4j67IvkiSMBvp7LkubekehsArv78ckpW171Ug6pViiFAWfGma/wZMAiNvpCaZrL8FaILa1DZaQgcHEVyagYaWgpXl87Z2ySTiYslseun7wmQpn8pLkdNZ1tSraXT61mHh2ejt/uGk3GOD4+rRDu1wuScdRjUUdxlxvJ0grZyu3AIlaVbRwBViyP+N/lmBqrxR3Uz7oEFcfD5w2pdPx42GyUmt2Mmd8ijddqgyFSPnp+mgSSG0oX4letIOTQoKMUOv4AzbaCHc1rB+exhMUY+833r+By5Z2tjLlpJA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=sifive.com; dmarc=pass action=none header.from=sifive.com; dkim=pass header.d=sifive.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=peLYY282PBg7aicRw1OrSAXJys5aHQoyp7o10RRemB8=; b=pISRR3ltCMYpYi7WEFtPW/Yany0+9uV//gVbc8cy/CXKyxetANdRuCCGje1ZFzcONJmiAylB3oZa/OmHxZdxaS36H0yWcwo8PT+8P29qcqZnEUB9OHq0qLwH+Gx6Fyuo7j/vYrGCWmzbnz1Gc6+Eq+1pV++rNW6m/lPupDzmp0U= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yash.shah@sifive.com; Received: from CH2PR13MB3368.namprd13.prod.outlook.com (52.132.246.90) by CH2PR13MB3767.namprd13.prod.outlook.com (20.180.13.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2644.5; Wed, 8 Jan 2020 06:09:21 +0000 Received: from CH2PR13MB3368.namprd13.prod.outlook.com ([fe80::eccb:16ac:e897:85d5]) by CH2PR13MB3368.namprd13.prod.outlook.com ([fe80::eccb:16ac:e897:85d5%3]) with mapi id 15.20.2623.008; Wed, 8 Jan 2020 06:09:21 +0000 From: Yash Shah To: paul.walmsley@sifive.com, palmer@dabbelt.com Cc: aou@eecs.berkeley.edu, bp@alien8.de, mchehab@kernel.org, tony.luck@intel.com, james.morse@arm.com, rrichter@marvell.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, Yash Shah Subject: [PATCH] riscv: move sifive_l2_cache.h to include/soc Date: Tue, 7 Jan 2020 22:09:06 -0800 Message-Id: <1578463746-25279-1-git-send-email-yash.shah@sifive.com> X-Mailer: git-send-email 2.7.4 Content-Type: text/plain X-ClientProxiedBy: BYAPR08CA0035.namprd08.prod.outlook.com (2603:10b6:a03:100::48) To CH2PR13MB3368.namprd13.prod.outlook.com (2603:10b6:610:2c::26) MIME-Version: 1.0 Received: from betel.internal.sifive.com (64.62.193.194) by BYAPR08CA0035.namprd08.prod.outlook.com (2603:10b6:a03:100::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2602.15 via Frontend Transport; Wed, 8 Jan 2020 06:09:20 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [64.62.193.194] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0f547482-cd75-4838-62a1-08d794014db5 X-MS-TrafficTypeDiagnostic: CH2PR13MB3767: X-LD-Processed: 22f88e9d-ae0d-4ed9-b984-cdc9be1529f1,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:264; X-Forefront-PRVS: 02760F0D1C X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(366004)(136003)(396003)(346002)(39850400004)(376002)(199004)(189003)(52116002)(86362001)(2616005)(478600001)(16526019)(7696005)(316002)(26005)(186003)(8936002)(107886003)(4326008)(6486002)(2906002)(44832011)(7416002)(66476007)(66556008)(81166006)(81156014)(36756003)(66946007)(5660300002)(8676002)(6666004)(956004);DIR:OUT;SFP:1101;SCL:1;SRVR:CH2PR13MB3767;H:CH2PR13MB3368.namprd13.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: sifive.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SVmVN+zJ04bL+s/n3XjpSeKJa4KLBHjh+H2vyOfJt5tDyCXeIjtyorGAKBZJ2+eBqpi/p4WyWz0L0LdepjpuGiDNwqfP4wHVV7wedBxwmXwjpM7dGHFCT+e8GeeTKVmGjyejiOTW0P6wVO+dFA3YbuSw4EgPnfXJ5f9/AnOLQh+kDXli8EgzY+L6MnSp71L2PHUyzRyY8gxEs9+polgGOh29sqnqMG3UdbcM07HN6ttI6uCDaUKnLMmZGLseXY/+yqUsyFgICE0QOkWtIZVjpaS6Dlw7Oq6Xguv1g/Xl3R9mE5/jUOTLC3wuc9L5vvwatJEtbTw7QRHnLjhl10AerHNpQveqAtFUKcPvzB9WlZuFV1h4k592OCbz+BbdDt233XCF7ySe3hPtbwOAcbUAzcKbcN1hisaPNw05COvvFSkonksfOnoGeYWOgaSaywJC X-OriginatorOrg: sifive.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0f547482-cd75-4838-62a1-08d794014db5 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2020 06:09:21.7714 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 22f88e9d-ae0d-4ed9-b984-cdc9be1529f1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: mxDdelZdoNZ1OFbJSgE6LDRDaSWnsptMfcWiVeVUu7ceS+7jK4vnyvaDlPRjDW9Z9woILj9yPAW+Rm19vwWV1A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR13MB3767 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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