[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-id: <501FBBB4.6000109@samsung.com>
Date: Mon, 06 Aug 2012 14:42:28 +0200
From: Tomasz Stanislawski <t.stanislaws@...sung.com>
To: Michal Nazarewicz <mina86@...a86.com>
Cc: Rob Clark <rob.clark@...aro.org>, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-mm@...ck.org,
linaro-mm-sig@...ts.linaro.org, dri-devel@...ts.freedesktop.org,
linux-media@...r.kernel.org, patches@...aro.org,
linux@....linux.org.uk, arnd@...db.de, jesse.barker@...aro.org,
m.szyprowski@...sung.com, daniel@...ll.ch, sumit.semwal@...com,
maarten.lankhorst@...onical.com, Rob Clark <rob@...com>
Subject: Re: [PATCH 2/2] dma-buf: add helpers for attacher dma-parms
On 08/06/2012 01:58 PM, Michal Nazarewicz wrote:
>
> Tomasz Stanislawski <t.stanislaws@...sung.com> writes:
>> 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)
>>
>> Using INT_MAX will allow using safe conversions between signed and
>> unsigned integers.
>
> LONG_MAX seems cleaner regardless.
>
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists