]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
drivers/net/skfp/pmf.c: Use offsetof() macro
authorTakashi Iwai <tiwai@suse.de>
Fri, 5 Sep 2008 21:04:04 +0000 (14:04 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 24 Sep 2008 22:48:56 +0000 (18:48 -0400)
commitc2d1eb085d2eb47a3b16726f79fcf0d53648ebc0
tree6600bbedc3b70e679dc4c71ac6464391908a6d0e
parentd1c5ea33c006e921f706f5075c09edc91e714263
drivers/net/skfp/pmf.c: Use offsetof() macro

Self-baked macros cause bunch of compile warnings like below:

  CC [M]  drivers/net/skfp/pmf.o
  CC      net/ipv4/fib_semantics.o
drivers/net/skfp/pmf.c:86: warning: cast from pointer to integer of different size
drivers/net/skfp/pmf.c:87: warning: cast from pointer to integer of different size
...

Use the standard offsetof() macro instead.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Alan Cox <alan@redhat.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/skfp/pmf.c