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:
parent
49199641b9
commit
3f6ac9fdfd
@ -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_ */
|
||||
|
||||
@ -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_ */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user