diff mbox

[U-Boot,1/9] dm: cpu: Fix undefined ENOSYS build error

Message ID BLU437-SMTP3E9436B64FEC57DB33754BFBE0@phx.gbl
State Superseded
Delegated to: Simon Glass
Headers show

Commit Message

Bin Meng June 9, 2015, 7:45 a.m. UTC
Include <errno.h> otherwise ENOSYS is undefined.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---

 common/cmd_cpu.c         | 1 +
 drivers/cpu/cpu-uclass.c | 1 +
 2 files changed, 2 insertions(+)

Comments

Simon Glass June 11, 2015, 11:38 p.m. UTC | #1
On 9 June 2015 at 01:45, Bin Meng <bmeng.cn@gmail.com> wrote:
>
> Include <errno.h> otherwise ENOSYS is undefined.
>
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
> ---
>
>  common/cmd_cpu.c         | 1 +
>  drivers/cpu/cpu-uclass.c | 1 +
>  2 files changed, 2 insertions(+)

Acked-by: Simon Glass <sjg@chromium.org>
diff mbox

Patch

diff --git a/common/cmd_cpu.c b/common/cmd_cpu.c
index c3e229f..b4af64f 100644
--- a/common/cmd_cpu.c
+++ b/common/cmd_cpu.c
@@ -9,6 +9,7 @@ 
 #include <command.h>
 #include <cpu.h>
 #include <dm.h>
+#include <errno.h>
 
 static const char *cpu_feature_name[CPU_FEAT_COUNT] = {
 	"L1 cache",
diff --git a/drivers/cpu/cpu-uclass.c b/drivers/cpu/cpu-uclass.c
index ab18ee2..aa0267c 100644
--- a/drivers/cpu/cpu-uclass.c
+++ b/drivers/cpu/cpu-uclass.c
@@ -8,6 +8,7 @@ 
 #include <common.h>
 #include <cpu.h>
 #include <dm.h>
+#include <errno.h>
 #include <dm/lists.h>
 #include <dm/root.h>