mirror of
https://github.com/OpenAMP/libmetal.git
synced 2026-09-20 16:28:04 +08:00
Update exemple and tests to include metal/errno.h
Modify all the libmetal exemples and tests file to include <metal/errno.h> instead of <errno.h> Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
#include <metal/atomic.h>
|
||||
#include <metal/alloc.h>
|
||||
#include <metal/irq.h>
|
||||
#include <errno.h>
|
||||
#include <metal/errno.h>
|
||||
#include <metal/sys.h>
|
||||
#include <metal/cpu.h>
|
||||
#include <metal/io.h>
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
#include <metal/alloc.h>
|
||||
#include <metal/device.h>
|
||||
#include <metal/irq.h>
|
||||
#include <errno.h>
|
||||
#include <metal/errno.h>
|
||||
#include "common.h"
|
||||
|
||||
#define BUF_SIZE_MAX 512
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <metal/atomic.h>
|
||||
#include <metal/alloc.h>
|
||||
#include <metal/irq.h>
|
||||
#include <errno.h>
|
||||
#include <metal/errno.h>
|
||||
#include <metal/sys.h>
|
||||
#include <metal/cpu.h>
|
||||
#include <metal/io.h>
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
#include <metal/alloc.h>
|
||||
#include <metal/device.h>
|
||||
#include <metal/irq.h>
|
||||
#include <errno.h>
|
||||
#include <metal/errno.h>
|
||||
#include "common.h"
|
||||
|
||||
#define BUF_SIZE_MAX 512
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <metal/errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <metal/atomic.h>
|
||||
#include <metal/io.h>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <metal/device.h>
|
||||
#include <metal/irq.h>
|
||||
#include <errno.h>
|
||||
#include <metal/errno.h>
|
||||
#include "common.h"
|
||||
|
||||
/* Shared memory offsets */
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <metal/device.h>
|
||||
#include <metal/irq.h>
|
||||
#include <errno.h>
|
||||
#include <metal/errno.h>
|
||||
#include <time.h>
|
||||
#include "common.h"
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <errno.h>
|
||||
#include <metal/errno.h>
|
||||
#include <string.h>
|
||||
#include <metal/io.h>
|
||||
#include <metal/alloc.h>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
* 10. Clean up: disable IPI interrupt, deregister the IPI interrupt handler.
|
||||
*/
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <metal/errno.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <metal/atomic.h>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
*/
|
||||
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <metal/errno.h>
|
||||
#include <metal/atomic.h>
|
||||
#include <metal/io.h>
|
||||
#include <metal/device.h>
|
||||
|
||||
+1
-1
@@ -4,12 +4,12 @@
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "metal-test.h"
|
||||
#include <metal/compiler.h>
|
||||
#include <metal/errno.h>
|
||||
#include <metal/sys.h>
|
||||
#include <metal/utilities.h>
|
||||
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include "FreeRTOS.h"
|
||||
#include "task.h"
|
||||
|
||||
#include "metal-test.h"
|
||||
#include <metal/alloc.h>
|
||||
#include <metal/errno.h>
|
||||
#include <metal/log.h>
|
||||
#include <metal/sys.h>
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include "metal-test.h"
|
||||
#include <metal/atomic.h>
|
||||
#include <metal/errno.h>
|
||||
#include <metal/log.h>
|
||||
#include <metal/sys.h>
|
||||
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
|
||||
/* We need to find the internal MAX_IRQS limit */
|
||||
/* Could be retrieved from platform specific files in the future */
|
||||
#define METAL_INTERNAL
|
||||
|
||||
#include "metal-test.h"
|
||||
#include <metal/errno.h>
|
||||
#include <metal/irq.h>
|
||||
#include <metal/log.h>
|
||||
#include <metal/sys.h>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <metal/errno.h>
|
||||
#include <string.h>
|
||||
#include "FreeRTOS.h"
|
||||
#include "task.h"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <metal/errno.h>
|
||||
#include "FreeRTOS.h"
|
||||
#include "task.h"
|
||||
#include <metal/sys.h>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <metal/errno.h>
|
||||
|
||||
/* We need to find the internal MAX_IRQS limit */
|
||||
/* Could be retrieved from platform specific files in the future */
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <metal/errno.h>
|
||||
#include <sys/eventfd.h>
|
||||
|
||||
/* We need to find the internal MAX_IRQS limit */
|
||||
|
||||
Reference in New Issue
Block a user