[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] device-tree: Move dt-overlay.c to common/device-tree/


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Thu, 10 Oct 2024 12:57:46 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=OrlbRhj83Wr7IchgVfjRcw3TzeB81zfOCVGOsiy7A1k=; b=sb8dV0RlvtntiyJssdktFNIVW8o0XJatHuxArfYxHEcTlDJknC5hOVVwKCizufVfJRwTLuCkk3+xdcxlbk/KGvJkDMMOkPvhv62iVaLKCHP2VMhLI1+YIiIB2WfhkWE8vAgn8kShscD2AxNDtwge659Av+QhAMDdm/rs/CAwJEA42v7sWGvJVF9AfU4uAUn7MJn/iy5QUVygM/ADnp/lo2nVFK7YBcF673pV3o14njzyx/lWcy1H8baDQfS3BrNRjIYs6s5y7xtHeNsG6LPMbvsfPUVc2EKsp0Rekl19gTN0lTJtn9t5Ivi9XhjWDI0gfDxX3YsQxTojlOIi+qMtfw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wjtiPnQLp7/3gMGlfhrbEAiax5QfdPAhe8Gpa0bwtgMMviJIAfkaIwSIw3zaf2tLqWEHSuud5YQVTLxDP4UBRlrSFOkiiFNsmYloF04r0XCzryoRLkE/UD1lWp5iY/HElyrhqxtZOTk6K5oIR4Q4REOzOaoEYLJPE5H9RchOYgxzjrguBCh0ZOcJtqiDLcRAX0mBxR9Pfb3gYrEoA4rE5DF2xQiyGB8O2hWa/D6VO9+TGL5c9pBOaPSii/2+/i07FPMnb85OevruqkQH6bPGZRHo7a7USGOzxwRz5syJJ+erkl90WYugtciX78dgUDPEQufj11t4k/myTvOaoCol9A==
  • Cc: Michal Orzel <michal.orzel@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "Bertrand Marquis" <bertrand.marquis@xxxxxxx>
  • Delivery-date: Thu, 10 Oct 2024 10:58:11 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

The code is DT specific and as such should be placed under common
directory for DT related files. Update MAINTAINERS file accordingly
and drop the line with a path from a top-level comment in dt-overlay.c.
It serves no purpose and requires being updated on every code movement.

Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>
---
This patch is based on the already acked series (waiting to be committed):
https://lore.kernel.org/xen-devel/20241004122220.234817-1-michal.orzel@xxxxxxx/T/
---
 MAINTAINERS                               | 1 -
 xen/common/Makefile                       | 1 -
 xen/common/device-tree/Makefile           | 1 +
 xen/common/{ => device-tree}/dt-overlay.c | 2 --
 4 files changed, 1 insertion(+), 4 deletions(-)
 rename xen/common/{ => device-tree}/dt-overlay.c (99%)

diff --git a/MAINTAINERS b/MAINTAINERS
index f68ddd7f84a5..3bba2c8c31ad 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -292,7 +292,6 @@ M:  Michal Orzel <michal.orzel@xxxxxxx>
 S:     Supported
 F:     xen/common/libfdt/
 F:     xen/common/device-tree/
-F:     xen/common/dt-overlay.c
 F:     xen/include/xen/libfdt/
 F:     xen/include/xen/bootfdt.h
 F:     xen/include/xen/device_tree.h
diff --git a/xen/common/Makefile b/xen/common/Makefile
index f90bb00d23e5..8dec11544e35 100644
--- a/xen/common/Makefile
+++ b/xen/common/Makefile
@@ -9,7 +9,6 @@ obj-$(CONFIG_DEBUG_TRACE) += debugtrace.o
 obj-$(CONFIG_HAS_DEVICE_TREE) += device-tree/
 obj-$(CONFIG_IOREQ_SERVER) += dm.o
 obj-y += domain.o
-obj-$(CONFIG_OVERLAY_DTB) += dt-overlay.o
 obj-y += event_2l.o
 obj-y += event_channel.o
 obj-y += event_fifo.o
diff --git a/xen/common/device-tree/Makefile b/xen/common/device-tree/Makefile
index 990abd571acf..58052d074e62 100644
--- a/xen/common/device-tree/Makefile
+++ b/xen/common/device-tree/Makefile
@@ -1,3 +1,4 @@
 obj-y += bootfdt.init.o
 obj-y += bootinfo.init.o
 obj-y += device-tree.o
+obj-$(CONFIG_OVERLAY_DTB) += dt-overlay.o
diff --git a/xen/common/dt-overlay.c b/xen/common/device-tree/dt-overlay.c
similarity index 99%
rename from xen/common/dt-overlay.c
rename to xen/common/device-tree/dt-overlay.c
index 5ce00514ef14..97fb99eaaaf7 100644
--- a/xen/common/dt-overlay.c
+++ b/xen/common/device-tree/dt-overlay.c
@@ -1,7 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
 /*
- * xen/common/dt-overlay.c
- *
  * Device tree overlay support in Xen.
  *
  * Copyright (C) 2023, Advanced Micro Devices, Inc. All Rights Reserved.
-- 
2.25.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.