Skip to content
Snippets Groups Projects
Commit 65dfe8bc authored by Tuvshinzaya Erdenekhuu's avatar Tuvshinzaya Erdenekhuu Committed by tarek-arm
Browse files

arch: Fix violation of required MISRA 5.7


Some variable had same name as type.

Change variable name or type name to resolve conflict.

Co-authored-by: Tomás Agustín González Orlando's avatarTomás Agustín González Orlando <tomasagustin.gonzalezorlando@arm.com>
Signed-off-by: default avatarTuvshinzaya Erdenekhuu <tuvshinzaya.erdenekhuu@arm.com>
Signed-off-by: Tomás Agustín González Orlando's avatarTomás Agustín González Orlando <tomasagustin.gonzalezorlando@arm.com>
Change-Id: Ib9ad4b88b2695e6b4310ca890c9b0121f18ab4cd
parent c0468994
No related branches found
No related tags found
No related merge requests found
/*
* Arm SCP/MCP Software
* Copyright (c) 2015-2021, Arm Limited and Contributors. All rights reserved.
* Copyright (c) 2015-2022, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
......@@ -54,16 +54,16 @@ static_assert(
* Entry indices are offset by -1 relative to their interrupt numbers, as no
* interrupt may have an interrupt number of zero.
*/
struct callback {
struct irq_callback {
void (*func)(uintptr_t param);
uintptr_t param;
};
static struct callback *callback;
static struct irq_callback *callback;
static void irq_global(void)
{
struct callback *entry = &callback[__get_IPSR() - 1];
struct irq_callback *entry = &callback[__get_IPSR() - 1];
entry->func(entry->param);
}
......@@ -164,7 +164,7 @@ static int set_isr_irq_param(
void (*isr)(uintptr_t param),
uintptr_t parameter)
{
struct callback *entry;
struct irq_callback *entry;
if (interrupt >= irq_count) {
return FWK_E_PARAM;
}
......@@ -187,7 +187,7 @@ static int set_isr_nmi(void (*isr)(void))
static int set_isr_nmi_param(void (*isr)(uintptr_t param), uintptr_t parameter)
{
struct callback *entry;
struct irq_callback *entry;
entry = &callback[NVIC_USER_IRQ_OFFSET + (int)NonMaskableInt_IRQn - 1];
entry->func = isr;
......
/*
* Arm SCP/MCP Software
* Copyright (c) 2015-2021, Arm Limited and Contributors. All rights reserved.
* Copyright (c) 2015-2022, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
......@@ -27,7 +27,7 @@ extern char __stackheap_end__;
/*!
* \brief Architecture memory manager context.
*/
static struct arch_mm_ctx {
static struct arch_mm_ctx_str {
/*!
* \brief Current heap break address.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment