Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Linux 4.8 compat #563

Closed
behlendorf opened this issue Jul 26, 2016 · 0 comments
Closed

Linux 4.8 compat #563

behlendorf opened this issue Jul 26, 2016 · 0 comments
Milestone

Comments

@behlendorf
Copy link
Contributor

New kernel release window, new build failures.

spl/spl/spl-rwlock.c: In function ‘__rwsem_tryupgrade’:
spl/spl/spl-rwlock.c:55:2: error: invalid initializer
  val = cmpxchg(&rwsem->count, SPL_RWSEM_SINGLE_READER_VALUE,
  ^
spl/spl/spl-rwlock.c:55:2: error: invalid initializer
spl/spl/spl-rwlock.c:57:14: error: invalid operands to binary == (have ‘atomic_long_t’ and ‘long int’)
  return (val == SPL_RWSEM_SINGLE_READER_VALUE);
              ^
spl/spl/spl-rwlock.c:58:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
  CC      mm/rmap.o
make[2]: *** [spl/spl/spl-rwlock.o] Error 1
make[1]: *** [spl/spl] Error 2
make: *** [spl] Error 2
make: *** Waiting for unfinished jobs....
@behlendorf behlendorf added this to the 0.7.0 milestone Jul 26, 2016
behlendorf added a commit to behlendorf/spl that referenced this issue Jul 26, 2016
For non-rwsem-spinlocks the "count" member was changed from a
"long" to "atomic_long_t" type.  A configure check has been
added to detect this change along with new versions of the
_rwsem_tryupgrade() function and RWSEM_COUNT() macro.  See
torvalds/linux/commit/8ee62b18 for complete details.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue openzfs#563
behlendorf added a commit to behlendorf/spl that referenced this issue Jul 27, 2016
For non-rwsem-spinlocks the "count" member was changed from a
"long" to "atomic_long_t" type.  A configure check has been
added to detect this change along with new versions of the
_rwsem_tryupgrade() function and RWSEM_COUNT() macro.  See
torvalds/linux/commit/8ee62b18 for complete details.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue openzfs#563
nedbass pushed a commit to nedbass/spl that referenced this issue Aug 26, 2016
For non-rwsem-spinlocks the "count" member was changed from a
"long" to "atomic_long_t" type.  A configure check has been
added to detect this change along with new versions of the
_rwsem_tryupgrade() function and RWSEM_COUNT() macro.  See
torvalds/linux@8ee62b18 for complete
details.

Signed-off-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes openzfs#563
tuxoko pushed a commit to tuxoko/spl that referenced this issue Sep 8, 2016
For non-rwsem-spinlocks the "count" member was changed from a
"long" to "atomic_long_t" type.  A configure check has been
added to detect this change along with new versions of the
_rwsem_tryupgrade() function and RWSEM_COUNT() macro.  See
torvalds/linux@8ee62b18 for complete
details.

Signed-off-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes openzfs#563
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant