Skip to content

Commit 6cad1ec

Browse files
mcgrofgregkh
authored andcommitted
testing: use the copyleft-next-0.3.1 SPDX tag
Two selftests drivers exist under the copyleft-next license. These drivers were added prior to SPDX practice taking full swing in the kernel. Now that we have an SPDX tag for copyleft-next-0.3.1 documented, embrace it and remove the boiler plate. Cc: Goldwyn Rodrigues <rgoldwyn@suse.com> Cc: Kuno Woudt <kuno@frob.nl> Cc: Richard Fontana <fontana@sharpeleven.org> Cc: copyleft-next@lists.fedorahosted.org Cc: Ciaran Farrell <Ciaran.Farrell@suse.com> Cc: Christopher De Nicolo <Christopher.DeNicolo@suse.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Thorsten Leemhuis <linux@leemhuis.info> Cc: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org> Reviewed-by: Tim Bird <tim.bird@sony.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent ad9f64c commit 6cad1ec

4 files changed

Lines changed: 4 additions & 45 deletions

File tree

lib/test_kmod.c

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later OR copyleft-next-0.3.1
12
/*
23
* kmod stress test driver
34
*
45
* Copyright (C) 2017 Luis R. Rodriguez <mcgrof@kernel.org>
5-
*
6-
* This program is free software; you can redistribute it and/or modify it
7-
* under the terms of the GNU General Public License as published by the Free
8-
* Software Foundation; either version 2 of the License, or at your option any
9-
* later version; or, when distributed separately from the Linux kernel or
10-
* when incorporated into other software packages, subject to the following
11-
* license:
12-
*
13-
* This program is free software; you can redistribute it and/or modify it
14-
* under the terms of copyleft-next (version 0.3.1 or later) as published
15-
* at http://copyleft-next.org/.
166
*/
177
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
188

lib/test_sysctl.c

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later OR copyleft-next-0.3.1
12
/*
23
* proc sysctl test driver
34
*
45
* Copyright (C) 2017 Luis R. Rodriguez <mcgrof@kernel.org>
5-
*
6-
* This program is free software; you can redistribute it and/or modify it
7-
* under the terms of the GNU General Public License as published by the Free
8-
* Software Foundation; either version 2 of the License, or at your option any
9-
* later version; or, when distributed separately from the Linux kernel or
10-
* when incorporated into other software packages, subject to the following
11-
* license:
12-
*
13-
* This program is free software; you can redistribute it and/or modify it
14-
* under the terms of copyleft-next (version 0.3.1 or later) as published
15-
* at http://copyleft-next.org/.
166
*/
177

188
/*

tools/testing/selftests/kmod/kmod.sh

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
11
#!/bin/bash
2-
#
2+
# SPDX-License-Identifier: GPL-2.0-or-later OR copyleft-next-0.3.1
33
# Copyright (C) 2017 Luis R. Rodriguez <mcgrof@kernel.org>
44
#
5-
# This program is free software; you can redistribute it and/or modify it
6-
# under the terms of the GNU General Public License as published by the Free
7-
# Software Foundation; either version 2 of the License, or at your option any
8-
# later version; or, when distributed separately from the Linux kernel or
9-
# when incorporated into other software packages, subject to the following
10-
# license:
11-
#
12-
# This program is free software; you can redistribute it and/or modify it
13-
# under the terms of copyleft-next (version 0.3.1 or later) as published
14-
# at http://copyleft-next.org/.
15-
165
# This is a stress test script for kmod, the kernel module loader. It uses
176
# test_kmod which exposes a series of knobs for the API for us so we can
187
# tweak each test in userspace rather than in kernelspace.

tools/testing/selftests/sysctl/sysctl.sh

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
#!/bin/bash
2+
# SPDX-License-Identifier: GPL-2.0-or-later OR copyleft-next-0.3.1
23
# Copyright (C) 2017 Luis R. Rodriguez <mcgrof@kernel.org>
3-
#
4-
# This program is free software; you can redistribute it and/or modify it
5-
# under the terms of the GNU General Public License as published by the Free
6-
# Software Foundation; either version 2 of the License, or at your option any
7-
# later version; or, when distributed separately from the Linux kernel or
8-
# when incorporated into other software packages, subject to the following
9-
# license:
10-
#
11-
# This program is free software; you can redistribute it and/or modify it
12-
# under the terms of copyleft-next (version 0.3.1 or later) as published
13-
# at http://copyleft-next.org/.
144

155
# This performs a series tests against the proc sysctl interface.
166

0 commit comments

Comments
 (0)