* [PATCH] linux-2.5.66/fs/cramfs/inode.c typecheck - int vs. struct
@ 2003-03-26 5:45 Adam Kelly
0 siblings, 0 replies; only message in thread
From: Adam Kelly @ 2003-03-26 5:45 UTC (permalink / raw)
To: viro, linux-kernel, torvalds
Very minor change. GCC now does more type checking, so This just zeros a
timespec struct
so that i_mtime, etc will match types.
gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
compiling linux-2.5.66
-Adam
--- inode.c.orig 2003-03-25 22:50:17.000000000 -0600
+++ inode.c 2003-03-25 23:00:50.000000000 -0600
@@ -44,6 +44,8 @@
{
struct inode * inode = new_inode(sb);
+ const struct timespec zero_timespec = {0};
+
if (inode) {
inode->i_mode = cramfs_inode->mode;
inode->i_uid = cramfs_inode->uid;
@@ -51,7 +53,7 @@
inode->i_blocks = (cramfs_inode->size - 1) / 512 + 1;
inode->i_blksize = PAGE_CACHE_SIZE;
inode->i_gid = cramfs_inode->gid;
- inode->i_mtime = inode->i_atime = inode->i_ctime = 0;
+ inode->i_mtime = inode->i_atime = inode->i_ctime =
zero_timespec;
inode->i_ino = CRAMINO(cramfs_inode);
/* inode->i_nlink is left 1 - arguably wrong for
directories,
but it's the best we can do without reading the
directory
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-26 5:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-26 5:45 [PATCH] linux-2.5.66/fs/cramfs/inode.c typecheck - int vs. struct Adam Kelly
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.