From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Masayuki Ohtake" Subject: Re: [PATCH] Gigabit Ethernet driver of Topcliff PCH Date: Thu, 9 Sep 2010 22:37:48 +0900 Message-ID: <002401cb5024$5a2044a0$66f8800a@maildom.okisemi.com> References: <4C81019E.1010808@dsn.okisemi.com><4C8123D6.8020001@suse.cz><003901cb4f5d$bf977c80$66f8800a@maildom.okisemi.com><4C879AAB.6000905@suse.cz> <20100908075545.79023fa9@nehalam> Cc: "Randy Dunlap" , "Ralf Baechle" , "ML netdev" , "MeeGo" , "Maxime Bizon" , "LKML" , "Kristoffer Glembo" , "John Linn" , "Joe Perches" , "Greg Rose" , "David S. Miller" , "Wang, Yong Y" , "Wang, Qi" , "Toshiharu Okada" , "Tomoya Morinaga" , "Takahiro Shimizu" , "Intel OTC" , "Foster, Margie" , "Andrew" To: "Stephen Hemminger" , "Jiri Slaby" Return-path: Received: from sm-d311v.smileserver.ne.jp ([203.211.202.206]:24640 "EHLO sm-d311v.smileserver.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752169Ab0IINi7 (ORCPT ); Thu, 9 Sep 2010 09:38:59 -0400 Sender: netdev-owner@vger.kernel.org List-ID: On Wed, 8 Sep 2010 07:55:45 -0700 Stephen Hemminger wrote: > > Better yet: > rxdr->count = clamp_val(ring->rx_pending, > PCH_GBE_MIN_RXD, > PCH_GBE_MAX_RXD); Hi Stephen Thank you for your suggestion. I will modify like your suggestion. . Thanks, Ohtake ----- Original Message ----- From: "Stephen Hemminger" To: "Jiri Slaby" Cc: "Masayuki Ohtake" ; "Randy Dunlap" ; "Ralf Baechle" ; "ML netdev" ; "MeeGo" ; "Maxime Bizon" ; "LKML" ; "Kristoffer Glembo" ; "John Linn" ; "Joe Perches" ; "Greg Rose" ; "David S. Miller" ; "Wang, Yong Y" ; "Wang, Qi" ; "Toshiharu Okada" ; "Tomoya Morinaga" ; "Takahiro Shimizu" ; "Intel OTC" ; "Foster, Margie" ; "Andrew" Sent: Wednesday, September 08, 2010 11:55 PM Subject: Re: [PATCH] Gigabit Ethernet driver of Topcliff PCH > On Wed, 08 Sep 2010 16:16:11 +0200 > Jiri Slaby 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 netdev" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >