linux-next: build warning after merge of the dma-mapping tree
Hi all,
After merging the dma-mapping tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:
In file included from arch/arm/mach-keystone/keystone.c:24:arch/arm/mach-keystone/keystone.c: In function 'keystone_platform_notifier':arch/arm/mach-keystone/memory.h:17:34: warning: conversion from 'long long unsigned int' to 'phys_addr_t' {aka 'unsigned int'} changes value from '34359738368' to '0' [-Woverflow]
17 | #define KEYSTONE_HIGH_PHYS_START 0x800000000ULL
| ^~~~~~~~~~~~~~
arch/arm/mach-keystone/keystone.c:40:39: note: in expansion of macro 'KEYSTONE_HIGH_PHYS_START'
40 | int ret = dma_set_offset_range(dev, KEYSTONE_HIGH_PHYS_START,
| ^~~~~~~~~~~~~~~~~~~~~~~~Introduced by commit
eef520b232c6 ("dma-mapping: introduce DMA range map, supplanting dma_pfn_offset")
Signature · 2 lines
Cheers, Stephen Rothwell
Adding Santosh,
I'm trying to understand the code that Jim changed for the range dma offsets. Do I miss something or can the whole DMA offset case for keystone only happen when CONFIG_LPAE is enabled? Which means we could ifdef out this section to avoid the warning?