Skip to contentSkip to conversation

include stdint.h where mtd/mtd-user.h is included

PATCH New Gerhard Heift 1 participant 2 messages Jan 15, 2016 – Jan 16, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 include stdint.h where mtd/mtd-user.h is included

Since linux 4.4 mtd/mtd-user.h does not include stdint.h any more, so it has to be included explicitly.

See commit 137d36af4a53858b8db7ca83c8480247118b8bdf of the linux kernel.

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=137d36af4a53858b8db7ca83c8480247118b8bdf

---
 tools/env/fw_env.c               | 1 +
 tools/palmtreo680/flash_u-boot.c | 1 +
 2 files changed, 2 insertions(+)
tools/env/fw_env.c +1 -0
index 39f7333..098c7c7 100644
@@ -29,6 +29,7 @@
 # include <linux/mtd/mtd.h>
 #else
 # define  __user	/* nothing */
+# include <stdint.h>
 # include <mtd/mtd-user.h>
 #endif
 
tools/palmtreo680/flash_u-boot.c +1 -0
index 3d8296f..7a9b37d 100644
@@ -28,6 +28,7 @@
 #include <sys/types.h>
 #include <unistd.h>
 #include <errno.h>
+#include <stdint.h>
 #include <mtd/mtd-user.h>
 #include "libmtd.h"
 
Signature · 1 line
2.7.0.rc3
#1 lore raw

PATCH 1/1 include stdint.h where mtd/mtd-user.h is included

As Thomas Petazzoni pointed out in [1] this issue is already fixed by commit 69bf2d2fafe64349be3c3ef1256e3c68f812bb25 [2].
I fixed 2015.10 for me and ported the patch forward to 2016.01 without further verification if it is still needed and not fixed otherwise.

Regards,
Gerhard

[1] http://lists.busybox.net/pipermail/buildroot/2016-January/149611.html
[2] http://git.denx.de/?p=u-boot.git;a=commit;h=69bf2d2fafe64349be3c3ef1256e3c68f812bb25

2016-01-15 19:11 GMT+01:00 Gerhard Heift <[email protected]>:

Quoted 40 lines

Since linux 4.4 mtd/mtd-user.h does not include stdint.h any more, so it has to be included explicitly.

See commit 137d36af4a53858b8db7ca83c8480247118b8bdf of the linux kernel.

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=137d36af4a53858b8db7ca83c8480247118b8bdf

---
 tools/env/fw_env.c               | 1 +
 tools/palmtreo680/flash_u-boot.c | 1 +
 2 files changed, 2 insertions(+)
tools/env/fw_env.c +1 -0
index 39f7333..098c7c7 100644
@@ -29,6 +29,7 @@
 # include <linux/mtd/mtd.h>
 #else
 # define  __user       /* nothing */
+# include <stdint.h>
 # include <mtd/mtd-user.h>
 #endif
 
tools/palmtreo680/flash_u-boot.c +1 -1
index 3d8296f..7a9b37d 100644
@@ -28,6 +28,7 @@
 #include <sys/types.h>
 #include <unistd.h>
 #include <errno.h>
+#include <stdint.h>
 #include <mtd/mtd-user.h>
 #include "libmtd.h"
 
--

2.7.0.rc3