Skip to contentSkip to conversation

device-tree: Add missing SPDX identifiers and EMACS comment blocks

PATCH In review Michal Orzel 2 participants 2 messages May 6, 2025 – May 8, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 device-tree: Add missing SPDX identifiers and EMACS comment blocks

Use the same license as the files from which the code originated during recent code movements. Take the opportunity to add SPDX identifier for device-tree.c and remove the license text.

---
This is mostly fixing files added recently by Oleksii.

---
 xen/common/device-tree/device-tree.c  |  5 +----
 xen/common/device-tree/domain-build.c | 11 +++++++++++
 xen/common/device-tree/kernel.c       | 11 +++++++++++
 3 files changed, 23 insertions(+), 4 deletions(-)
xen/common/device-tree/device-tree.c +1 -4
index 90fee2ba0315..886e6c7712de 100644
@@ -1,13 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Device Tree
  *
  * Copyright (C) 2012 Citrix Systems, Inc.
  * Copyright 2009 Benjamin Herrenschmidt, IBM Corp
  * [email protected]
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
  */
 
 #include <xen/types.h>
xen/common/device-tree/domain-build.c +11 -0
index 762b63e2b00a..3d7fc7a19ef6 100644
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #include <xen/bootfdt.h>
 #include <xen/fdt-domain-build.h>
 #include <xen/init.h>
@@ -393,3 +395,12 @@ void __init initrd_load(struct kernel_info *kinfo,
 
     iounmap(initrd);
 }
+
+/*
+ * Local variables:
+ * mode: C
+ * c-file-style: "BSD"
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ */
xen/common/device-tree/kernel.c +11 -0
index 1bf3bbf64eae..cb04cd9d5014 100644
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
 #include <xen/bootfdt.h>
 #include <xen/device_tree.h>
 #include <xen/fdt-kernel.h>
@@ -240,3 +242,12 @@ void __init kernel_load(struct kernel_info *info)
 
     info->load(info);
 }
+
+/*
+ * Local variables:
+ * mode: C
+ * c-file-style: "BSD"
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ */
Signature · 1 line
2.25.1