diff options
author | Xiao Yang <yangx.jy@fujitsu.com> | 2024-01-28 23:30:26 +0800 |
---|---|---|
committer | Xiao Yang <yangx.jy@fujitsu.com> | 2024-01-29 00:08:36 +0800 |
commit | 03efa6c5a69a8e19d2f33f199aa883836b494b96 (patch) | |
tree | cbf42d964717ca4f9266b82f7f97e4b427509eb6 | |
parent | 0a81af9d958db02b7c94cf3c9f4a0812e21bfe78 (diff) | |
download | ltp-03efa6c5a69a8e19d2f33f199aa883836b494b96.tar.gz |
syscalls/pwritev: Make make check happy
1) Relicense to GPL v2+ for pwritev.h.
2) Add LTP Copyright.
Signed-off-by: Xiao Yang <yangx.jy@fujitsu.com>
Reviewed-by: Petr Vorel <pvorel@suse.cz>
-rw-r--r-- | testcases/kernel/syscalls/pwritev/pwritev.h | 21 | ||||
-rw-r--r-- | testcases/kernel/syscalls/pwritev/pwritev01.c | 7 | ||||
-rw-r--r-- | testcases/kernel/syscalls/pwritev/pwritev02.c | 7 | ||||
-rw-r--r-- | testcases/kernel/syscalls/pwritev/pwritev03.c | 3 |
4 files changed, 16 insertions, 22 deletions
diff --git a/testcases/kernel/syscalls/pwritev/pwritev.h b/testcases/kernel/syscalls/pwritev/pwritev.h index 833160ddb..e657dc7e6 100644 --- a/testcases/kernel/syscalls/pwritev/pwritev.h +++ b/testcases/kernel/syscalls/pwritev/pwritev.h @@ -1,18 +1,9 @@ -/* -* Copyright (c) 2015 Fujitsu Ltd. -* Author: Xiao Yang <yangx.jy@cn.fujitsu.com> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of version 2 of the GNU 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. -* -* You should have received a copy of the GNU General Public License -* alone with this program. -*/ +/* SPDX-License-Identifier: GPL-2.0-or-later + * + * Copyright (c) 2015 Fujitsu Ltd. + * Author: Xiao Yang <yangx.jy@cn.fujitsu.com> + * Copyright (c) Linux Test Project, 2016-2023 + */ #ifndef PWRITEV_H #define PWRITEV_H diff --git a/testcases/kernel/syscalls/pwritev/pwritev01.c b/testcases/kernel/syscalls/pwritev/pwritev01.c index d0ec14a69..f5fce81f2 100644 --- a/testcases/kernel/syscalls/pwritev/pwritev01.c +++ b/testcases/kernel/syscalls/pwritev/pwritev01.c @@ -1,8 +1,9 @@ // SPDX-License-Identifier: GPL-2.0-or-later /* -* Copyright (c) 2015 Fujitsu Ltd. -* Author: Xiao Yang <yangx.jy@cn.fujitsu.com> -*/ + * Copyright (c) 2015 Fujitsu Ltd. + * Author: Xiao Yang <yangx.jy@cn.fujitsu.com> + * Copyright (c) Linux Test Project, 2016-2023 + */ /*\ * [Description] diff --git a/testcases/kernel/syscalls/pwritev/pwritev02.c b/testcases/kernel/syscalls/pwritev/pwritev02.c index f3a7cc003..59a286847 100644 --- a/testcases/kernel/syscalls/pwritev/pwritev02.c +++ b/testcases/kernel/syscalls/pwritev/pwritev02.c @@ -1,8 +1,9 @@ // SPDX-License-Identifier: GPL-2.0-or-later /* -* Copyright (c) 2015-2016 Fujitsu Ltd. -* Author: Xiao Yang <yangx.jy@cn.fujitsu.com> -*/ + * Copyright (c) 2015-2016 Fujitsu Ltd. + * Author: Xiao Yang <yangx.jy@cn.fujitsu.com> + * Copyright (c) Linux Test Project, 2017-2023 + */ /*\ * [Description] diff --git a/testcases/kernel/syscalls/pwritev/pwritev03.c b/testcases/kernel/syscalls/pwritev/pwritev03.c index ea2892971..1bf9d5731 100644 --- a/testcases/kernel/syscalls/pwritev/pwritev03.c +++ b/testcases/kernel/syscalls/pwritev/pwritev03.c @@ -2,6 +2,7 @@ /* * Copyright (c) 2018 FUJITSU LIMITED. All rights reserved. * Author: Xiao Yang <yangx.jy@cn.fujitsu.com> + * Copyright (c) Linux Test Project, 2019-2023 */ /*\ @@ -92,7 +93,7 @@ static void verify_direct_pwritev(unsigned int n) static void setup(void) { int dev_fd, ret; - + dev_fd = SAFE_OPEN(tst_device->dev, O_RDWR); SAFE_IOCTL(dev_fd, BLKSSZGET, &ret); SAFE_CLOSE(dev_fd); |