dorimanx / exfat-nofuse

Android ARM Linux non-fuse read/write kernel driver for exFat and VFat Android file systems
GNU General Public License v2.0
707 stars 326 forks source link

build failed for kernel 4.4.114 #129

Open viperomega opened 6 years ago

viperomega commented 6 years ago

make -C /lib/modules/4.4.114-42-default/build M=/root/exfat-nofuse/git/exfat-nofuse modules make[1]: Entering directory '/usr/src/linux-4.4.114-42-obj/x86_64/default' CC [M] /root/exfat-nofuse/git/exfat-nofuse/exfat_super.o /root/exfat-nofuse/git/exfat-nofuse/exfat_super.c: In function ‘exfat_direct_IO’: /root/exfat-nofuse/git/exfat-nofuse/exfat_super.c:1737:6: warning: passing argument 4 of ‘blockdev_direct_IO’ makes pointer from integer without a cast [enabled by default] offset, exfat_get_block); ^ In file included from /usr/src/linux-4.4.114-42/include/linux/pagemap.h:8:0, from /root/exfat-nofuse/git/exfat-nofuse/exfat_super.c:57: /usr/src/linux-4.4.114-42/include/linux/fs.h:2713:23: note: expected ‘int ()(struct inode , sector_t, struct buffer_head , int)’ but argument is of type ‘loff_t’ static inline ssize_t blockdev_direct_IO(struct kiocb iocb, ^ /root/exfat-nofuse/git/exfat-nofuse/exfat_super.c:1737:6: error: too many arguments to function ‘blockdev_direct_IO’ offset, exfat_get_block); ^ In file included from /usr/src/linux-4.4.114-42/include/linux/pagemap.h:8:0, from /root/exfat-nofuse/git/exfat-nofuse/exfat_super.c:57: /usr/src/linux-4.4.114-42/include/linux/fs.h:2713:23: note: declared here static inline ssize_t blockdev_direct_IO(struct kiocb *iocb, ^ /root/exfat-nofuse/git/exfat-nofuse/exfat_super.c: At top level: /root/exfat-nofuse/git/exfat-nofuse/exfat_super.c:1799:2: warning: initialization from incompatible pointer type [enabled by default] .direct_IO = exfat_direct_IO, ^ /root/exfat-nofuse/git/exfat-nofuse/exfat_super.c:1799:2: warning: (near initialization for ‘exfat_aops.direct_IO’) [enabled by default] /usr/src/linux-4.4.114-42/scripts/Makefile.build:270: recipe for target '/root/exfat-nofuse/git/exfat-nofuse/exfat_super.o' failed make[4]: [/root/exfat-nofuse/git/exfat-nofuse/exfat_super.o] Error 1 /usr/src/linux-4.4.114-42/Makefile:1434: recipe for target 'module/root/exfat-nofuse/git/exfat-nofuse' failed make[3]: [module/root/exfat-nofuse/git/exfat-nofuse] Error 2 Makefile:150: recipe for target 'sub-make' failed make[2]: [sub-make] Error 2 Makefile:24: recipe for target '__sub-make' failed make[1]: [__sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-4.4.114-42-obj/x86_64/default' Makefile:35: recipe for target 'all' failed make: *** [all] Error 2

AldarisX commented 6 years ago

same problem,openSUSE 42.3

sectroyer commented 6 years ago

Don't know if you are aware but samsung released source code of exfat driver that works on 4.x kernels 😄 Maybe that can help you 😄