Add SPDX license identifiers
Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/test/232c93d07b74-test.c b/test/232c93d07b74-test.c
index c398de6..fcf37e1 100644
--- a/test/232c93d07b74-test.c
+++ b/test/232c93d07b74-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Test case for socket read/write through IORING_OP_READV and
* IORING_OP_WRITEV, using both TCP and sockets and blocking and
diff --git a/test/35fa71a030ca-test.c b/test/35fa71a030ca-test.c
index 1573413..8fcc2d5 100644
--- a/test/35fa71a030ca-test.c
+++ b/test/35fa71a030ca-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
// autogenerated by syzkaller (https://github.com/google/syzkaller)
#include <dirent.h>
diff --git a/test/500f9fbadef8-test.c b/test/500f9fbadef8-test.c
index b480944..46d40fc 100644
--- a/test/500f9fbadef8-test.c
+++ b/test/500f9fbadef8-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: Single depth submit+wait poll hang test
*
diff --git a/test/7ad0e4b2f83c-test.c b/test/7ad0e4b2f83c-test.c
index 1abde44..6fc6699 100644
--- a/test/7ad0e4b2f83c-test.c
+++ b/test/7ad0e4b2f83c-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#include <stdio.h>
#include <time.h>
#include <sys/time.h>
diff --git a/test/8a9973408177-test.c b/test/8a9973408177-test.c
index 25c0bee..d905c86 100644
--- a/test/8a9973408177-test.c
+++ b/test/8a9973408177-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
diff --git a/test/917257daa0fe-test.c b/test/917257daa0fe-test.c
index a5378a7..1fc821d 100644
--- a/test/917257daa0fe-test.c
+++ b/test/917257daa0fe-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
// autogenerated by syzkaller (https://github.com/google/syzkaller)
#include <endian.h>
diff --git a/test/a0908ae19763-test.c b/test/a0908ae19763-test.c
index cacd70c..b24db1b 100644
--- a/test/a0908ae19763-test.c
+++ b/test/a0908ae19763-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
// autogenerated by syzkaller (https://github.com/google/syzkaller)
#include <endian.h>
diff --git a/test/a4c0b3decb33-test.c b/test/a4c0b3decb33-test.c
index c7d0fec..eeecfc4 100644
--- a/test/a4c0b3decb33-test.c
+++ b/test/a4c0b3decb33-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
// autogenerated by syzkaller (https://github.com/google/syzkaller)
#include <dirent.h>
diff --git a/test/accept-link.c b/test/accept-link.c
index 91dbc2b..759d980 100644
--- a/test/accept-link.c
+++ b/test/accept-link.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
diff --git a/test/accept-reuse.c b/test/accept-reuse.c
index 5f3e19a..ea42c68 100644
--- a/test/accept-reuse.c
+++ b/test/accept-reuse.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#include <assert.h>
#include <liburing.h>
#include <netdb.h>
diff --git a/test/accept-test.c b/test/accept-test.c
index e3e89cd..d1a31bf 100644
--- a/test/accept-test.c
+++ b/test/accept-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: Check to see if accept handles addr and addrlen
*/
diff --git a/test/accept.c b/test/accept.c
index 3de975f..96af594 100644
--- a/test/accept.c
+++ b/test/accept.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Check that IORING_OP_ACCEPT works, and send some data across to verify we
* didn't get a junk fd.
diff --git a/test/across-fork.c b/test/across-fork.c
index 440d6f2..cb47c8e 100644
--- a/test/across-fork.c
+++ b/test/across-fork.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test sharing a ring across a fork
*/
diff --git a/test/b19062a56726-test.c b/test/b19062a56726-test.c
index 62d4645..27f3a08 100644
--- a/test/b19062a56726-test.c
+++ b/test/b19062a56726-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
// autogenerated by syzkaller (https://github.com/google/syzkaller)
#include <endian.h>
diff --git a/test/b5837bd5311d-test.c b/test/b5837bd5311d-test.c
index 3758b6c..a8371a1 100644
--- a/test/b5837bd5311d-test.c
+++ b/test/b5837bd5311d-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: Check to see if wait_nr is being honored.
*/
diff --git a/test/connect.c b/test/connect.c
index 65f0471..96aac97 100644
--- a/test/connect.c
+++ b/test/connect.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Check that IORING_OP_CONNECT works, with and without other side
* being open.
diff --git a/test/cq-full.c b/test/cq-full.c
index 299e04f..52640be 100644
--- a/test/cq-full.c
+++ b/test/cq-full.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test CQ ring overflow
*
diff --git a/test/cq-overflow.c b/test/cq-overflow.c
index 9045b5b..680220e 100644
--- a/test/cq-overflow.c
+++ b/test/cq-overflow.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run various CQ ring overflow tests
*
diff --git a/test/cq-peek-batch.c b/test/cq-peek-batch.c
index e0a765e..9861cda 100644
--- a/test/cq-peek-batch.c
+++ b/test/cq-peek-batch.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test CQ peek-batch
*
diff --git a/test/cq-ready.c b/test/cq-ready.c
index 1885c0c..083e351 100644
--- a/test/cq-ready.c
+++ b/test/cq-ready.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test CQ ready
*
diff --git a/test/cq-size.c b/test/cq-size.c
index 9b55322..6f2d249 100644
--- a/test/cq-size.c
+++ b/test/cq-size.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test CQ ring sizing
*/
diff --git a/test/d77a67ed5f27-test.c b/test/d77a67ed5f27-test.c
index 5f48b24..3fa45b5 100644
--- a/test/d77a67ed5f27-test.c
+++ b/test/d77a67ed5f27-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#include <stdio.h>
#include <unistd.h>
#include <string.h>
diff --git a/test/defer.c b/test/defer.c
index 9298112..ec78ee7 100644
--- a/test/defer.c
+++ b/test/defer.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
diff --git a/test/eeed8b54e0df-test.c b/test/eeed8b54e0df-test.c
index 84237d5..dd0d947 100644
--- a/test/eeed8b54e0df-test.c
+++ b/test/eeed8b54e0df-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: -EAGAIN handling
*
diff --git a/test/eventfd-ring.c b/test/eventfd-ring.c
index 274da49..c78bc86 100644
--- a/test/eventfd-ring.c
+++ b/test/eventfd-ring.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run various nop tests
*
diff --git a/test/eventfd.c b/test/eventfd.c
index ca3b610..b5f05c7 100644
--- a/test/eventfd.c
+++ b/test/eventfd.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run various nop tests
*
diff --git a/test/fadvise.c b/test/fadvise.c
index 3e1a1da..cb18adc 100644
--- a/test/fadvise.c
+++ b/test/fadvise.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: basic fadvise test
*/
diff --git a/test/fallocate.c b/test/fallocate.c
index 2083056..f925553 100644
--- a/test/fallocate.c
+++ b/test/fallocate.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test io_uring fallocate
*
diff --git a/test/fc2a85cb02ef-test.c b/test/fc2a85cb02ef-test.c
index 39f99df..bb8427d 100644
--- a/test/fc2a85cb02ef-test.c
+++ b/test/fc2a85cb02ef-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
// https://syzkaller.appspot.com/bug?id=1f2ecd7a23dba87e5ca3505ec44514a462cfe8c0
// autogenerated by syzkaller (https://github.com/google/syzkaller)
diff --git a/test/file-register.c b/test/file-register.c
index 2e7053f..88a2d0e 100644
--- a/test/file-register.c
+++ b/test/file-register.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run various file registration tests
*
diff --git a/test/file-update.c b/test/file-update.c
index 32efa4a..761b059 100644
--- a/test/file-update.c
+++ b/test/file-update.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run various file registration tests
*
diff --git a/test/fixed-link.c b/test/fixed-link.c
index 2ae7a59..ac6d8a0 100644
--- a/test/fixed-link.c
+++ b/test/fixed-link.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
diff --git a/test/fsync.c b/test/fsync.c
index d0baa4a..839716a 100644
--- a/test/fsync.c
+++ b/test/fsync.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test io_uring fsync handling
*
diff --git a/test/io-cancel.c b/test/io-cancel.c
index da4fd62..75fbf43 100644
--- a/test/io-cancel.c
+++ b/test/io-cancel.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: Basic IO cancel test
*/
diff --git a/test/io_uring_enter.c b/test/io_uring_enter.c
index 65beca6..8a31452 100644
--- a/test/io_uring_enter.c
+++ b/test/io_uring_enter.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* io_uring_enter.c
*
diff --git a/test/io_uring_register.c b/test/io_uring_register.c
index fe6b3e0..e4c51f9 100644
--- a/test/io_uring_register.c
+++ b/test/io_uring_register.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* io_uring_register.c
*
diff --git a/test/io_uring_setup.c b/test/io_uring_setup.c
index b28d86a..fe366ef 100644
--- a/test/io_uring_setup.c
+++ b/test/io_uring_setup.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* io_uring_setup.c
*
diff --git a/test/link-timeout.c b/test/link-timeout.c
index 473e23f..d22d515 100644
--- a/test/link-timeout.c
+++ b/test/link-timeout.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run various linked timeout cases
*
diff --git a/test/link.c b/test/link.c
index 6c8ae09..d900713 100644
--- a/test/link.c
+++ b/test/link.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run various linked sqe tests
*
diff --git a/test/link_drain.c b/test/link_drain.c
index ed6e874..800ac88 100644
--- a/test/link_drain.c
+++ b/test/link_drain.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test io_uring link io with drain io
*
diff --git a/test/madvise.c b/test/madvise.c
index da788fc..1b11092 100644
--- a/test/madvise.c
+++ b/test/madvise.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: basic madvise test
*/
diff --git a/test/nop.c b/test/nop.c
index 45e65e4..efa3215 100644
--- a/test/nop.c
+++ b/test/nop.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run various nop tests
*
diff --git a/test/open-close.c b/test/open-close.c
index fdd7403..ee564a7 100644
--- a/test/open-close.c
+++ b/test/open-close.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run various openat(2) tests
*
diff --git a/test/openat2.c b/test/openat2.c
index 462bc9b..197821a 100644
--- a/test/openat2.c
+++ b/test/openat2.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run various openat(2) tests
*
diff --git a/test/personality.c b/test/personality.c
index 1d08473..9e99561 100644
--- a/test/personality.c
+++ b/test/personality.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test if personalities work
*
diff --git a/test/poll-cancel-ton.c b/test/poll-cancel-ton.c
index eb3b47b..c963bd0 100644
--- a/test/poll-cancel-ton.c
+++ b/test/poll-cancel-ton.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test massive amounts of poll with cancel
*
diff --git a/test/poll-cancel.c b/test/poll-cancel.c
index d85113a..eeabadf 100644
--- a/test/poll-cancel.c
+++ b/test/poll-cancel.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test io_uring poll cancel handling
*
diff --git a/test/poll-link.c b/test/poll-link.c
index 795e04a..bd027fa 100644
--- a/test/poll-link.c
+++ b/test/poll-link.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
diff --git a/test/poll-many.c b/test/poll-many.c
index afde491..cc12db0 100644
--- a/test/poll-many.c
+++ b/test/poll-many.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test many files being polled for
*
diff --git a/test/poll-v-poll.c b/test/poll-v-poll.c
index 62cd486..61d40dd 100644
--- a/test/poll-v-poll.c
+++ b/test/poll-v-poll.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test io_uring poll handling
*
diff --git a/test/poll.c b/test/poll.c
index 1ddcf3d..92e3524 100644
--- a/test/poll.c
+++ b/test/poll.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test io_uring poll handling
*
diff --git a/test/probe.c b/test/probe.c
index b85b089..8759db7 100644
--- a/test/probe.c
+++ b/test/probe.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test IORING_REGISTER_PROBE
*/
diff --git a/test/read-write.c b/test/read-write.c
index e36dfbc..c3c10f9 100644
--- a/test/read-write.c
+++ b/test/read-write.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: basic read/write tests with buffered, O_DIRECT, and SQPOLL
*/
diff --git a/test/ring-leak.c b/test/ring-leak.c
index ca18642..1dfe7a4 100644
--- a/test/ring-leak.c
+++ b/test/ring-leak.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Based on description from Al Viro - this demonstrates a leak of the
* io_uring instance, by sending the io_uring fd over a UNIX socket.
diff --git a/test/send_recv.c b/test/send_recv.c
index 9c9b9b8..2455163 100644
--- a/test/send_recv.c
+++ b/test/send_recv.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Simple test case showing using send and recv through io_uring
*/
diff --git a/test/send_recvmsg.c b/test/send_recvmsg.c
index 7449916..b208749 100644
--- a/test/send_recvmsg.c
+++ b/test/send_recvmsg.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Simple test case showing using sendmsg and recvmsg through io_uring
*/
diff --git a/test/shared-wq.c b/test/shared-wq.c
index 1d2f8a5..9f97cbf 100644
--- a/test/shared-wq.c
+++ b/test/shared-wq.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test wq sharing
*/
diff --git a/test/short-read.c b/test/short-read.c
index 357078f..94a148f 100644
--- a/test/short-read.c
+++ b/test/short-read.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
diff --git a/test/socket-rw.c b/test/socket-rw.c
index 1ace4b8..54ceceb 100644
--- a/test/socket-rw.c
+++ b/test/socket-rw.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Check that a readv on a socket queued before a writev doesn't hang
* the processing.
diff --git a/test/sq-full.c b/test/sq-full.c
index cc91477..f3d35b4 100644
--- a/test/sq-full.c
+++ b/test/sq-full.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test SQ queue full condition
*
diff --git a/test/sq-space_left.c b/test/sq-space_left.c
index 81324b1..d7baeba 100644
--- a/test/sq-space_left.c
+++ b/test/sq-space_left.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test SQ queue space left
*
diff --git a/test/statx.c b/test/statx.c
index a1d97b2..3163540 100644
--- a/test/statx.c
+++ b/test/statx.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run various statx(2) tests
*
diff --git a/test/stdout.c b/test/stdout.c
index ddf1f33..440ea20 100644
--- a/test/stdout.c
+++ b/test/stdout.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: check that STDOUT write works
*/
diff --git a/test/submit-reuse.c b/test/submit-reuse.c
index ad50919..3b3a357 100644
--- a/test/submit-reuse.c
+++ b/test/submit-reuse.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Test reads that will punt to blocking context, with immediate overwrite
* of iovec->iov_base to NULL. If the kernel doesn't properly handle
diff --git a/test/teardowns.c b/test/teardowns.c
index 189fcc7..4e10b28 100644
--- a/test/teardowns.c
+++ b/test/teardowns.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/test/timeout-overflow.c b/test/timeout-overflow.c
index 5f34c10..aef394b 100644
--- a/test/timeout-overflow.c
+++ b/test/timeout-overflow.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run timeout overflow test
*
diff --git a/test/timeout.c b/test/timeout.c
index 8ae8aa3..159e4bf 100644
--- a/test/timeout.c
+++ b/test/timeout.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run various timeout tests
*