Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the compilation problem after Linux kernel 5.0 #151

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

DraceWang
Copy link

I successfully compiled on my own kali, I hope I can merge it into the main branch to solve everyone's troubles

MS_toSB_macros.patch
to fix compile problem like:
/build/source/exfat_core.c: In function 'fs_error':
/build/source/exfat_core.c:1760:64: error: 'MS_RDONLY' undeclared (first use in this function); did you mean 'IS_RDONLY'?
  else if ((opts->errors == EXFAT_ERRORS_RO) && !(sb->s_flags & MS_RDONLY)) {
                                                                ^~~~~~~~~
                                                                IS_RDONLY
fix the problem like:
error: unknown type name ‘time_t’
  142 | static time_t accum_days_in_year[] = {
      |        ^~~~~~
/home/wangshunda/github_repo/exfat-nofuse/exfat_super.c: In function ‘exfat_time_fat2unix’:
/home/wangshunda/github_repo/exfat-nofuse/exfat_super.c:153:2: error: unknown type name ‘time_t’; did you mean ‘ktime_t’?
  153 |  time_t year = tp->Year;
      |  ^~~~~~
      |  ktime_t
fix the compile problem like:
error: dereferencing pointer to incomplete type ‘struct timespec’
  161 |  ts->tv_sec =  tp->Second  + tp->Minute * SECS_PER_MIN
      |    ^~
/home/wangshunda/github_repo/exfat-nofuse/exfat_super.c: In function ‘exfat_fill_inode’:
/home/wangshunda/github_repo/exfat-nofuse/exfat_super.c:1927:27: error: passing argument 2 of ‘exfat_time_fat2unix’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1927 |  exfat_time_fat2unix(sbi, &inode->i_mtime, &info.ModifyTimestamp);
      |                           ^~~~~~~~~~~~~~~
      |                           |
      |                           struct timespec64 *
This repo seems working good on kali 5.6.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant