Skip to content

Commit 6bf9d8f

Browse files
Leon Romanovskyjgunthorpe
authored andcommitted
RDMA/include: Replace license text with SPDX tags
The header files in RDMA subsystem are dual licensed and can be described by simple SPDX tag, so replace all of them at once together with making them use the same coding style for header guard defines. Link: https://lore.kernel.org/r/20200719072521.135260-1-leon@kernel.org Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
1 parent 03ed5a8 commit 6bf9d8f

31 files changed

Lines changed: 59 additions & 946 deletions

‎include/rdma/ib.h‎

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,9 @@
1+
/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
12
/*
23
* Copyright (c) 2010 Intel Corporation. All rights reserved.
3-
*
4-
* This software is available to you under a choice of one of two
5-
* licenses. You may choose to be licensed under the terms of the GNU
6-
* General Public License (GPL) Version 2, available from the file
7-
* COPYING in the main directory of this source tree, or the
8-
* OpenIB.org BSD license below:
9-
*
10-
* Redistribution and use in source and binary forms, with or
11-
* without modification, are permitted provided that the following
12-
* conditions are met:
13-
*
14-
* - Redistributions of source code must retain the above
15-
* copyright notice, this list of conditions and the following
16-
* disclaimer.
17-
*
18-
* - Redistributions in binary form must reproduce the above
19-
* copyright notice, this list of conditions and the following
20-
* disclaimer in the documentation and/or other materials
21-
* provided with the distribution.
22-
*
23-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25-
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26-
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
27-
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
28-
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
29-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30-
* SOFTWARE.
314
*/
325

33-
#if !defined(_RDMA_IB_H)
6+
#ifndef _RDMA_IB_H
347
#define _RDMA_IB_H
358

369
#include <linux/types.h>

‎include/rdma/ib_addr.h‎

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,10 @@
1+
/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
12
/*
23
* Copyright (c) 2005 Voltaire Inc. All rights reserved.
34
* Copyright (c) 2005 Intel Corporation. All rights reserved.
4-
*
5-
* This software is available to you under a choice of one of two
6-
* licenses. You may choose to be licensed under the terms of the GNU
7-
* General Public License (GPL) Version 2, available from the file
8-
* COPYING in the main directory of this source tree, or the
9-
* OpenIB.org BSD license below:
10-
*
11-
* Redistribution and use in source and binary forms, with or
12-
* without modification, are permitted provided that the following
13-
* conditions are met:
14-
*
15-
* - Redistributions of source code must retain the above
16-
* copyright notice, this list of conditions and the following
17-
* disclaimer.
18-
*
19-
* - Redistributions in binary form must reproduce the above
20-
* copyright notice, this list of conditions and the following
21-
* disclaimer in the documentation and/or other materials
22-
* provided with the distribution.
23-
*
24-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26-
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27-
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
28-
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
29-
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
30-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31-
* SOFTWARE.
325
*/
336

34-
#if !defined(IB_ADDR_H)
7+
#ifndef IB_ADDR_H
358
#define IB_ADDR_H
369

3710
#include <linux/in.h>

‎include/rdma/ib_cache.h‎

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,8 @@
1+
/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
12
/*
23
* Copyright (c) 2004 Topspin Communications. All rights reserved.
34
* Copyright (c) 2005 Intel Corporation. All rights reserved.
45
* Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
5-
*
6-
* This software is available to you under a choice of one of two
7-
* licenses. You may choose to be licensed under the terms of the GNU
8-
* General Public License (GPL) Version 2, available from the file
9-
* COPYING in the main directory of this source tree, or the
10-
* OpenIB.org BSD license below:
11-
*
12-
* Redistribution and use in source and binary forms, with or
13-
* without modification, are permitted provided that the following
14-
* conditions are met:
15-
*
16-
* - Redistributions of source code must retain the above
17-
* copyright notice, this list of conditions and the following
18-
* disclaimer.
19-
*
20-
* - Redistributions in binary form must reproduce the above
21-
* copyright notice, this list of conditions and the following
22-
* disclaimer in the documentation and/or other materials
23-
* provided with the distribution.
24-
*
25-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
26-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27-
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28-
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
29-
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
30-
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
31-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32-
* SOFTWARE.
336
*/
347

358
#ifndef _IB_CACHE_H

‎include/rdma/ib_cm.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
77
* Copyright (c) 2019, Mellanox Technologies inc. All rights reserved.
88
*/
9+
910
#ifndef IB_CM_H
1011
#define IB_CM_H
1112

‎include/rdma/ib_hdrs.h‎

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,6 @@
1+
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
12
/*
23
* Copyright(c) 2016 - 2018 Intel Corporation.
3-
*
4-
* This file is provided under a dual BSD/GPLv2 license. When using or
5-
* redistributing this file, you may do so under either license.
6-
*
7-
* GPL LICENSE SUMMARY
8-
*
9-
* This program is free software; you can redistribute it and/or modify
10-
* it under the terms of version 2 of the GNU General Public License as
11-
* published by the Free Software Foundation.
12-
*
13-
* This program is distributed in the hope that it will be useful, but
14-
* WITHOUT ANY WARRANTY; without even the implied warranty of
15-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16-
* General Public License for more details.
17-
*
18-
* BSD LICENSE
19-
*
20-
* Redistribution and use in source and binary forms, with or without
21-
* modification, are permitted provided that the following conditions
22-
* are met:
23-
*
24-
* - Redistributions of source code must retain the above copyright
25-
* notice, this list of conditions and the following disclaimer.
26-
* - Redistributions in binary form must reproduce the above copyright
27-
* notice, this list of conditions and the following disclaimer in
28-
* the documentation and/or other materials provided with the
29-
* distribution.
30-
* - Neither the name of Intel Corporation nor the names of its
31-
* contributors may be used to endorse or promote products derived
32-
* from this software without specific prior written permission.
33-
*
34-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
35-
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
36-
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
37-
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
38-
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
39-
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
40-
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
41-
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
42-
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
43-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
44-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
45-
*
464
*/
475

486
#ifndef IB_HDRS_H

‎include/rdma/ib_mad.h‎

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,13 @@
1+
/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
12
/*
23
* Copyright (c) 2004 Mellanox Technologies Ltd. All rights reserved.
34
* Copyright (c) 2004 Infinicon Corporation. All rights reserved.
45
* Copyright (c) 2004 Intel Corporation. All rights reserved.
56
* Copyright (c) 2004 Topspin Corporation. All rights reserved.
67
* Copyright (c) 2004-2006 Voltaire Corporation. All rights reserved.
7-
*
8-
* This software is available to you under a choice of one of two
9-
* licenses. You may choose to be licensed under the terms of the GNU
10-
* General Public License (GPL) Version 2, available from the file
11-
* COPYING in the main directory of this source tree, or the
12-
* OpenIB.org BSD license below:
13-
*
14-
* Redistribution and use in source and binary forms, with or
15-
* without modification, are permitted provided that the following
16-
* conditions are met:
17-
*
18-
* - Redistributions of source code must retain the above
19-
* copyright notice, this list of conditions and the following
20-
* disclaimer.
21-
*
22-
* - Redistributions in binary form must reproduce the above
23-
* copyright notice, this list of conditions and the following
24-
* disclaimer in the documentation and/or other materials
25-
* provided with the distribution.
26-
*
27-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
28-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
29-
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
30-
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
31-
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
32-
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
33-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
34-
* SOFTWARE.
358
*/
369

37-
#if !defined(IB_MAD_H)
10+
#ifndef IB_MAD_H
3811
#define IB_MAD_H
3912

4013
#include <linux/list.h>

‎include/rdma/ib_marshall.h‎

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,9 @@
1+
/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
12
/*
23
* Copyright (c) 2005-2006 Intel Corporation. All rights reserved.
3-
*
4-
* This software is available to you under a choice of one of two
5-
* licenses. You may choose to be licensed under the terms of the GNU
6-
* General Public License (GPL) Version 2, available from the file
7-
* COPYING in the main directory of this source tree, or the
8-
* OpenIB.org BSD license below:
9-
*
10-
* Redistribution and use in source and binary forms, with or
11-
* without modification, are permitted provided that the following
12-
* conditions are met:
13-
*
14-
* - Redistributions of source code must retain the above
15-
* copyright notice, this list of conditions and the following
16-
* disclaimer.
17-
*
18-
* - Redistributions in binary form must reproduce the above
19-
* copyright notice, this list of conditions and the following
20-
* disclaimer in the documentation and/or other materials
21-
* provided with the distribution.
22-
*
23-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25-
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26-
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
27-
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
28-
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
29-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30-
* SOFTWARE.
314
*/
325

33-
#if !defined(IB_USER_MARSHALL_H)
6+
#ifndef IB_USER_MARSHALL_H
347
#define IB_USER_MARSHALL_H
358

369
#include <rdma/ib_verbs.h>

‎include/rdma/ib_pack.h‎

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,6 @@
1+
/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
12
/*
23
* Copyright (c) 2004 Topspin Corporation. All rights reserved.
3-
*
4-
* This software is available to you under a choice of one of two
5-
* licenses. You may choose to be licensed under the terms of the GNU
6-
* General Public License (GPL) Version 2, available from the file
7-
* COPYING in the main directory of this source tree, or the
8-
* OpenIB.org BSD license below:
9-
*
10-
* Redistribution and use in source and binary forms, with or
11-
* without modification, are permitted provided that the following
12-
* conditions are met:
13-
*
14-
* - Redistributions of source code must retain the above
15-
* copyright notice, this list of conditions and the following
16-
* disclaimer.
17-
*
18-
* - Redistributions in binary form must reproduce the above
19-
* copyright notice, this list of conditions and the following
20-
* disclaimer in the documentation and/or other materials
21-
* provided with the distribution.
22-
*
23-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25-
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26-
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
27-
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
28-
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
29-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30-
* SOFTWARE.
314
*/
325

336
#ifndef IB_PACK_H

‎include/rdma/ib_pma.h‎

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,11 @@
1+
/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
12
/*
23
* Copyright (c) 2006, 2007, 2008, 2009, 2010 QLogic Corporation.
34
* All rights reserved.
45
* Copyright (c) 2005, 2006 PathScale, Inc. All rights reserved.
5-
*
6-
* This software is available to you under a choice of one of two
7-
* licenses. You may choose to be licensed under the terms of the GNU
8-
* General Public License (GPL) Version 2, available from the file
9-
* COPYING in the main directory of this source tree, or the
10-
* OpenIB.org BSD license below:
11-
*
12-
* Redistribution and use in source and binary forms, with or
13-
* without modification, are permitted provided that the following
14-
* conditions are met:
15-
*
16-
* - Redistributions of source code must retain the above
17-
* copyright notice, this list of conditions and the following
18-
* disclaimer.
19-
*
20-
* - Redistributions in binary form must reproduce the above
21-
* copyright notice, this list of conditions and the following
22-
* disclaimer in the documentation and/or other materials
23-
* provided with the distribution.
24-
*
25-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
26-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27-
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28-
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
29-
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
30-
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
31-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32-
* SOFTWARE.
336
*/
347

35-
#if !defined(IB_PMA_H)
8+
#ifndef IB_PMA_H
369
#define IB_PMA_H
3710

3811
#include <rdma/ib_mad.h>

‎include/rdma/ib_sa.h‎

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,8 @@
1+
/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
12
/*
23
* Copyright (c) 2004 Topspin Communications. All rights reserved.
34
* Copyright (c) 2005 Voltaire, Inc. All rights reserved.
45
* Copyright (c) 2006 Intel Corporation. All rights reserved.
5-
*
6-
* This software is available to you under a choice of one of two
7-
* licenses. You may choose to be licensed under the terms of the GNU
8-
* General Public License (GPL) Version 2, available from the file
9-
* COPYING in the main directory of this source tree, or the
10-
* OpenIB.org BSD license below:
11-
*
12-
* Redistribution and use in source and binary forms, with or
13-
* without modification, are permitted provided that the following
14-
* conditions are met:
15-
*
16-
* - Redistributions of source code must retain the above
17-
* copyright notice, this list of conditions and the following
18-
* disclaimer.
19-
*
20-
* - Redistributions in binary form must reproduce the above
21-
* copyright notice, this list of conditions and the following
22-
* disclaimer in the documentation and/or other materials
23-
* provided with the distribution.
24-
*
25-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
26-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27-
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28-
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
29-
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
30-
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
31-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32-
* SOFTWARE.
336
*/
347

358
#ifndef IB_SA_H

0 commit comments

Comments
 (0)