[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20260204213101.1754183-1-tim.bird@sony.com>
Date: Wed, 4 Feb 2026 14:31:01 -0700
From: Tim Bird <tim.bird@...y.com>
To: kbusch@...nel.org,
willy@...radead.org,
kirill@...temov.name,
aneesh.kumar@...nel.org,
mike.kravetz@...cle.com,
peterz@...radead.org,
akpm@...ux-foundation.org,
riel@...riel.com,
torvalds@...uxfoundation.org,
david@...nel.org,
muchun.sony@...ux.dev,
osalvador@...e.de,
hughd@...gle.com,
will@...nel.org,
npiggin@...il.com
Cc: linux-spdx@...r.kernel.org,
linux-mm@...ck.org,
linux-arch@...r.kernel.org,
linux-kernel@...r.kernel.org,
Tim Bird <tim.bird@...y.com>
Subject: [PATCH] mm: Add SPDX id lines to some mm source files
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).
Signed-off-by: Tim Bird <tim.bird@...y.com>
---
mm/dmapool_test.c | 1 +
mm/folio-compat.c | 1 +
mm/gup_test.c | 1 +
mm/hugetlb_cgroup.c | 9 +--------
mm/memfd.c | 3 +--
mm/mmu_gather.c | 1 +
mm/rmap.c | 2 +-
mm/shmem.c | 3 +--
8 files changed, 8 insertions(+), 13 deletions(-)
diff --git a/mm/dmapool_test.c b/mm/dmapool_test.c
index 54b1fd1ccfbb..e8172d708308 100644
--- a/mm/dmapool_test.c
+++ b/mm/dmapool_test.c
@@ -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>
diff --git a/mm/folio-compat.c b/mm/folio-compat.c
index 45540942d148..a02179a0bded 100644
--- a/mm/folio-compat.c
+++ b/mm/folio-compat.c
@@ -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
diff --git a/mm/gup_test.c b/mm/gup_test.c
index eeb3f4d87c51..9dd48db897b9 100644
--- a/mm/gup_test.c
+++ b/mm/gup_test.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/slab.h>
diff --git a/mm/hugetlb_cgroup.c b/mm/hugetlb_cgroup.c
index 58e895f3899a..0a87cbbeeed9 100644
--- a/mm/hugetlb_cgroup.c
+++ b/mm/hugetlb_cgroup.c
@@ -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@...hat.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>
diff --git a/mm/memfd.c b/mm/memfd.c
index ab5312aff14b..8f1f26de92f0 100644
--- a/mm/memfd.c
+++ b/mm/memfd.c
@@ -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>
diff --git a/mm/mmu_gather.c b/mm/mmu_gather.c
index 247e3f9db6c7..fccba879f056 100644
--- a/mm/mmu_gather.c
+++ b/mm/mmu_gather.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
#include <linux/gfp.h>
#include <linux/highmem.h>
#include <linux/kernel.h>
diff --git a/mm/rmap.c b/mm/rmap.c
index f955f02d570e..a91282020e77 100644
--- 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@...ectiva.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.
diff --git a/mm/shmem.c b/mm/shmem.c
index ec6c01378e9d..e460f41d26b9 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -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@...enic.com>
- *
- * This file is released under the GPL.
*/
#include <linux/fs.h>
--
2.43.0
Powered by blists - more mailing lists