Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Tim Bird and committed by
Andrew Morton
ef24e0aa c69ca4e9

+8 -13
+1
mm/dmapool_test.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 #include <linux/device.h> 2 3 #include <linux/dma-map-ops.h> 3 4 #include <linux/dma-mapping.h>
+1
mm/folio-compat.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Compatibility functions which bloat the callers too much to make inline. 3 4 * All of the callers of these functions should be converted to use folios
+1
mm/gup_test.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 #include <linux/kernel.h> 2 3 #include <linux/mm.h> 3 4 #include <linux/slab.h>
+1 -8
mm/hugetlb_cgroup.c
··· 1 + // SPDX-License-Identifier: LGPL-2.1 1 2 /* 2 3 * 3 4 * Copyright IBM Corporation, 2012 ··· 7 6 * Cgroup v2 8 7 * Copyright (C) 2019 Red Hat, Inc. 9 8 * Author: Giuseppe Scrivano <gscrivan@redhat.com> 10 - * 11 - * This program is free software; you can redistribute it and/or modify it 12 - * under the terms of version 2.1 of the GNU Lesser General Public License 13 - * as published by the Free Software Foundation. 14 - * 15 - * This program is distributed in the hope that it would be useful, but 16 - * WITHOUT ANY WARRANTY; without even the implied warranty of 17 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18 9 * 19 10 */ 20 11
+1 -2
mm/memfd.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * memfd_create system call and file sealing support 3 4 * 4 5 * Code was originally included in shmem.c, and broken out to facilitate 5 6 * use by hugetlbfs as well as tmpfs. 6 - * 7 - * This file is released under the GPL. 8 7 */ 9 8 10 9 #include <linux/fs.h>
+1
mm/mmu_gather.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 #include <linux/gfp.h> 2 3 #include <linux/highmem.h> 3 4 #include <linux/kernel.h>
+1 -1
mm/rmap.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * mm/rmap.c - physical to virtual reverse mappings 3 4 * 4 5 * Copyright 2001, Rik van Riel <riel@conectiva.com.br> 5 - * Released under the General Public License (GPL). 6 6 * 7 7 * Simple, low overhead reverse mapping scheme. 8 8 * Please try to keep this thing as modular as possible.
+1 -2
mm/shmem.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Resizable virtual memory filesystem for Linux. 3 4 * ··· 18 17 * 19 18 * tiny-shmem: 20 19 * Copyright (c) 2004, 2008 Matt Mackall <mpm@selenic.com> 21 - * 22 - * This file is released under the GPL. 23 20 */ 24 21 25 22 #include <linux/fs.h>