Commit:     c6710e50f6b976dead878e143c568d4f8b068c7c
Parent:     876c9d3aeb989cf1961f2c228d309ba5dcfb1172
Author:     Pavel Roskin <[EMAIL PROTECTED]>
AuthorDate: Sun Feb 18 20:44:06 2007 -0500
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Sat Apr 28 11:00:55 2007 -0400

    [PATCH] hostap: use offsetof() instead of own equivalent
    The original macros result in gcc 4.2 warning about "cast from pointer
    to integer of different size" on 64-bit systems.
    Use of offsetof() on fields in substructures is widespread throughout
    the kernel code and should work whether offsetof() is defined using
    __compiler_offsetof() or a cast.
    Signed-off-by: Pavel Roskin <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
 drivers/net/wireless/hostap/hostap_common.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/hostap/hostap_common.h 
index 0162400..b31e6a0 100644
--- a/drivers/net/wireless/hostap/hostap_common.h
+++ b/drivers/net/wireless/hostap/hostap_common.h
@@ -368,9 +368,9 @@ enum {
-((int) (&((struct prism2_hostapd_param *) 0)->
+offsetof(struct prism2_hostapd_param,
-((int) (&((struct prism2_hostapd_param *) 0)->
+offsetof(struct prism2_hostapd_param,
 /* Maximum length for algorithm names (-1 for nul termination) used in ioctl()
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to