diff options
author | Linus Walleij <[email protected]> | 2022-09-04 00:45:25 +0200 |
---|---|---|
committer | Arnd Bergmann <[email protected]> | 2022-09-10 09:55:55 +0200 |
commit | 77bfc8bdb5a1cdbcea21daccdf1686e1bfea3db6 (patch) | |
tree | 12b2dffc8c73c6444a0b1a7ab8f8b60a6ae9c606 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 2c230431e1e809270178905974f57cf3878939f5 (diff) |
parisc: Remove 64bit access on 32bit machines
The parisc was using some readq/writeq accessors without special
considerations as to what will happen on 32bit CPUs if you do
this. Maybe we have been lucky that it "just worked" on 32bit
due to the compiler behaviour, or the code paths were never
executed.
Fix the two offending code sites like this:
arch/parisc/lib/iomap.c:
- Put ifdefs around the 64bit accessors and make sure
that ioread64, ioread64be, iowrite64 and iowrite64be
are not available on 32bit builds.
- Also fold in a bug fix where 64bit access was by
mistake using 32bit writel() accessors rather
than 64bit writeq().
drivers/parisc/sba_iommu.c:
- Access any 64bit registers using _lo_hi-semantics by way
of the readq and writeq operations provided by
<linux/io-64-nonatomic-lo-hi.h>
Signed-off-by: Linus Walleij <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Cc: James E.J. Bottomley <[email protected]>
Cc: Helge Deller <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: Arnd Bergmann <[email protected]>
Cc: John David Anglin <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions