Re: [PATCH 2/2] dma-buf: add helpers for attacher dma-parms
From: Tomasz Stanislawski <hidden>
Date: 2012-08-06 12:42:35
Also in:
dri-devel, linux-arm-kernel, linux-media, lkml
From: Tomasz Stanislawski <hidden>
Date: 2012-08-06 12:42:35
Also in:
dri-devel, linux-arm-kernel, linux-media, lkml
On 08/06/2012 01:58 PM, Michal Nazarewicz wrote:
Tomasz Stanislawski [off-list ref] writes:quoted
I recommend to change the semantics for unlimited number of segments from 'value 0' to: #define DMA_SEGMENTS_COUNT_UNLIMITED ((unsigned long)INT_MAX)
Sorry. It should be: #define DMA_SEGMENTS_COUNT_UNLIMITED ((unsigned int)INT_MAX)
quoted
Using INT_MAX will allow using safe conversions between signed and unsigned integers.LONG_MAX seems cleaner regardless.
-- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>