[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <xa1tobmoxmdz.fsf@mina86.com>
Date: Mon, 06 Aug 2012 13:58:32 +0200
From: Michal Nazarewicz <mina86@...a86.com>
To: Tomasz Stanislawski <t.stanislaws@...sung.com>,
Rob Clark <rob.clark@...aro.org>
Cc: 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
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)
>
> Using INT_MAX will allow using safe conversions between signed and
> unsigned integers.
LONG_MAX seems cleaner regardless.
--
Best regards, _ _
.o. | Liege of Serenely Enlightened Majesty of o' \,=./ `o
..o | Computer Science, Michał “mina86” Nazarewicz (o o)
ooo +----<email/xmpp: mpn@...gle.com>--------------ooO--(_)--Ooo--
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists