diff mbox series

dm: Fix build error when OF_CONTROL is not set

Message ID 20200721131609.29650-1-dmurphy@ti.com
State Superseded
Delegated to: Simon Glass
Headers show
Series dm: Fix build error when OF_CONTROL is not set | expand

Commit Message

Dan Murphy July 21, 2020, 1:16 p.m. UTC
With OF_CONTROL disabled the build fails for
include/dm/read.h:932:10: error: ‘ENOTSUPP’ undeclared (first use in this function)

Fixes: 134f3c366d78 ("dm: core: gracefully handle alias seq without of")
Signed-off-by: Dan Murphy <dmurphy@ti.com>
---
 include/dm/read.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Dan Murphy July 22, 2020, 5:06 p.m. UTC | #1
Hello

On 7/21/20 8:16 AM, Dan Murphy wrote:
> With OF_CONTROL disabled the build fails for
> include/dm/read.h:932:10: error: ‘ENOTSUPP’ undeclared (first use in this function)
>
> Fixes: 134f3c366d78 ("dm: core: gracefully handle alias seq without of")

Need to fix this SHA.

Dan
Simon Glass July 23, 2020, 6:24 p.m. UTC | #2
On Tue, 21 Jul 2020 at 07:16, Dan Murphy <dmurphy@ti.com> wrote:
>
> With OF_CONTROL disabled the build fails for
> include/dm/read.h:932:10: error: ‘ENOTSUPP’ undeclared (first use in this function)
>
> Fixes: 134f3c366d78 ("dm: core: gracefully handle alias seq without of")
> Signed-off-by: Dan Murphy <dmurphy@ti.com>
> ---
>  include/dm/read.h | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>
Dan Murphy July 23, 2020, 6:38 p.m. UTC | #3
Simon

On 7/23/20 1:24 PM, Simon Glass wrote:
> On Tue, 21 Jul 2020 at 07:16, Dan Murphy <dmurphy@ti.com> wrote:
>> With OF_CONTROL disabled the build fails for
>> include/dm/read.h:932:10: error: ‘ENOTSUPP’ undeclared (first use in this function)
>>
>> Fixes: 134f3c366d78 ("dm: core: gracefully handle alias seq without of")
>> Signed-off-by: Dan Murphy <dmurphy@ti.com>
>> ---
>>   include/dm/read.h | 2 ++
>>   1 file changed, 2 insertions(+)
> Reviewed-by: Simon Glass <sjg@chromium.org>

v2 needs to be taken as the Fixes tag is not correct in v1.

Dan
diff mbox series

Patch

diff --git a/include/dm/read.h b/include/dm/read.h
index f02ec9595413..b1a610854403 100644
--- a/include/dm/read.h
+++ b/include/dm/read.h
@@ -9,6 +9,8 @@ 
 #ifndef _DM_READ_H
 #define _DM_READ_H
 
+#include <linux/errno.h>
+
 #include <dm/fdtaddr.h>
 #include <dm/ofnode.h>
 #include <dm/uclass.h>