public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] smbfs: Fix debug logging-only compilation error
@ 2006-03-03  9:24 Kirk True
  0 siblings, 0 replies; only message in thread
From: Kirk True @ 2006-03-03  9:24 UTC (permalink / raw)
  To: linux-kernel

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))



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-03-03  9:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-03  9:24 [PATCH] smbfs: Fix debug logging-only compilation error Kirk True

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox