[PATCH] smbfs: Fix debug logging-only compilation error

From: Kirk True
Date: Fri Mar 03 2006 - 04:23:58 EST


Version: 2.6.16-rc5

When SMBFS_DEBUG_VERBOSE is #define-d, the compile breaks:

fs/smbfs/inode.c:217: error: aggregate value used where an integer was expected

This is a simple matter of using the .tv_sec attribute of struct time_spec.

Signed-off-by: Kirk True <kernel@xxxxxxxxxxxxxxxxx>

--- linux-2.6.16-rc5-orig/fs/smbfs/inode.c 2006-03-02 23:52:17.000000000 -0800
+++ linux-2.6.16-rc5/fs/smbfs/inode.c 2006-03-02 23:12:34.000000000 -0800
@@ -216,7 +216,7 @@
if (inode->i_mtime.tv_sec != last_time || inode->i_size != last_sz) {
VERBOSE("%ld changed, old=%ld, new=%ld, oz=%ld, nz=%ld\n",
inode->i_ino,
- (long) last_time, (long) inode->i_mtime,
+ (long) last_time, (long) inode->i_mtime.tv_sec,
(long) last_sz, (long) inode->i_size);

if (!S_ISDIR(inode->i_mode))


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/