Messages in this thread | | | From | Logan Gunthorpe <> | Date | Fri, 29 Mar 2019 15:43:23 -0600 | Subject | Re: [PATCH] x86/calgary: fix bitcast type warnings |
| |
On 2019-03-29 3:40 p.m., Jann Horn wrote: > So what is the right thing to do in the context of > arch/x86/kernel/pci-calgary_64.c? That code wants to perform MMIO with > endianness conversion, and these accesses are always performed as > MMIO. Using the non-atomic 64-bit I/O helpers for this would be kind > of awkward, since the accesses would never actually be split...
Well, if you know you're only ever doing MMIO, you'd probably just want to use readq() directly.
Logan
| |