From 336d0b64de492651ede342befa95feb7aec0e14c Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Fri, 14 Jan 2022 18:05:01 +0100 Subject: [PATCH] riscv: fix panic_reasons being an instance of enum, not type name --- .../riscv/include/esp_private/panic_reason.h | 22 ++++++------------- tools/ci/check_copyright_ignore.txt | 1 - 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/components/riscv/include/esp_private/panic_reason.h b/components/riscv/include/esp_private/panic_reason.h index 6cb14d8c5c..09da6cbb43 100644 --- a/components/riscv/include/esp_private/panic_reason.h +++ b/components/riscv/include/esp_private/panic_reason.h @@ -1,19 +1,11 @@ -// Copyright 2020 Espressif Systems (Shanghai) PTE LTD -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +/* + * SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once -enum _panic_reasons { +typedef enum { PANIC_RSN_NONE = 0, PANIC_RSN_INTWDT_CPU0, #if SOC_CPU_NUM > 1 @@ -24,4 +16,4 @@ enum _panic_reasons { PANIC_RSN_MEMPROT, #endif PANIC_RSN_COUNT -} panic_reasons; +} panic_reasons_t; diff --git a/tools/ci/check_copyright_ignore.txt b/tools/ci/check_copyright_ignore.txt index 22f6f063c8..62a4264142 100644 --- a/tools/ci/check_copyright_ignore.txt +++ b/tools/ci/check_copyright_ignore.txt @@ -1511,7 +1511,6 @@ components/pthread/test/test_pthread.c components/pthread/test/test_pthread_cond_var.c components/pthread/test/test_pthread_cxx.cpp components/pthread/test/test_pthread_local_storage.c -components/riscv/include/esp_private/panic_reason.h components/riscv/include/riscv/csr.h components/riscv/include/riscv/encoding.h components/riscv/include/riscv/instruction_decode.h