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).

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>
This commit is contained in:
Tim Bird 2026-02-04 14:31:01 -07:00 committed by Andrew Morton
parent c69ca4e992
commit ef24e0aa07
8 changed files with 8 additions and 13 deletions

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include <linux/device.h> #include <linux/device.h>
#include <linux/dma-map-ops.h> #include <linux/dma-map-ops.h>
#include <linux/dma-mapping.h> #include <linux/dma-mapping.h>

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* Compatibility functions which bloat the callers too much to make inline. * Compatibility functions which bloat the callers too much to make inline.
* All of the callers of these functions should be converted to use folios * All of the callers of these functions should be converted to use folios

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/slab.h> #include <linux/slab.h>

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: LGPL-2.1
/* /*
* *
* Copyright IBM Corporation, 2012 * Copyright IBM Corporation, 2012
@ -7,14 +8,6 @@
* Copyright (C) 2019 Red Hat, Inc. * Copyright (C) 2019 Red Hat, Inc.
* Author: Giuseppe Scrivano <gscrivan@redhat.com> * 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> #include <linux/cgroup.h>

View file

@ -1,10 +1,9 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* memfd_create system call and file sealing support * memfd_create system call and file sealing support
* *
* Code was originally included in shmem.c, and broken out to facilitate * Code was originally included in shmem.c, and broken out to facilitate
* use by hugetlbfs as well as tmpfs. * use by hugetlbfs as well as tmpfs.
*
* This file is released under the GPL.
*/ */
#include <linux/fs.h> #include <linux/fs.h>

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include <linux/gfp.h> #include <linux/gfp.h>
#include <linux/highmem.h> #include <linux/highmem.h>
#include <linux/kernel.h> #include <linux/kernel.h>

View file

@ -1,8 +1,8 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* mm/rmap.c - physical to virtual reverse mappings * mm/rmap.c - physical to virtual reverse mappings
* *
* Copyright 2001, Rik van Riel <riel@conectiva.com.br> * Copyright 2001, Rik van Riel <riel@conectiva.com.br>
* Released under the General Public License (GPL).
* *
* Simple, low overhead reverse mapping scheme. * Simple, low overhead reverse mapping scheme.
* Please try to keep this thing as modular as possible. * Please try to keep this thing as modular as possible.

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* Resizable virtual memory filesystem for Linux. * Resizable virtual memory filesystem for Linux.
* *
@ -17,8 +18,6 @@
* *
* tiny-shmem: * tiny-shmem:
* Copyright (c) 2004, 2008 Matt Mackall <mpm@selenic.com> * Copyright (c) 2004, 2008 Matt Mackall <mpm@selenic.com>
*
* This file is released under the GPL.
*/ */
#include <linux/fs.h> #include <linux/fs.h>