Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/borntraeger/linux
Pull ACCESS_ONCE cleanup preparation from Christian Borntraeger: "kernel: Provide READ_ONCE and ASSIGN_ONCE As discussed on LKML http://marc.info/?i=54611D86.4040306%40de.ibm.com ACCESS_ONCE might fail with specific compilers for non-scalar accesses. Here is a set of patches to tackle that problem. The first patch introduce READ_ONCE and ASSIGN_ONCE. If the data structure is larger than the machine word size memcpy is used and a warning is emitted. The next patches fix up several in-tree users of ACCESS_ONCE on non-scalar types. This does not yet contain a patch that forces ACCESS_ONCE to work only on scalar types. This is targetted for the next merge window as Linux next already contains new offenders regarding ACCESS_ONCE vs. non-scalar types" * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/borntraeger/linux: s390/kvm: REPLACE barrier fixup with READ_ONCE arm/spinlock: Replace ACCESS_ONCE with READ_ONCE arm64/spinlock: Replace ACCESS_ONCE READ_ONCE mips/gup: Replace ACCESS_ONCE with READ_ONCE x86/gup: Replace ACCESS_ONCE with READ_ONCE x86/spinlock: Replace ACCESS_ONCE with READ_ONCE mm: replace ACCESS_ONCE with READ_ONCE or barriers kernel: Provide READ_ONCE and ASSIGN_ONCE
No related branches found
No related tags found
Showing
- arch/arm/include/asm/spinlock.h 2 additions, 2 deletionsarch/arm/include/asm/spinlock.h
- arch/arm64/include/asm/spinlock.h 2 additions, 2 deletionsarch/arm64/include/asm/spinlock.h
- arch/mips/mm/gup.c 1 addition, 1 deletionarch/mips/mm/gup.c
- arch/s390/kvm/gaccess.c 6 additions, 12 deletionsarch/s390/kvm/gaccess.c
- arch/x86/include/asm/spinlock.h 4 additions, 4 deletionsarch/x86/include/asm/spinlock.h
- arch/x86/mm/gup.c 1 addition, 1 deletionarch/x86/mm/gup.c
- include/linux/compiler.h 74 additions, 0 deletionsinclude/linux/compiler.h
- mm/gup.c 1 addition, 1 deletionmm/gup.c
- mm/memory.c 10 additions, 1 deletionmm/memory.c
- mm/rmap.c 2 additions, 1 deletionmm/rmap.c
Loading
Please register or sign in to comment