* [PATCH] ucc_geth: fix compilation [not found] <20070912112456.GA15556@localhost.localdomain> @ 2007-09-13 15:23 ` Anton Vorontsov 2007-09-14 14:07 ` Kumar Gala 2007-09-15 23:32 ` Jeff Garzik 0 siblings, 2 replies; 5+ messages in thread From: Anton Vorontsov @ 2007-09-13 15:23 UTC (permalink / raw) To: linuxppc-dev; +Cc: netdev Currently qe_bd_t is used in the macro call -- dma_unmap_single, which is a no-op on PPC32, thus error is hidden today. Starting with 2.6.24, macro will be replaced by the empty static function, and erroneous use of qe_bd_t will trigger compilation error. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> --- Reposting this to include netdev in Cc. drivers/net/ucc_geth.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c index 12e01b2..9a38dfe 100644 --- a/drivers/net/ucc_geth.c +++ b/drivers/net/ucc_geth.c @@ -2148,7 +2148,7 @@ static void ucc_geth_memclean(struct ucc_geth_private *ugeth) for (j = 0; j < ugeth->ug_info->bdRingLenTx[i]; j++) { if (ugeth->tx_skbuff[i][j]) { dma_unmap_single(NULL, - ((qe_bd_t *)bd)->buf, + ((struct qe_bd *)bd)->buf, (in_be32((u32 *)bd) & BD_LENGTH_MASK), DMA_TO_DEVICE); -- 1.5.0.6 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] ucc_geth: fix compilation 2007-09-13 15:23 ` [PATCH] ucc_geth: fix compilation Anton Vorontsov @ 2007-09-14 14:07 ` Kumar Gala 2007-09-18 8:56 ` Li Yang-r58472 2007-09-15 23:32 ` Jeff Garzik 1 sibling, 1 reply; 5+ messages in thread From: Kumar Gala @ 2007-09-14 14:07 UTC (permalink / raw) To: Jeff Garzik; +Cc: linuxppc-dev@ozlabs.org list, netdev, Anton Vorontsov On Sep 13, 2007, at 10:23 AM, Anton Vorontsov wrote: > Currently qe_bd_t is used in the macro call -- dma_unmap_single, > which is a no-op on PPC32, thus error is hidden today. Starting > with 2.6.24, macro will be replaced by the empty static function, > and erroneous use of qe_bd_t will trigger compilation error. > > Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> > --- Jeff, I'm going to pick this up via the powerpc.git tree since its currently only broken in our for-2.6.24 branch (because of other changes in there). Any issues? - k > > Reposting this to include netdev in Cc. > > drivers/net/ucc_geth.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c > index 12e01b2..9a38dfe 100644 > --- a/drivers/net/ucc_geth.c > +++ b/drivers/net/ucc_geth.c > @@ -2148,7 +2148,7 @@ static void ucc_geth_memclean(struct > ucc_geth_private *ugeth) > for (j = 0; j < ugeth->ug_info->bdRingLenTx[i]; j++) { > if (ugeth->tx_skbuff[i][j]) { > dma_unmap_single(NULL, > - ((qe_bd_t *)bd)->buf, > + ((struct qe_bd *)bd)->buf, > (in_be32((u32 *)bd) & > BD_LENGTH_MASK), > DMA_TO_DEVICE); > -- > 1.5.0.6 > - > 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH] ucc_geth: fix compilation 2007-09-14 14:07 ` Kumar Gala @ 2007-09-18 8:56 ` Li Yang-r58472 2007-09-18 14:04 ` Kumar Gala 0 siblings, 1 reply; 5+ messages in thread From: Li Yang-r58472 @ 2007-09-18 8:56 UTC (permalink / raw) To: Kumar Gala, Jeff Garzik; +Cc: linuxppc-dev, netdev > -----Original Message----- > From: linuxppc-dev-bounces+leoli=freescale.com@ozlabs.org > [mailto:linuxppc-dev-bounces+leoli=freescale.com@ozlabs.org] > On Behalf Of Kumar Gala > Sent: Friday, September 14, 2007 10:08 PM > To: Jeff Garzik > Cc: linuxppc-dev@ozlabs.org list; netdev > Subject: Re: [PATCH] ucc_geth: fix compilation > > > On Sep 13, 2007, at 10:23 AM, Anton Vorontsov wrote: > > > Currently qe_bd_t is used in the macro call -- > dma_unmap_single, which > > is a no-op on PPC32, thus error is hidden today. Starting > with 2.6.24, > > macro will be replaced by the empty static function, and > erroneous use > > of qe_bd_t will trigger compilation error. > > > > Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> > > --- > > Jeff, I'm going to pick this up via the powerpc.git tree > since its currently only broken in our for-2.6.24 branch > (because of other changes in there). Any issues? Kumar, Kim Phillips has posted the same patch to netdev list before Anton. Therefore, I do prefer to use his. Thanks - Leo ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ucc_geth: fix compilation 2007-09-18 8:56 ` Li Yang-r58472 @ 2007-09-18 14:04 ` Kumar Gala 0 siblings, 0 replies; 5+ messages in thread From: Kumar Gala @ 2007-09-18 14:04 UTC (permalink / raw) To: Li Yang-r58472; +Cc: Jeff Garzik, linuxppc-dev, netdev On Sep 18, 2007, at 3:56 AM, Li Yang-r58472 wrote: >> -----Original Message----- >> From: linuxppc-dev-bounces+leoli=freescale.com@ozlabs.org >> [mailto:linuxppc-dev-bounces+leoli=freescale.com@ozlabs.org] >> On Behalf Of Kumar Gala >> Sent: Friday, September 14, 2007 10:08 PM >> To: Jeff Garzik >> Cc: linuxppc-dev@ozlabs.org list; netdev >> Subject: Re: [PATCH] ucc_geth: fix compilation >> >> >> On Sep 13, 2007, at 10:23 AM, Anton Vorontsov wrote: >> >>> Currently qe_bd_t is used in the macro call -- >> dma_unmap_single, which >>> is a no-op on PPC32, thus error is hidden today. Starting >> with 2.6.24, >>> macro will be replaced by the empty static function, and >> erroneous use >>> of qe_bd_t will trigger compilation error. >>> >>> Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> >>> --- >> >> Jeff, I'm going to pick this up via the powerpc.git tree >> since its currently only broken in our for-2.6.24 branch >> (because of other changes in there). Any issues? > > Kumar, > > Kim Phillips has posted the same patch to netdev list before Anton. > Therefore, I do prefer to use his. Thanks No problem. Jeff seems to have picked up some version of the fix. - k ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ucc_geth: fix compilation 2007-09-13 15:23 ` [PATCH] ucc_geth: fix compilation Anton Vorontsov 2007-09-14 14:07 ` Kumar Gala @ 2007-09-15 23:32 ` Jeff Garzik 1 sibling, 0 replies; 5+ messages in thread From: Jeff Garzik @ 2007-09-15 23:32 UTC (permalink / raw) To: Anton Vorontsov; +Cc: linuxppc-dev, netdev Anton Vorontsov wrote: > Currently qe_bd_t is used in the macro call -- dma_unmap_single, > which is a no-op on PPC32, thus error is hidden today. Starting > with 2.6.24, macro will be replaced by the empty static function, > and erroneous use of qe_bd_t will trigger compilation error. > > Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> > --- > > Reposting this to include netdev in Cc. > > drivers/net/ucc_geth.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) applied ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-09-18 14:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20070912112456.GA15556@localhost.localdomain>
2007-09-13 15:23 ` [PATCH] ucc_geth: fix compilation Anton Vorontsov
2007-09-14 14:07 ` Kumar Gala
2007-09-18 8:56 ` Li Yang-r58472
2007-09-18 14:04 ` Kumar Gala
2007-09-15 23:32 ` Jeff Garzik
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).