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)
{
int lflags;
#if DEBUG
#ifdef DEBUG
if (unlikely(flags & ~(KM_SLEEP|KM_NOSLEEP|KM_NOFS|KM_MAYFAIL))) {
printk(KERN_WARNING
"XFS: memory allocation with wrong flags (%x)\n", flags);
......
......@@ -36,7 +36,7 @@
* Stub for no-op vnode operations that return error status.
*/
int
fs_noerr()
fs_noerr(void)
{
return 0;
}
......@@ -45,7 +45,7 @@ fs_noerr()
* Operation unsupported under this file system.
*/
int
fs_nosys()
fs_nosys(void)
{
return ENOSYS;
}
......@@ -55,7 +55,7 @@ fs_nosys()
*/
/* ARGSUSED */
void
fs_noval()
fs_noval(void)
{
}
......
......@@ -35,5 +35,6 @@
#include <linux-2.6/xfs_linux.h>
#include <xfs_fs.h>
#include <xfs_macros.h>
#endif /* __XFS_H__ */
......@@ -157,11 +157,11 @@
/* does not return a value */
#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) code), \
INT_SET(reference, arch, reference) \
......@@ -187,10 +187,10 @@
/* does not return a value */
#define INT_COPY(dst,src,arch) \
(void)( \
( \
((sizeof(dst) == sizeof(src)) || ((arch) == ARCH_NOCONVERT)) \
? \
((dst) = (src)) \
(void)((dst) = (src)) \
: \
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