diff options
author | Arnd Bergmann <[email protected]> | 2016-09-06 14:59:41 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2016-09-13 17:30:17 +0200 |
commit | 4b7b948b1fcde59d9a0085237be0060e825216fc (patch) | |
tree | bb07eaf5d659f7e71a9b3cfd08b1da1287ad0ba6 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 0b3191d4ea6403f429beab5097428093e170fe44 (diff) |
vme: fake: fix build for 64-bit dma_addr_t
casting between dma_addr_t and a pointer is generally tricky,
as they might not be the same size and almost never point into
the same address space. With 32-bit ARM systems and LPAE, we
get this warning for the vme_fake driver that stores a pointer
in a dma_addr_t variable:
drivers/vme/bridges/vme_fake.c: In function 'fake_slave_set':
drivers/vme/bridges/vme_fake.c:204:29: error: assignment makes pointer from integer without a cast [-Werror=int-conversion]
To make this clearer while fixing the warning, I'm adding
a set of helper functions for the type conversion.
Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: Martyn Welch <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions