coding guidelines: comply with MISRA C:2012 Rule 11.2
avoid convert pointers to incomplete type using the pointer to first item Signed-off-by: Hess Nathan <nhess@baumer.com>
This commit is contained in:
parent
5258b528f7
commit
32af724fbb
@ -36,8 +36,8 @@
|
||||
#define Z_VIRT_RAM_END (Z_VIRT_RAM_START + Z_VIRT_RAM_SIZE)
|
||||
|
||||
/* Boot-time virtual location of the kernel image. */
|
||||
#define Z_KERNEL_VIRT_START ((uint8_t *)(&z_mapped_start))
|
||||
#define Z_KERNEL_VIRT_END ((uint8_t *)(&z_mapped_end))
|
||||
#define Z_KERNEL_VIRT_START ((uint8_t *)&z_mapped_start[0])
|
||||
#define Z_KERNEL_VIRT_END ((uint8_t *)&z_mapped_end[0])
|
||||
#define Z_KERNEL_VIRT_SIZE (Z_KERNEL_VIRT_END - Z_KERNEL_VIRT_START)
|
||||
|
||||
#define Z_VM_OFFSET ((CONFIG_KERNEL_VM_BASE + CONFIG_KERNEL_VM_OFFSET) - \
|
||||
|
||||
@ -929,8 +929,8 @@ static int app_shmem_bss_zero(void)
|
||||
struct z_app_region *region, *end;
|
||||
|
||||
|
||||
end = (struct z_app_region *)&__app_shmem_regions_end;
|
||||
region = (struct z_app_region *)&__app_shmem_regions_start;
|
||||
end = (struct z_app_region *)&__app_shmem_regions_end[0];
|
||||
region = (struct z_app_region *)&__app_shmem_regions_start[0];
|
||||
|
||||
for ( ; region < end; region++) {
|
||||
#if defined(CONFIG_DEMAND_PAGING) && !defined(CONFIG_LINKER_GENERIC_SECTIONS_PRESENT_AT_BOOT)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user