[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100908075403.7d31758a@nehalam>
Date: Wed, 8 Sep 2010 07:54:03 -0700
From: Stephen Hemminger <shemminger@...tta.com>
To: Jiri Slaby <jslaby@...e.cz>
Cc: Masayuki Ohtake <masa-korg@....okisemi.com>,
Randy Dunlap <randy.dunlap@...cle.com>,
Ralf Baechle <ralf@...ux-mips.org>,
ML netdev <netdev@...r.kernel.org>,
MeeGo <meego-dev@...go.com>, Maxime Bizon <mbizon@...ebox.fr>,
LKML <linux-kernel@...r.kernel.org>,
Kristoffer Glembo <kristoffer@...sler.com>,
John Linn <john.linn@...inx.com>,
Joe Perches <joe@...ches.com>,
Greg Rose <gregory.v.rose@...el.com>,
"David S. Miller" <davem@...emloft.net>,
"Wang, Yong Y" <yong.y.wang@...el.com>,
"Wang, Qi" <qi.wang@...el.com>,
Toshiharu Okada <okada533@....okisemi.com>,
Tomoya Morinaga <morinaga526@....okisemi.com>,
Takahiro Shimizu <shimizu394@....okisemi.com>,
Intel OTC <joel.clark@...el.com>,
"Foster, Margie" <margie.foster@...el.com>,
Andrew <andrew.chih.howe.khor@...el.com>
Subject: Re: [PATCH] Gigabit Ethernet driver of Topcliff PCH
On Wed, 08 Sep 2010 16:16:11 +0200
Jiri Slaby <jslaby@...e.cz> wrote:
> >>> +
> >>> + rxdr->count = max(ring->rx_pending, (u32) PCH_GBE_MIN_RXD);
> >>> + rxdr->count = min(rxdr->count, (u32) PCH_GBE_MAX_RXD);
> >>
> >> clamp()
> >> And why you need the cast?
> >
> > [masa]
> > Since warning appears at the time of a make.
Better to use the "_t" version which does the necessary cast.
rxdr->count = clamp_t(u32, ring->rx_pending,
PCH_GBE_MIN_RXD, PCH_GBE_MAX_RXD)
--
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists