From: Christoph Hellwig Date: Thu, 16 Aug 2007 05:38:08 +0000 (+1000) Subject: [XFS] fix ASSERT and ASSERT_ALWAYS X-Git-Tag: v2.6.23-rc6~16^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee5c80239d5f152d99f69165afbd115518353563;p=pandora-kernel.git [XFS] fix ASSERT and ASSERT_ALWAYS - remove the != 0 inside the unlikely in ASSERT_ALWAYS because sparse now complains about comparisons between pointers and 0 - add a standalone ASSERT implementation because defining it to ASSERT_ALWAYS means the string is expanded before the token passing stringification. This way we get the actual content of the assertion in the assfail message and don't overflow sparse's stringification buffer leading to sparse error messages. SGI-PV: 968555 SGI-Modid: xfs-linux-melb:xfs-kern:29310a Signed-off-by: Christoph Hellwig Signed-off-by: David Chinner Signed-off-by: Tim Shimmin --- Reading git-diff-tree failed