Skip to content

Commit 76aaa3c

Browse files
committed
syscalls/preadv: Make make check happy
1) Relicense to GPL v2+ for preadv.h. 2) Add LTP Copyright. Signed-off-by: Xiao Yang <[email protected]> Reviewed-by: Petr Vorel <[email protected]>
1 parent 60079e5 commit 76aaa3c

File tree

4 files changed

+18
-24
lines changed

4 files changed

+18
-24
lines changed

testcases/kernel/syscalls/preadv/preadv.h

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
1-
/*
2-
* Copyright (c) 2015 Fujitsu Ltd.
3-
* Author: Xiao Yang <[email protected]>
4-
*
5-
* This program is free software; you can redistribute it and/or modify it
6-
* under the terms of version 2 of the GNU General Public License as
7-
* published by the Free Software Foundation.
8-
*
9-
* This program is distributed in the hope that it would be useful, but
10-
* WITHOUT ANY WARRANTY; without even the implied warranty of
11-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12-
*
13-
* You should have received a copy of the GNU General Public License
14-
* alone with this program.
15-
*/
1+
/* SPDX-License-Identifier: GPL-2.0-or-later
2+
*
3+
* Copyright (c) 2015 Fujitsu Ltd.
4+
* Author: Xiao Yang <[email protected]>
5+
* Copyright (c) Linux Test Project, 2016-2023
6+
*/
167

178
#ifndef PREADV_H
189
#define PREADV_H

testcases/kernel/syscalls/preadv/preadv01.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22
/*
3-
* Copyright (c) 2015 Fujitsu Ltd.
4-
* Author: Xiao Yang <[email protected]>
5-
*/
3+
* Copyright (c) 2015 Fujitsu Ltd.
4+
* Author: Xiao Yang <[email protected]>
5+
* Copyright (c) Linux Test Project, 2016-2023
6+
*/
67

78
/*\
89
* [Description]
@@ -38,7 +39,7 @@ static struct tcase {
3839
{1, CHUNK*3/2, CHUNK/2, 'b'}
3940
};
4041

41-
void verify_preadv(unsigned int n)
42+
static void verify_preadv(unsigned int n)
4243
{
4344
int i;
4445
char *vec;
@@ -81,7 +82,7 @@ void verify_preadv(unsigned int n)
8182
"with content '%c' expectedly", tc->size, tc->content);
8283
}
8384

84-
void setup(void)
85+
static void setup(void)
8586
{
8687
char buf[CHUNK];
8788

@@ -94,7 +95,7 @@ void setup(void)
9495
SAFE_WRITE(SAFE_WRITE_ALL, fd, buf, sizeof(buf));
9596
}
9697

97-
void cleanup(void)
98+
static void cleanup(void)
9899
{
99100
if (fd > 0)
100101
SAFE_CLOSE(fd);

testcases/kernel/syscalls/preadv/preadv02.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22
/*
3-
* Copyright (c) 2015-2016 Fujitsu Ltd.
4-
* Author: Xiao Yang <[email protected]>
5-
*/
3+
* Copyright (c) 2015-2016 Fujitsu Ltd.
4+
* Author: Xiao Yang <[email protected]>
5+
* Copyright (c) Linux Test Project, 2017-2023
6+
*/
67

78
/*\
89
* [Description]

testcases/kernel/syscalls/preadv/preadv03.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/*
33
* Copyright (c) 2018 FUJITSU LIMITED. All rights reserved.
44
* Author: Xiao Yang <[email protected]>
5+
* Copyright (c) Linux Test Project, 2019-2023
56
*/
67

78
/*\

0 commit comments

Comments
 (0)