diff options
author | Ledion Daja <ledion.daja@arm.com> | 2023-02-17 09:37:58 +0100 |
---|---|---|
committer | Ledion Daja <ledion.daja@arm.com> | 2023-03-14 11:21:33 +0100 |
commit | b0aacb484c2316b71909b3b7cb6968879e5bc8ca (patch) | |
tree | f8b78eb812023ef9d880fc6f404ff55af7cfc76c /applications/driver_unit_tests | |
parent | 00b8e7beb4fef59c5bef3bc963dfff5bd11718b6 (diff) | |
download | ethos-u-core-platform-b0aacb484c2316b71909b3b7cb6968879e5bc8ca.tar.gz |
Fix SEI CERT coding standard warnings
Change-Id: I47fdf29a50440c82fd9ccf111a846bf87e8a9e29
Diffstat (limited to 'applications/driver_unit_tests')
-rw-r--r-- | applications/driver_unit_tests/command_stream.cpp | 4 | ||||
-rw-r--r-- | applications/driver_unit_tests/conv.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/applications/driver_unit_tests/command_stream.cpp b/applications/driver_unit_tests/command_stream.cpp index 6ec8cba..d2e62ce 100644 --- a/applications/driver_unit_tests/command_stream.cpp +++ b/applications/driver_unit_tests/command_stream.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Arm Limited. All rights reserved. + * SPDX-FileCopyrightText: Copyright 2021-2023 Arm Limited and/or its affiliates <open-source-office@arm.com> * * SPDX-License-Identifier: Apache-2.0 * @@ -66,7 +66,7 @@ Pmu::Pmu(ethosu_driver *_drv, const PmuEvents &_config) : drv(_drv), config(_con // Configure event types for (size_t i = 0; i < config.size(); i++) { ETHOSU_PMU_Set_EVTYPER(drv, i, config[i]); - ETHOSU_PMU_CNTR_Enable(drv, 1 << i); + ETHOSU_PMU_CNTR_Enable(drv, 1u << i); } } diff --git a/applications/driver_unit_tests/conv.cpp b/applications/driver_unit_tests/conv.cpp index 9e3dcc9..4a29db8 100644 --- a/applications/driver_unit_tests/conv.cpp +++ b/applications/driver_unit_tests/conv.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Arm Limited. + * SPDX-FileCopyrightText: Copyright 2021-2023 Arm Limited and/or its affiliates <open-source-office@arm.com> * * SPDX-License-Identifier: Apache-2.0 * @@ -288,7 +288,7 @@ int main() { // Expected output data DataPointer expectedPointer(expected0, sizeof(expected0)); - printf("Running %d iterations using sync API...\n", repeat); + printf("Running %u iterations using sync API...\n", repeat); // Clear PMU cs.getPmu().clear(); @@ -312,7 +312,7 @@ int main() { printf("\n"); // Test using the async API - printf("Running %d iterations using async API...\n", repeat); + printf("Running %u iterations using async API...\n", repeat); // Clear PMU cs.getPmu().clear(); |