[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100908075545.79023fa9@nehalam>
Date: Wed, 8 Sep 2010 07:55:45 -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.
>
> OK, then you have type error which you should fix instead. Perhaps
> define the constnts with U suffix?
Better yet:
rxdr->count = clamp_val(ring->rx_pending,
PCH_GBE_MIN_RXD,
PCH_GBE_MAX_RXD);
--
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