lkml.org 
[lkml]   [2006]   [Mar]   [3]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] smbfs: Fix debug logging-only compilation error
FromKirk True <>
DateFri, 03 Mar 2006 01:24:38 -0800
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@kirkandsheila.com>

--- 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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-03-03 09:28    [from the cache]
©2003-2008