aboutsummaryrefslogtreecommitdiff
path: root/cpu-common.h
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2012-10-08 08:45:31 -0600
committerAlex Williamson <alex.williamson@redhat.com>2012-10-08 08:45:31 -0600
commit3a4f2816fac1b0f9cc197bb2208ddf03dc7bc592 (patch)
treec0987f7626feec5d5dcbab01de7042448f1f04c8 /cpu-common.h
parent1a40313381262ebb5f30fb95d5550b674280f396 (diff)
vfio-pci: Fix BAR->VFIODevice translation in
DO_UPCAST is supposed to translate from the first member of a struct to that struct, not from arbitrary ones. And it (usually) breaks the build when neglecting this rule. Use container_of to fix the build breakage and likely also the runtime behavior. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> aw: runtime behavior is actually the same, but clearly misuse of DO_UPCAST Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'cpu-common.h')
0 files changed, 0 insertions, 0 deletions