Skip to content

Commit

Permalink
Reformat copyright/license header in files with an SPDX ID
Browse files Browse the repository at this point in the history
Some files were committed with an SPDX license identifier before the
rules were defined [1]. Reformat them accordingly.

[1] documentation/copyright_and_license_headers.rst

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Joakim Bech <joakim.bech@linaro.org>
  • Loading branch information
jforissier committed Jan 10, 2018
1 parent 537ee74 commit fb7ef46
Show file tree
Hide file tree
Showing 23 changed files with 23 additions and 76 deletions.
4 changes: 1 addition & 3 deletions core/arch/arm/crypto/aes-gcm-ce.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2017, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#include <crypto/internal_aes-gcm.h>
Expand Down
3 changes: 1 addition & 2 deletions core/arch/arm/crypto/ghash-ce-core_a32.S
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Accelerated GHASH implementation with ARMv8 PMULL instructions.
*
* Copyright (C) 2014 - 2017 Linaro Ltd. <ard.biesheuvel@linaro.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#include <arm32_macros.S>
Expand Down
3 changes: 1 addition & 2 deletions core/arch/arm/crypto/ghash-ce-core_a64.S
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Accelerated GHASH implementation with ARMv8 PMULL instructions.
*
* Copyright (C) 2014 - 2017 Linaro Ltd. <ard.biesheuvel@linaro.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#include <arm64_macros.S>
Expand Down
4 changes: 1 addition & 3 deletions core/arch/arm/include/crypto/ghash-ce-core.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2017, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#ifndef __GHASH_CE_CORE_H
Expand Down
3 changes: 1 addition & 2 deletions core/arch/arm/kernel/secstor_ta.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2017, Linaro Limited
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#include <tee/tadb.h>
Expand Down
4 changes: 1 addition & 3 deletions core/arch/arm/pta/core_mutex_tests.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2017, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#include <atomic.h>
Expand Down
3 changes: 1 addition & 2 deletions core/arch/arm/pta/secstor_ta_mgmt.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2017, Linaro Limited
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#include <kernel/pseudo_ta.h>
Expand Down
2 changes: 1 addition & 1 deletion core/crypto/aes-gcm-ghash-tbl.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: Apache-2.0
/*
* NIST SP800-38D compliant GCM implementation
*
* Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
Expand Down
4 changes: 1 addition & 3 deletions core/crypto/aes-gcm-private.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2017, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#include <crypto/internal_aes-gcm.h>
Expand Down
4 changes: 1 addition & 3 deletions core/crypto/aes-gcm-sw.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2017, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#include <assert.h>
Expand Down
4 changes: 1 addition & 3 deletions core/crypto/aes-gcm.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2017, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#include <assert.h>
Expand Down
4 changes: 1 addition & 3 deletions core/crypto/crypto.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2017, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#include <compiler.h>
Expand Down
3 changes: 1 addition & 2 deletions core/crypto/signed_hdr.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2015-2017, Linaro Limited
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#include <crypto/crypto.h>
Expand Down
4 changes: 1 addition & 3 deletions core/include/crypto/aes-ccm.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2017, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#ifndef __CRYPTO_AES_CCM_H
Expand Down
4 changes: 1 addition & 3 deletions core/include/crypto/aes-gcm.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2017, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#ifndef __CRYPTO_AES_GCM_H
Expand Down
2 changes: 1 addition & 1 deletion core/include/crypto/internal_aes-gcm.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2017, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#ifndef __CRYPTO_INTERNAL_AES_GCM_H
Expand Down
3 changes: 1 addition & 2 deletions core/include/kernel/refcount.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2017, Linaro Limited
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#ifndef __KERNEL_REFCOUNT_H
Expand Down
3 changes: 1 addition & 2 deletions core/include/tee/tadb.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2017, Linaro Limited
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#ifndef __TEE_TADB_H
Expand Down
3 changes: 1 addition & 2 deletions core/kernel/refcount.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2017, Linaro Limited
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#include <assert.h>
Expand Down
4 changes: 1 addition & 3 deletions core/lib/libtomcrypt/src/encauth/gcm/gcm_mult_h_arm_ce.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2017, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#include <crypto/ghash-ce-core.h>
Expand Down
3 changes: 1 addition & 2 deletions core/tee/tadb.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2017, Linaro Limited
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#include <bitstring.h>
Expand Down
3 changes: 1 addition & 2 deletions lib/libutee/include/pta_secstor_ta_mgmt.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2017, Linaro Limited
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#ifndef __PTA_SECSTOR_TA_MGMT_H
Expand Down
25 changes: 1 addition & 24 deletions lib/libutils/ext/include/atomic.h
Original file line number Diff line number Diff line change
@@ -1,29 +1,6 @@
/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2016-2017, Linaro Limited
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef __ATOMIC_H
Expand Down

0 comments on commit fb7ef46

Please sign in to comment.