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
710 stars 324 forks source link

Make err!!! #138

Open Joisen opened 6 years ago

Joisen commented 6 years ago

[joisen@mac-localdomain exfat-nofuse-master]$ make make -C /lib/modules/4.16.3-301.fc28.x86_64/build M=/home/joisen/Downloads/exfat-nofuse-master modules make[1]: 进入目录“/usr/src/kernels/4.18.11-200.fc28.x86_64” CC [M] /home/joisen/Downloads/exfat-nofuse-master/exfat_core.o CC [M] /home/joisen/Downloads/exfat-nofuse-master/exfat_super.o /home/joisen/Downloads/exfat-nofuse-master/exfat_super.c: 在函数‘exfat_fill_inode’中: /home/joisen/Downloads/exfat-nofuse-master/exfat_super.c:1927:27: 错误:传递‘exfat_time_fat2unix’的第 2 个参数时在不兼容的指针类型间转换 [-Werror=incompatible-pointer-types] exfat_time_fat2unix(sbi, &inode->i_mtime, &info.ModifyTimestamp); ^~~~~~~ /home/joisen/Downloads/exfat-nofuse-master/exfat_super.c:150:70: 附注:需要类型‘struct timespec ’,但实参的类型为‘struct timespec64 ’ void exfat_time_fat2unix(struct exfat_sb_info sbi, struct timespec ts,


/home/joisen/Downloads/exfat-nofuse-master/exfat_super.c:1928:27: 错误:传递‘exfat_time_fat2unix’的第 2 个参数时在不兼容的指针类型间转换 [-Werror=incompatible-pointer-types]
  exfat_time_fat2unix(sbi, &inode->i_ctime, &info.CreateTimestamp);
                           ^~~~~~~~~~~~~~~
/home/joisen/Downloads/exfat-nofuse-master/exfat_super.c:150:70: 附注:需要类型‘struct timespec *’,但实参的类型为‘struct timespec64 *’
 void exfat_time_fat2unix(struct exfat_sb_info *sbi, struct timespec *ts,
                                                     ~~~~~~~~~~~~~~~~~^~
/home/joisen/Downloads/exfat-nofuse-master/exfat_super.c:1929:27: 错误:传递‘exfat_time_fat2unix’的第 2 个参数时在不兼容的指针类型间转换 [-Werror=incompatible-pointer-types]
  exfat_time_fat2unix(sbi, &inode->i_atime, &info.AccessTimestamp);
                           ^~~~~~~~~~~~~~~
/home/joisen/Downloads/exfat-nofuse-master/exfat_super.c:150:70: 附注:需要类型‘struct timespec *’,但实参的类型为‘struct timespec64 *’
 void exfat_time_fat2unix(struct exfat_sb_info *sbi, struct timespec *ts,
                                                     ~~~~~~~~~~~~~~~~~^~
/home/joisen/Downloads/exfat-nofuse-master/exfat_super.c: 在函数‘exfat_write_inode’中:
/home/joisen/Downloads/exfat-nofuse-master/exfat_super.c:2010:27: 错误:传递‘exfat_time_unix2fat’的第 2 个参数时在不兼容的指针类型间转换 [-Werror=incompatible-pointer-types]
  exfat_time_unix2fat(sbi, &inode->i_mtime, &info.ModifyTimestamp);
                           ^~~~~~~~~~~~~~~
/home/joisen/Downloads/exfat-nofuse-master/exfat_super.c:169:70: 附注:需要类型‘struct timespec *’,但实参的类型为‘struct timespec64 *’
 void exfat_time_unix2fat(struct exfat_sb_info *sbi, struct timespec *ts,
                                                     ~~~~~~~~~~~~~~~~~^~
/home/joisen/Downloads/exfat-nofuse-master/exfat_super.c:2011:27: 错误:传递‘exfat_time_unix2fat’的第 2 个参数时在不兼容的指针类型间转换 [-Werror=incompatible-pointer-types]
  exfat_time_unix2fat(sbi, &inode->i_ctime, &info.CreateTimestamp);
                           ^~~~~~~~~~~~~~~
/home/joisen/Downloads/exfat-nofuse-master/exfat_super.c:169:70: 附注:需要类型‘struct timespec *’,但实参的类型为‘struct timespec64 *’
 void exfat_time_unix2fat(struct exfat_sb_info *sbi, struct timespec *ts,
                                                     ~~~~~~~~~~~~~~~~~^~
/home/joisen/Downloads/exfat-nofuse-master/exfat_super.c:2012:27: 错误:传递‘exfat_time_unix2fat’的第 2 个参数时在不兼容的指针类型间转换 [-Werror=incompatible-pointer-types]
  exfat_time_unix2fat(sbi, &inode->i_atime, &info.AccessTimestamp);
                           ^~~~~~~~~~~~~~~
/home/joisen/Downloads/exfat-nofuse-master/exfat_super.c:169:70: 附注:需要类型‘struct timespec *’,但实参的类型为‘struct timespec64 *’
 void exfat_time_unix2fat(struct exfat_sb_info *sbi, struct timespec *ts,
                                                     ~~~~~~~~~~~~~~~~~^~
cc1:有些警告被当作是错误
make[2]: *** [scripts/Makefile.build:318:/home/joisen/Downloads/exfat-nofuse-master/exfat_super.o] 错误 1
make[1]: *** [Makefile:1521:_module_/home/joisen/Downloads/exfat-nofuse-master] 错误 2
make[1]: 离开目录“/usr/src/kernels/4.18.11-200.fc28.x86_64”
make: *** [Makefile:35:all] 错误 2
DraceWang commented 4 years ago

you can get your solution here: https://github.com/dorimanx/exfat-nofuse/issues/136