[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070307170018.61f36a0f@lxorguk.ukuu.org.uk>
Date: Wed, 7 Mar 2007 17:00:18 +0000
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Mark Lord <lkml@....ca>
Cc: akpm@...l.org, linux-kernel@...r.kernel.org,
linux-wireless@...r.kernel.org
Subject: Re: [PATCH] prism54usb: Fix hail of warnings on 64bit platforms
On Wed, 07 Mar 2007 10:42:57 -0500
Mark Lord <lkml@....ca> wrote:
> Alan Cox wrote:
> > If you want to cast a pointer to a small value then start by turning it
> > into an unsigned long so the compiler knows what is going on.
> >
> > Personally I find the whole approach used by this driver for types of
> > registers (which are really USB register numbers) utterly perverse...
> ...
> >
> > err = p54u_write(priv, buf, type,\
> > - cpu_to_le32((u32)addr), data);\
> > + cpu_to_le32((u32)(unsigned long)addr), data);\
> ...
>
> What exactly are those "addr" parameters -- memory addresses ?
>
They end up being passed as small values over the USB link to the chip
the other end.
Alan
-
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