diff options
author | Christian Borntraeger <borntraeger@de.ibm.com> | 2015-01-06 22:41:46 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-06 14:57:43 -0800 |
commit | 3c201105568388046da448947e8abc8673fedfd9 (patch) | |
tree | 064b5d7cfa1f00c4ae614073ee18e8b17423fe34 /firmware/tehuti | |
parent | 2a806d27573f9a2df193e5a374fe8e452be9c6c7 (diff) | |
download | lwn-3c201105568388046da448947e8abc8673fedfd9.tar.gz lwn-3c201105568388046da448947e8abc8673fedfd9.zip |
ppc/kvm: Replace ACCESS_ONCE with READ_ONCE
commit 5ee07612e9e20817bb99256ab6cf1400fd5aa270 upstream.
ACCESS_ONCE does not work reliably on non-scalar types. For
example gcc 4.6 and 4.7 might remove the volatile tag for such
accesses during the SRA (scalar replacement of aggregates) step
(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58145)
Change the ppc/kvm code to replace ACCESS_ONCE with READ_ONCE.
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'firmware/tehuti')
0 files changed, 0 insertions, 0 deletions