From: Evgeniy Dushistov Date: Sun, 25 Jun 2006 12:47:22 +0000 (-0700) Subject: [PATCH] ufs: wrong type cast X-Git-Tag: v2.6.18-rc1~1023 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9695ef16ed4e00b59303f39f9a4a422a2c6a3b89;p=pandora-kernel.git [PATCH] ufs: wrong type cast There are two ugly macros in ufs code: #define UCPI_UBH ((struct ufs_buffer_head *)ucpi) #define USPI_UBH ((struct ufs_buffer_head *)uspi) when uspi looks like struct { struct ufs_buffer_head ; } and USPI_UBH has some sence, ucpi looks like struct { struct not_ufs_buffer_head; } To prevent bugs in future, this patch convert macros to inline function and fix "ucpi" structure. Signed-off-by: Evgeniy Dushistov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed