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

Commits on Aug 5, 2020

  1. For Linux kernel >= 5.0 patch dorimanx#145

    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
    DraceWang committed Aug 5, 2020
    Configuration menu
    Copy the full SHA
    640c4a7 View commit details
    Browse the repository at this point in the history
  2. Use 'ktime_t' replace ‘time_t’ to fix compile problem

    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
    DraceWang committed Aug 5, 2020
    Configuration menu
    Copy the full SHA
    9c25fed View commit details
    Browse the repository at this point in the history
  3. Fix the compilation problem of kernel version after 4.18#136

    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 *
    DraceWang committed Aug 5, 2020
    Configuration menu
    Copy the full SHA
    7723867 View commit details
    Browse the repository at this point in the history
  4. Create Tag for Linux 5.0 kernel

    This repo seems working good on kali 5.6.0.
    DraceWang committed Aug 5, 2020
    Configuration menu
    Copy the full SHA
    0f42631 View commit details
    Browse the repository at this point in the history