Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp483021pxb; Tue, 14 Sep 2021 01:57:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaXa4TbyugDh6hYh465+9mqfrCcg8XStZNwYIs/Lj64DQIiTweNS2pQ+ImdRO83/PMbmMS X-Received: by 2002:a6b:c8c7:: with SMTP id y190mr12538076iof.210.1631609840133; Tue, 14 Sep 2021 01:57:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631609840; cv=none; d=google.com; s=arc-20160816; b=x6JFyDCsMaWujqYl9u9xKzqJdk7fF6+JXiJw9+KO/0VIjsbLPxDjzFbeZIRv2w0xLs 0Wg9HKePbFXUCtE+MOIS4+92ANFp4hpjchpk5w8Mrkf9JkT1jGZsgk6ZYpHajM+Jw+tK bE3HVuBWeGhDHJul1n5LZ6EbMJpYpGfxQA+8gmuoIIeMr6VzTyS83E2zBIKGXYJEac8f 1wvdKEfPn2A0l0oAOt5TVr3aV3PNlh+iTjmGefWHff2EoGZOJeTc/zV3CK8f7b9iBLwN IiwiW/xAWik+ohQ3Y+ae+Rit3KInxm8usRGSueXdIYJVytR1Hx/rKMhE/GdFyMe29AAD EpOA== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=2fUSD3ztaLzjXJzOcbc41+6EHhdHOx1ZYm42P4Jf8YM=; b=wNL5Id3E0nyAIAgu6YaHuBQHnB6v71ajzzxKDiRK+U/Y0nt9DVQYHXOdkWjD8iY0wR kzhI//N4G6T+nr+oNVmPkPbLbqLGnjh7DVnqZK9KaRhEzDgOu4jKL/xAe+KuQe0x0iR4 Pc2rDCjp109fnj3kFbvcVIjJZYolPJwQXgGcZX435yCoPxM0v0XJw+S9t/ya5YhpUuiP zr1c9wzDbsdFHWAI4hb2hFSsXPKaGdrDiVL++sE+kMVWOwN+r9ZlKBnvZfm/zuroWG1z dlNQBZqcAs82lW6MbItU5iKsdHIdewhn9GDkMfiVZXjSGIhb5RSwSDgiLdvpOHqPHdnL kWwA== ARC-Authentication-Results: i=1; mx.google.com; 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=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b8si10475759ios.12.2021.09.14.01.57.08; Tue, 14 Sep 2021 01:57:20 -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; 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=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231219AbhINI5r (ORCPT + 99 others); Tue, 14 Sep 2021 04:57:47 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:3788 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbhINI5q (ORCPT ); Tue, 14 Sep 2021 04:57:46 -0400 Received: from fraeml735-chm.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4H7xwq1S5Mz67Y1y; Tue, 14 Sep 2021 16:54:19 +0800 (CST) Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by fraeml735-chm.china.huawei.com (10.206.15.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Tue, 14 Sep 2021 10:56:27 +0200 Received: from localhost (10.52.120.164) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Tue, 14 Sep 2021 09:56:26 +0100 Date: Tue, 14 Sep 2021 09:56:23 +0100 From: Jonathan Cameron To: Sasha Levin CC: , , Ben Widawsky , kernel test robot , Dan Williams , , Subject: Re: [PATCH AUTOSEL 5.14 03/25] cxl: Move cxl_core to new directory Message-ID: <20210914095623.00005306@Huawei.com> In-Reply-To: <20210913223339.435347-3-sashal@kernel.org> References: <20210913223339.435347-1-sashal@kernel.org> <20210913223339.435347-3-sashal@kernel.org> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.52.120.164] X-ClientProxiedBy: lhreml726-chm.china.huawei.com (10.201.108.77) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 13 Sep 2021 18:33:17 -0400 Sasha Levin wrote: > From: Ben Widawsky > > [ Upstream commit 5161a55c069f53d88da49274cbef6e3c74eadea9 ] > > CXL core is growing, and it's already arguably unmanageable. To support > future growth, move core functionality to a new directory and rename the > file to represent just bus support. Future work will remove non-bus > functionality. > > Note that mem.h is renamed to cxlmem.h to avoid a namespace collision > with the global ARCH=um mem.h header. Not a fix... I'm guessing this got picked up on the basis of the Reported-by: tag? I think that was added for a minor tweak as this went through review rather than referring to the whole patch. Jonathan > > Reported-by: kernel test robot > Signed-off-by: Ben Widawsky > Reviewed-by: Jonathan Cameron > Link: https://lore.kernel.org/r/162792537866.368511.8915631504621088321.stgit@dwillia2-desk3.amr.corp.intel.com > Signed-off-by: Dan Williams > Signed-off-by: Sasha Levin > --- > Documentation/driver-api/cxl/memory-devices.rst | 2 +- > drivers/cxl/Makefile | 4 +--- > drivers/cxl/core/Makefile | 5 +++++ > drivers/cxl/{core.c => core/bus.c} | 4 ++-- > drivers/cxl/{mem.h => cxlmem.h} | 0 > drivers/cxl/pci.c | 2 +- > drivers/cxl/pmem.c | 2 +- > 7 files changed, 11 insertions(+), 8 deletions(-) > create mode 100644 drivers/cxl/core/Makefile > rename drivers/cxl/{core.c => core/bus.c} (99%) > rename drivers/cxl/{mem.h => cxlmem.h} (100%) > > diff --git a/Documentation/driver-api/cxl/memory-devices.rst b/Documentation/driver-api/cxl/memory-devices.rst > index 487ce4f41d77..a86e2c7c551a 100644 > --- a/Documentation/driver-api/cxl/memory-devices.rst > +++ b/Documentation/driver-api/cxl/memory-devices.rst > @@ -36,7 +36,7 @@ CXL Core > .. kernel-doc:: drivers/cxl/cxl.h > :internal: > > -.. kernel-doc:: drivers/cxl/core.c > +.. kernel-doc:: drivers/cxl/core/bus.c > :doc: cxl core > > External Interfaces > diff --git a/drivers/cxl/Makefile b/drivers/cxl/Makefile > index 32954059b37b..d1aaabc940f3 100644 > --- a/drivers/cxl/Makefile > +++ b/drivers/cxl/Makefile > @@ -1,11 +1,9 @@ > # SPDX-License-Identifier: GPL-2.0 > -obj-$(CONFIG_CXL_BUS) += cxl_core.o > +obj-$(CONFIG_CXL_BUS) += core/ > obj-$(CONFIG_CXL_MEM) += cxl_pci.o > obj-$(CONFIG_CXL_ACPI) += cxl_acpi.o > obj-$(CONFIG_CXL_PMEM) += cxl_pmem.o > > -ccflags-y += -DDEFAULT_SYMBOL_NAMESPACE=CXL > -cxl_core-y := core.o > cxl_pci-y := pci.o > cxl_acpi-y := acpi.o > cxl_pmem-y := pmem.o > diff --git a/drivers/cxl/core/Makefile b/drivers/cxl/core/Makefile > new file mode 100644 > index 000000000000..ad137f96e5c8 > --- /dev/null > +++ b/drivers/cxl/core/Makefile > @@ -0,0 +1,5 @@ > +# SPDX-License-Identifier: GPL-2.0 > +obj-$(CONFIG_CXL_BUS) += cxl_core.o > + > +ccflags-y += -DDEFAULT_SYMBOL_NAMESPACE=CXL -I$(srctree)/drivers/cxl > +cxl_core-y := bus.o > diff --git a/drivers/cxl/core.c b/drivers/cxl/core/bus.c > similarity index 99% > rename from drivers/cxl/core.c > rename to drivers/cxl/core/bus.c > index a2e4d54fc7bc..0815eec23944 100644 > --- a/drivers/cxl/core.c > +++ b/drivers/cxl/core/bus.c > @@ -6,8 +6,8 @@ > #include > #include > #include > -#include "cxl.h" > -#include "mem.h" > +#include > +#include > > /** > * DOC: cxl core > diff --git a/drivers/cxl/mem.h b/drivers/cxl/cxlmem.h > similarity index 100% > rename from drivers/cxl/mem.h > rename to drivers/cxl/cxlmem.h > diff --git a/drivers/cxl/pci.c b/drivers/cxl/pci.c > index 4cf351a3cf99..a945c5fda292 100644 > --- a/drivers/cxl/pci.c > +++ b/drivers/cxl/pci.c > @@ -12,9 +12,9 @@ > #include > #include > #include > +#include "cxlmem.h" > #include "pci.h" > #include "cxl.h" > -#include "mem.h" > > /** > * DOC: cxl pci > diff --git a/drivers/cxl/pmem.c b/drivers/cxl/pmem.c > index 0088e41dd2f3..9652c3ee41e7 100644 > --- a/drivers/cxl/pmem.c > +++ b/drivers/cxl/pmem.c > @@ -6,7 +6,7 @@ > #include > #include > #include > -#include "mem.h" > +#include "cxlmem.h" > #include "cxl.h" > > /*