Commit 7ab21cf8 authored by Nathan Scott's avatar Nathan Scott

[XFS] sparse: fix uses of macros before their definitions, etc.

SGI Modid: xfs-linux:xfs-kern:173194a
Signed-off-by: nathans@sgi.com
parent 15cb8a4f
...@@ -84,7 +84,7 @@ kmem_flags_convert(int flags) ...@@ -84,7 +84,7 @@ kmem_flags_convert(int flags)
{ {
int lflags; int lflags;
#if DEBUG #ifdef DEBUG
if (unlikely(flags & ~(KM_SLEEP|KM_NOSLEEP|KM_NOFS|KM_MAYFAIL))) { if (unlikely(flags & ~(KM_SLEEP|KM_NOSLEEP|KM_NOFS|KM_MAYFAIL))) {
printk(KERN_WARNING printk(KERN_WARNING
"XFS: memory allocation with wrong flags (%x)\n", flags); "XFS: memory allocation with wrong flags (%x)\n", flags);
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
* Stub for no-op vnode operations that return error status. * Stub for no-op vnode operations that return error status.
*/ */
int int
fs_noerr() fs_noerr(void)
{ {
return 0; return 0;
} }
...@@ -45,7 +45,7 @@ fs_noerr() ...@@ -45,7 +45,7 @@ fs_noerr()
* Operation unsupported under this file system. * Operation unsupported under this file system.
*/ */
int int
fs_nosys() fs_nosys(void)
{ {
return ENOSYS; return ENOSYS;
} }
...@@ -55,7 +55,7 @@ fs_nosys() ...@@ -55,7 +55,7 @@ fs_nosys()
*/ */
/* ARGSUSED */ /* ARGSUSED */
void void
fs_noval() fs_noval(void)
{ {
} }
......
...@@ -35,5 +35,6 @@ ...@@ -35,5 +35,6 @@
#include <linux-2.6/xfs_linux.h> #include <linux-2.6/xfs_linux.h>
#include <xfs_fs.h> #include <xfs_fs.h>
#include <xfs_macros.h>
#endif /* __XFS_H__ */ #endif /* __XFS_H__ */
...@@ -157,11 +157,11 @@ ...@@ -157,11 +157,11 @@
/* does not return a value */ /* does not return a value */
#define INT_MOD_EXPR(reference,arch,code) \ #define INT_MOD_EXPR(reference,arch,code) \
(void)(((arch) == ARCH_NOCONVERT) \ (((arch) == ARCH_NOCONVERT) \
? \ ? \
((reference) code) \ (void)((reference) code) \
: \ : \
( \ (void)( \
(reference) = INT_GET((reference),arch) , \ (reference) = INT_GET((reference),arch) , \
((reference) code), \ ((reference) code), \
INT_SET(reference, arch, reference) \ INT_SET(reference, arch, reference) \
...@@ -187,10 +187,10 @@ ...@@ -187,10 +187,10 @@
/* does not return a value */ /* does not return a value */
#define INT_COPY(dst,src,arch) \ #define INT_COPY(dst,src,arch) \
(void)( \ ( \
((sizeof(dst) == sizeof(src)) || ((arch) == ARCH_NOCONVERT)) \ ((sizeof(dst) == sizeof(src)) || ((arch) == ARCH_NOCONVERT)) \
? \ ? \
((dst) = (src)) \ (void)((dst) = (src)) \
: \ : \
INT_SET(dst, arch, INT_GET(src, arch)) \ INT_SET(dst, arch, INT_GET(src, arch)) \
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment