lkml.org 
[lkml]   [2015]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 2/2] x86_64: enable SWIOTLB if system has SRAT memory regions above MAX_DMA32_PFN
From
Date


On 04/12/2015 13:33, Igor Mammedov wrote:
> That doesn't pass strict type check:
>
> include/linux/kernel.h:730:17: warning: comparison of distinct pointer types lacks a cast [enabled by default]
> (void) (&_max1 == &_max2); \
> ^
> arch/x86/mm/srat.c:206:21: note: in expansion of macro ‘max’
> max_possible_pfn = max(max_possible_pfn, PFN_UP(end - 1));
>
> I can change max_possible_pfn to u64 to match PFN_UP(end - 1) type.

Sounds like a good idea anyway.

Paolo


\
 
 \ /
  Last update: 2015-12-04 13:41    [W:0.111 / U:0.780 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site