Skip to contentSkip to conversation

dm: Fix build error when OF_CONTROL is not set

PATCH New Dan Murphy 2 participants 3 messages Jul 23, 2020 – Jul 28, 2020 1 message not in the archive

lore
Share & tools
lore

Dan Murphy

author
#0 lore raw

PATCH v2 1/1 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)
932 | return -ENOTSUPP;

Fixes 45224e8f2691 ("dm: core: gracefully handle alias seq without of")
---
 include/dm/read.h | 2 ++
 1 file changed, 2 insertions(+)
include/dm/read.h +2 -0
index f02ec9595413..b1a610854403 100644
@@ -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>
Signature · 1 line
2.27.0
#1 lore raw

PATCH v2 1/1 dm: Fix build error when OF_CONTROL is not set

Quoted 11 lines · Dan Murphy

With OF_CONTROL disabled the build fails for
include/dm/read.h:932:10: error: ?ENOTSUPP? undeclared (first use in this function)
932 | return -ENOTSUPP;

Fixes 45224e8f2691 ("dm: core: gracefully handle alias seq without of")
---
 include/dm/read.h | 2 ++
 1 file changed, 2 insertions(+)

A message that is not in the archive (sent off-list or not yet received): CAPnjgZ1r2KFgJb4aS3tXr7awOxMaGLeTU6cUJW89vWXQF+E_yQ@mail.gmail.com

#3 lore raw

PATCH v2 1/1 dm: Fix build error when OF_CONTROL is not set

Quoted 11 lines · Dan Murphy

With OF_CONTROL disabled the build fails for
include/dm/read.h:932:10: error: ?ENOTSUPP? undeclared (first use in this function)
932 | return -ENOTSUPP;

Fixes 45224e8f2691 ("dm: core: gracefully handle alias seq without of")
---
 include/dm/read.h | 2 ++
 1 file changed, 2 insertions(+)

Applied to u-boot-dm, thanks!