From: kernel test robot <lkp@intel.com>
To: Jeff Layton <jlayton@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev,
Christian Brauner <brauner@kernel.org>, Jan Kara <jack@suse.cz>
Subject: [jlayton:mgctime 50/118] fs/hostfs/hostfs_kern.c:520:36: error: incompatible type for argument 2 of 'inode_set_ctime_to_ts'
Date: Wed, 12 Jul 2023 02:30:10 +0800 [thread overview]
Message-ID: <202307120235.UI0A6Op0-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git mgctime
head: 61142a4e29e09f59b3b640f0f691e00af4c4a6f9
commit: 2ceaa835b4f50d1b0c0fa678f352bb4f6f5f8062 [50/118] hostfs: convert to ctime accessor functions
config: um-defconfig (https://download.01.org/0day-ci/archive/20230712/202307120235.UI0A6Op0-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230712/202307120235.UI0A6Op0-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307120235.UI0A6Op0-lkp@intel.com/
All errors (new ones prefixed by >>):
fs/hostfs/hostfs_kern.c: In function 'hostfs_inode_update':
>> fs/hostfs/hostfs_kern.c:520:36: error: incompatible type for argument 2 of 'inode_set_ctime_to_ts'
520 | inode_set_ctime_to_ts(ino, &st->ctime);
| ^~~~~~~~~~
| |
| const struct hostfs_timespec *
In file included from fs/hostfs/hostfs_kern.c:9:
include/linux/fs.h:1499:73: note: expected 'struct timespec64' but argument is of type 'const struct hostfs_timespec *'
1499 | struct timespec64 ts)
| ~~~~~~~~~~~~~~~~~~^~
vim +/inode_set_ctime_to_ts +520 fs/hostfs/hostfs_kern.c
510
511 static int hostfs_inode_update(struct inode *ino, const struct hostfs_stat *st)
512 {
513 set_nlink(ino, st->nlink);
514 i_uid_write(ino, st->uid);
515 i_gid_write(ino, st->gid);
516 ino->i_atime =
517 (struct timespec64){ st->atime.tv_sec, st->atime.tv_nsec };
518 ino->i_mtime =
519 (struct timespec64){ st->mtime.tv_sec, st->mtime.tv_nsec };
> 520 inode_set_ctime_to_ts(ino, &st->ctime);
521 ino->i_size = st->size;
522 ino->i_blocks = st->blocks;
523 return 0;
524 }
525
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2023-07-11 18:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-11 18:30 kernel test robot [this message]
2023-07-12 10:08 ` [jlayton:mgctime 50/118] fs/hostfs/hostfs_kern.c:520:36: error: incompatible type for argument 2 of 'inode_set_ctime_to_ts' Christian Brauner
2023-07-12 10:18 ` Jeff Layton
2023-07-12 10:35 ` Jeff Layton
2023-07-12 11:10 ` Christian Brauner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202307120235.UI0A6Op0-lkp@intel.com \
--to=lkp@intel.com \
--cc=brauner@kernel.org \
--cc=jack@suse.cz \
--cc=jlayton@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.