From: Pavel Roskin Date: Mon, 19 Feb 2007 01:44:06 +0000 (-0500) Subject: [PATCH] hostap: use offsetof() instead of own equivalent X-Git-Tag: v2.6.22-rc1~1110^2~103 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6710e50f6b976dead878e143c568d4f8b068c7c;p=pandora-kernel.git [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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed