On 3/17/2021 3:49 PM, Alex Elder wrote: > On 3/17/21 5:47 PM, Florian Fainelli wrote: >>> +/* Encapsulate extracting high-order 32 bits of DMA address */ >>> +static u32 dma_addr_high32(dma_addr_t addr) >>> +{ >>> +#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT >>> + return (u32)(addr >> 32); >> You can probably use upper_32bits() here... > > Where is that defined? I'd be glad to use it. -Alex include/linux/kernel.h, and it is upper_32_bits() and lower_32_bits() sorry about the missing space. -- Florian
- [PATCH net-next 0/4] net: ipa: support 32-bit targets Alex Elder
- [PATCH net-next 1/4] net: ipa: fix assumptions about... Alex Elder
- [PATCH net-next 2/4] net: ipa: introduce dma_addr_hi... Alex Elder
- Re: [PATCH net-next 2/4] net: ipa: introduce dma... Florian Fainelli
- Re: [PATCH net-next 2/4] net: ipa: introduce... Alex Elder
- Re: [PATCH net-next 2/4] net: ipa: intro... Florian Fainelli
- Re: [PATCH net-next 2/4] net: ipa: ... Alex Elder
- [PATCH net-next 3/4] net: ipa: fix table alignment r... Alex Elder
- [PATCH net-next 4/4] net: ipa: relax 64-bit build re... Alex Elder