]> git.baikalelectronics.ru Git - kernel.git/commit
[XFS] fix ASSERT and ASSERT_ALWAYS
authorChristoph Hellwig <hch@infradead.org>
Thu, 16 Aug 2007 05:38:08 +0000 (15:38 +1000)
committerTim Shimmin <tes@chook.melbourne.sgi.com>
Wed, 5 Sep 2007 04:49:30 +0000 (14:49 +1000)
commita22ca77a1f26726a324edd1c03160980adf5f3bc
tree2ea198960e12fe010b18ce9b52645c7865ec1082
parenta5d8eca3090cf6695ca8d52c09a3df6edf5497ef
[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 <hch@infradead.org>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
fs/xfs/support/debug.h