Skip to content

Commit

Permalink
Fix compilation error for kernel version codes < 3.0.0
Browse files Browse the repository at this point in the history
This was caused by the flags variable being declared only if the version
is >= 3.0.0 and < 3.7.0 (where it is no longer need)
  • Loading branch information
johnbeard committed Aug 20, 2015
1 parent d5f0555 commit 418c8e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exfat_super.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,14 +294,14 @@ static int exfat_revalidate_ci(struct dentry *dentry, struct nameidata *nd)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,00)
if (flags & LOOKUP_RCU)
return -ECHILD;
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,00)
#else
unsigned int flags;

#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,00)
if (nd && nd->flags & LOOKUP_RCU)
return -ECHILD;
#endif

flags = nd ? nd->flags : 0;
#else
flags = nd ? nd->flags : 0;
#endif

Expand Down

0 comments on commit 418c8e4

Please sign in to comment.