projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b80916
)
[XFS] Fix sparse warning in kmem_shake_allow
author
Christoph Hellwig
<hch@infradead.org>
Thu, 16 Aug 2007 05:37:57 +0000
(15:37 +1000)
committer
Tim Shimmin
<tes@chook.melbourne.sgi.com>
Wed, 5 Sep 2007 04:48:00 +0000
(14:48 +1000)
We can't return a masked result of a __bitwise type. Compare it to 0 first
to keep the behaviour without the warning.
SGI-PV: 968555
SGI-Modid: xfs-linux-melb:xfs-kern:29309a
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/linux-2.6/kmem.h
patch
|
blob
|
blame
|
history
diff --git
a/fs/xfs/linux-2.6/kmem.h
b/fs/xfs/linux-2.6/kmem.h
index b4acc7f3c3744dbb96f91eeac484c58dcddc2aff..e6ea293f303c99cfa625ae08747f3c7e486c2ea4 100644
(file)
--- a/
fs/xfs/linux-2.6/kmem.h
+++ b/
fs/xfs/linux-2.6/kmem.h
@@
-103,7
+103,7
@@
extern void *kmem_zone_zalloc(kmem_zone_t *, unsigned int __nocast);
static inline int
kmem_shake_allow(gfp_t gfp_mask)
{
- return (gfp_mask & __GFP_WAIT);
+ return (gfp_mask & __GFP_WAIT)
!= 0
;
}
#endif /* __XFS_SUPPORT_KMEM_H__ */