[PATCH] dm: Fix build error when OF_CONTROL is not set

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(+)
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>

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

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

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
participants (2)
-
Dan Murphy
-
Simon Glass