Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:kernel:lts:4.14
exfat-kmp
0002-exfat-fix-for-4.1-compat.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-exfat-fix-for-4.1-compat.patch of Package exfat-kmp
From 1c10484b28c8fb223ce6184760714311e4c60084 Mon Sep 17 00:00:00 2001 From: Led <ledest@gmail.com> Date: Wed, 4 Jan 2017 02:12:42 +0200 Subject: [PATCH 2/2] exfat: fix for 4.1 compat --- exfat_super.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/exfat_super.c b/exfat_super.c index 7e4c301..9c39fc4 100644 --- a/exfat_super.c +++ b/exfat_super.c @@ -1403,7 +1403,7 @@ static const char *exfat_get_link(struct dentry *dentry, struct inode *inode, st } return NULL; } -#elif LINUX_VERSION_CODE > KERNEL_VERSION(4,1,0) +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0) static const char *exfat_follow_link(struct dentry *dentry, void **cookie) { struct exfat_inode_info *ei = EXFAT_I(dentry->d_inode); @@ -1699,7 +1699,7 @@ static ssize_t exfat_direct_IO(int rw, struct kiocb *iocb, const struct iovec *iov, loff_t offset, unsigned long nr_segs) #endif -#elif LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0) +#elif LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0) static ssize_t exfat_direct_IO(int rw, struct kiocb *iocb, struct iov_iter *iter, loff_t offset) #elif LINUX_VERSION_CODE < KERNEL_VERSION(4,7,0) @@ -1714,10 +1714,8 @@ static ssize_t exfat_direct_IO(struct kiocb *iocb, struct iov_iter *iter) struct address_space *mapping = iocb->ki_filp->f_mapping; #endif ssize_t ret; -#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0) - int rw; - - rw = iov_iter_rw(iter); +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0) + int rw = iov_iter_rw(iter); #endif if (rw == WRITE) { -- 2.11.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor