summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2015-02-24 12:47:27 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2015-03-23 16:13:42 +0300
commitd34712d2e3db9b241d0484a6e3839c6b7ef9df78 (patch)
treeb1c6d620fdd4ecac2570fbbaea5d5e2ff7dd3e98 /tools/perf/scripts/python/call-graph-from-sql.py
parent5f2e097ce0894c0882577cebf44f4e1db01d9f98 (diff)
downloadlinux-d34712d2e3db9b241d0484a6e3839c6b7ef9df78.tar.xz
mmc: sunxi: avoid invalid pointer calculation
The sunxi mmc driver tries to calculate a dma address by using pointer arithmetic, which causes a warning when dma_addr_t is wider than a pointer: drivers/mmc/host/sunxi-mmc.c: In function 'sunxi_mmc_init_idma_des': drivers/mmc/host/sunxi-mmc.c:296:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] struct sunxi_idma_des *pdes_pa = (struct sunxi_idma_des *)host->sg_dma; ^ To avoid this warning and to simplify the logic, this changes the code to avoid the cast and calculate the correct address manually. The behavior should be unchanged. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: David Lanzendörfer <david.lanzendoerfer@o2s.ch> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions