arm: add include guard for offset files

MISRA-C directive 4.10 requires that files being included must
prevent itself from being included more than once. So add
include guards to the offset files, even though they are C
source files.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2020-07-21 14:00:14 -07:00 committed by Ioannis Glaropoulos
parent 49199641b9
commit 3f6ac9fdfd
2 changed files with 10 additions and 0 deletions

View File

@ -22,6 +22,9 @@
* completeness.
*/
#ifndef _ARM_OFFSETS_INC_
#define _ARM_OFFSETS_INC_
#include <kernel.h>
#include <kernel_arch_data.h>
#include <kernel_offsets.h>
@ -88,3 +91,5 @@ GEN_ABSOLUTE_SYM(_K_THREAD_NO_FLOAT_SIZEOF, sizeof(struct k_thread) -
#else
GEN_ABSOLUTE_SYM(_K_THREAD_NO_FLOAT_SIZEOF, sizeof(struct k_thread));
#endif
#endif /* _ARM_OFFSETS_INC_ */

View File

@ -22,8 +22,13 @@
* completeness.
*/
#ifndef _ARM_OFFSETS_INC_
#define _ARM_OFFSETS_INC_
#include <kernel.h>
#include <kernel_arch_data.h>
#include <kernel_offsets.h>
GEN_OFFSET_SYM(_thread_arch_t, swap_return_value);
#endif /* _ARM_OFFSETS_INC_ */