]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mm: add SPDX id lines to some mm source files
authorTim Bird <tim.bird@sony.com>
Wed, 4 Feb 2026 21:31:01 +0000 (14:31 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 6 Feb 2026 23:47:16 +0000 (15:47 -0800)
Some of the memory management source files are missing
SPDX-License-Identifier lines.  Add appropriate IDs
to these files (mostly GPL-2.0, but one LGPL-2.1).

Link: https://lkml.kernel.org/r/20260204213101.1754183-1-tim.bird@sony.com
Signed-off-by: Tim Bird <tim.bird@sony.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/dmapool_test.c
mm/folio-compat.c
mm/gup_test.c
mm/hugetlb_cgroup.c
mm/memfd.c
mm/mmu_gather.c
mm/rmap.c
mm/shmem.c

index 54b1fd1ccfbb0297c67efd1870d5f64345af7afc..e8172d7083086f7bc43cb48ec07c5aad2ad95941 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 #include <linux/device.h>
 #include <linux/dma-map-ops.h>
 #include <linux/dma-mapping.h>
index 45540942d148a94541c477a16a6269210a168745..a02179a0bded3755dec98cdbb2634ae1d926cb43 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Compatibility functions which bloat the callers too much to make inline.
  * All of the callers of these functions should be converted to use folios
index eeb3f4d87c51046dd5c2d8577e9d673fcf565656..9dd48db897b9518ee69bd81bbf8e376eec936087 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 #include <linux/kernel.h>
 #include <linux/mm.h>
 #include <linux/slab.h>
index 7144d7d555eb800fdcb0dc21341850d20b4d5432..792d06538fa925175f998b66ece8cce52fc23204 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1
 /*
  *
  * Copyright IBM Corporation, 2012
@@ -7,14 +8,6 @@
  * Copyright (C) 2019 Red Hat, Inc.
  * Author: Giuseppe Scrivano <gscrivan@redhat.com>
  *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of version 2.1 of the GNU Lesser General Public License
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it would be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
  */
 
 #include <linux/cgroup.h>
index f032c60529265cd16dcd0668ab8e6557a6c6972b..82a3f38aa30a37457d29725d8ce70e4c9b0ed811 100644 (file)
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * memfd_create system call and file sealing support
  *
  * Code was originally included in shmem.c, and broken out to facilitate
  * use by hugetlbfs as well as tmpfs.
- *
- * This file is released under the GPL.
  */
 
 #include <linux/fs.h>
index 2faa23d7f8d427965659d41e9e3548e4097bbde2..fe5b6a031717f149591270a52820c92a180d128c 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 #include <linux/gfp.h>
 #include <linux/highmem.h>
 #include <linux/kernel.h>
index c1ba88763102e15c42a573ffb1557762495eaac3..ab099405151ff91c6281665f083e51ebcc731d0e 100644 (file)
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -1,8 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * mm/rmap.c - physical to virtual reverse mappings
  *
  * Copyright 2001, Rik van Riel <riel@conectiva.com.br>
- * Released under the General Public License (GPL).
  *
  * Simple, low overhead reverse mapping scheme.
  * Please try to keep this thing as modular as possible.
index 0adde3f4df27fa026a7d725775601f846fa18fd3..b8499871e830bafa18cc9fb84c9a7c3593d54677 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Resizable virtual memory filesystem for Linux.
  *
@@ -17,8 +18,6 @@
  *
  * tiny-shmem:
  * Copyright (c) 2004, 2008 Matt Mackall <mpm@selenic.com>
- *
- * This file is released under the GPL.
  */
 
 #include <linux/fs.h>