#17445: ar71xx/3.14 kernel: yaffs MTD_BLOCK_MAJOR undeclared
---------------------+------------------------
 Reporter:  raver@…  |      Owner:  developers
     Type:  defect   |     Status:  new
 Priority:  normal   |  Milestone:
Component:  kernel   |    Version:  Trunk
 Keywords:           |
---------------------+------------------------
 Hi,[[BR]]
 I began to experiment with the new 3.14 kernel on the ar71xx platform, and
 got this error.

 {{{
 #
 # configuration written to .config
 #
 make[5]: Leaving directory `/home/raver/OpenWrt/trunk/build_dir/target-
 mips_24kc_uClibc-0.9.33.2/linux-ar71xx_mikrotik/linux-3.14.14'
 make[5]: Entering directory `/home/raver/OpenWrt/trunk/build_dir/target-
 mips_24kc_uClibc-0.9.33.2/linux-ar71xx_mikrotik/linux-3.14.14'
   CHK     include/config/kernel.release
   CHK     include/generated/uapi/linux/version.h
   CHK     include/generated/utsrelease.h
   CALL    scripts/checksyscalls.sh
   CHK     include/generated/compile.h
   CC      fs/yaffs2/yaffs_mtdif.o
 fs/yaffs2/yaffs_mtdif.c: In function 'yaffs_get_mtd_device':
 fs/yaffs2/yaffs_mtdif.c:256:21: error: 'MTD_BLOCK_MAJOR' undeclared (first
 use in this function)
   if (MAJOR(sdev) != MTD_BLOCK_MAJOR)
                      ^
 fs/yaffs2/yaffs_mtdif.c:256:21: note: each undeclared identifier is
 reported only once for each function it appears in
 make[7]: *** [fs/yaffs2/yaffs_mtdif.o] Error 1
 make[6]: *** [fs/yaffs2] Error 2
 make[5]: *** [fs] Error 2
 make[5]: Leaving directory `/home/raver/OpenWrt/trunk/build_dir/target-
 mips_24kc_uClibc-0.9.33.2/linux-ar71xx_mikrotik/linux-3.14.14'
 make[4]: *** [/home/raver/OpenWrt/trunk/build_dir/target-
 mips_24kc_uClibc-0.9.33.2/linux-ar71xx_mikrotik/linux-3.14.14/.image]
 Error 2
 make[4]: Leaving directory `/home/raver/OpenWrt/trunk/target/linux/ar71xx'
 make[3]: *** [install] Error 2
 make[3]: Leaving directory `/home/raver/OpenWrt/trunk/target/linux'
 make[2]: *** [target/linux/install] Error 2
 make[2]: Leaving directory `/home/raver/OpenWrt/trunk'
 make[1]: *** [/home/raver/OpenWrt/trunk/staging_dir/target-
 mips_24kc_uClibc-0.9.33.2/stamp/.target_install] Error 2
 make[1]: Leaving directory `/home/raver/OpenWrt/trunk'
 make: *** [world] Error 2
 }}}

 I managed to solve it by applying the following patch.

 {{{
 --- a/fs/yaffs2/yaffs_mtdif.c   2014-08-07 17:59:32.296136842 +0100
 +++ b/fs/yaffs2/yaffs_mtdif.c   2014-08-07 18:29:45.384183130 +0100
 @@ -16,6 +16,7 @@
  #include "yaffs_mtdif.h"

  #include "linux/mtd/mtd.h"
 +#include "uapi/linux/major.h"
  #include "linux/types.h"
  #include "linux/time.h"
  #include "linux/mtd/nand.h"

 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/17445>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to