Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 478922 Details for
Bug 622976
sys-kernel/spl-0.6.5.10 fails to build with GCC 7.1.0
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to apply the above mentioned commit to 0.6.5.10
spl-0.6.5.10-gcc7-fix.patch (text/plain), 1.29 KB, created by
Patrick McMunn
on 2017-07-01 15:26:38 UTC
(
hide
)
Description:
patch to apply the above mentioned commit to 0.6.5.10
Filename:
MIME Type:
Creator:
Patrick McMunn
Created:
2017-07-01 15:26:38 UTC
Size:
1.29 KB
patch
obsolete
>diff -rupN a/include/sys/rwlock.h b/include/sys/rwlock.h >--- a/include/sys/rwlock.h 2017-06-28 22:03:42.014953112 -0500 >+++ b/include/sys/rwlock.h 2017-06-28 22:04:30.173329039 -0500 >@@ -50,34 +50,19 @@ typedef struct { > static inline void > spl_rw_set_owner(krwlock_t *rwp) > { >- unsigned long flags; >- >- spl_rwsem_lock_irqsave(&SEM(rwp)->wait_lock, flags); > rwp->rw_owner = current; >- spl_rwsem_unlock_irqrestore(&SEM(rwp)->wait_lock, flags); > } > > static inline void > spl_rw_clear_owner(krwlock_t *rwp) > { >- unsigned long flags; >- >- spl_rwsem_lock_irqsave(&SEM(rwp)->wait_lock, flags); > rwp->rw_owner = NULL; >- spl_rwsem_unlock_irqrestore(&SEM(rwp)->wait_lock, flags); > } > > static inline kthread_t * > rw_owner(krwlock_t *rwp) > { >- unsigned long flags; >- kthread_t *owner; >- >- spl_rwsem_lock_irqsave(&SEM(rwp)->wait_lock, flags); >- owner = rwp->rw_owner; >- spl_rwsem_unlock_irqrestore(&SEM(rwp)->wait_lock, flags); >- >- return owner; >+ return rwp->rw_owner; > } > > static inline int >@@ -94,7 +79,7 @@ RW_READ_HELD(krwlock_t *rwp) > static inline int > RW_WRITE_HELD(krwlock_t *rwp) > { >- return (spl_rwsem_is_locked(SEM(rwp)) && rw_owner(rwp) == current); >+ return (rw_owner(rwp) == current); > } > > static inline int
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 622976
: 478922