Commit 7fabe1a8 authored by Roberto Vargas's avatar Roberto Vargas
Browse files

Fix MISRA rule 8.4 in common code


Rule 8.4: A compatible declaration shall be visible when
          an object or function with external linkage is defined.

Change-Id: I26e042cb251a6f9590afa1340fdac73e42f23979
Signed-off-by: default avatarRoberto Vargas <roberto.vargas@arm.com>
Showing with 15 additions and 7 deletions
+15 -7
...@@ -386,12 +386,14 @@ int platform_setup_pm(const plat_pm_ops_t **); ...@@ -386,12 +386,14 @@ int platform_setup_pm(const plat_pm_ops_t **);
unsigned int plat_get_aff_count(unsigned int, unsigned long); unsigned int plat_get_aff_count(unsigned int, unsigned long);
unsigned int plat_get_aff_state(unsigned int, unsigned long); unsigned int plat_get_aff_state(unsigned int, unsigned long);
#else /* __ENABLE_PLAT_COMPAT__ */ #else /* __ENABLE_PLAT_COMPAT__ */
/* /*
* The below function enable Trusted Firmware components like SPDs which * The below function enable Trusted Firmware components like SPDs which
* haven't migrated to the new platform API to compile on platforms which * haven't migrated to the new platform API to compile on platforms which
* have the compatibility layer disabled. * have the compatibility layer disabled.
*/ */
unsigned int platform_core_pos_helper(unsigned long mpidr);
unsigned int platform_get_core_pos(unsigned long mpidr) __deprecated; unsigned int platform_get_core_pos(unsigned long mpidr) __deprecated;
#endif /* __ENABLE_PLAT_COMPAT__ */ #endif /* __ENABLE_PLAT_COMPAT__ */
......
/* /*
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include <arch.h> #include <arch.h>
#include <arch_helpers.h> #include <arch_helpers.h>
#include <pubsub.h> #include <pubsub.h>
#include <spe.h>
/* /*
* The assembler does not yet understand the psb csync mnemonic * The assembler does not yet understand the psb csync mnemonic
......
/* /*
* Copyright (c) 2013-2014, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <debug.h> #include <debug.h>
#include <stdlib.h>
/* /*
* This is a basic implementation. This could be improved. * This is a basic implementation. This could be improved.
......
/* /*
* Copyright (c) 2015, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <debug.h> #include <debug.h>
#include <stdlib.h>
void exit(int v) void exit(int v)
{ {
......
/* /*
* Copyright (c) 2015, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <stdio.h>
#include <sys/cdefs.h> #include <sys/cdefs.h>
/* /*
......
...@@ -36,6 +36,7 @@ void bl2_plat_preload_setup(void) ...@@ -36,6 +36,7 @@ void bl2_plat_preload_setup(void)
{ {
} }
#if LOAD_IMAGE_V2
int bl2_plat_handle_pre_image_load(unsigned int image_id) int bl2_plat_handle_pre_image_load(unsigned int image_id)
{ {
return 0; return 0;
...@@ -45,6 +46,7 @@ int bl2_plat_handle_post_image_load(unsigned int image_id) ...@@ -45,6 +46,7 @@ int bl2_plat_handle_post_image_load(unsigned int image_id)
{ {
return 0; return 0;
} }
#endif
int plat_try_next_boot_source(void) int plat_try_next_boot_source(void)
{ {
......
...@@ -33,7 +33,7 @@ static int32_t smccc_arch_features(u_register_t arg) ...@@ -33,7 +33,7 @@ static int32_t smccc_arch_features(u_register_t arg)
/* /*
* Top-level Arm Architectural Service SMC handler. * Top-level Arm Architectural Service SMC handler.
*/ */
uintptr_t arm_arch_svc_smc_handler(uint32_t smc_fid, static uintptr_t arm_arch_svc_smc_handler(uint32_t smc_fid,
u_register_t x1, u_register_t x1,
u_register_t x2, u_register_t x2,
u_register_t x3, u_register_t x3,
......
/* /*
* Copyright (c) 2014-2017, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -58,7 +58,7 @@ static int32_t std_svc_setup(void) ...@@ -58,7 +58,7 @@ static int32_t std_svc_setup(void)
* Top-level Standard Service SMC handler. This handler will in turn dispatch * Top-level Standard Service SMC handler. This handler will in turn dispatch
* calls to PSCI SMC handler * calls to PSCI SMC handler
*/ */
uintptr_t std_svc_smc_handler(uint32_t smc_fid, static uintptr_t std_svc_smc_handler(uint32_t smc_fid,
u_register_t x1, u_register_t x1,
u_register_t x2, u_register_t x2,
u_register_t x3, u_register_t x3,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment