From: kernel test robot <lkp@intel.com>
To: Jeff Layton <jlayton@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [jlayton:tmpfs 3/3] mm/shmem.c:2389:23: warning: cast from pointer to integer of different size
Date: Thu, 23 Mar 2023 14:03:50 +0800 [thread overview]
Message-ID: <202303231415.ZJGD4Atf-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git tmpfs
head: 3c91485aa13464b37e93c8e969da56964d9b801c
commit: 3c91485aa13464b37e93c8e969da56964d9b801c [3/3] tmpfs: add support for stable directory cookies
config: i386-randconfig-a001 (https://download.01.org/0day-ci/archive/20230323/202303231415.ZJGD4Atf-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git/commit/?id=3c91485aa13464b37e93c8e969da56964d9b801c
git remote add jlayton https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git
git fetch --no-tags jlayton tmpfs
git checkout 3c91485aa13464b37e93c8e969da56964d9b801c
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 olddefconfig
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303231415.ZJGD4Atf-lkp@intel.com/
All warnings (new ones prefixed by >>):
mm/shmem.c: In function 'shmem_readdir':
>> mm/shmem.c:2389:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
2389 | pos = (loff_t)dentry->d_fsdata;
| ^
vim +2389 mm/shmem.c
2371
2372 static int shmem_readdir(struct file *file, struct dir_context *ctx)
2373 {
2374 struct inode *dir = file_inode(file);
2375 struct shmem_inode_info *dinfo = SHMEM_I(dir);
2376 struct dentry *dentry;
2377 loff_t pos = ctx->pos;
2378 int idx = (int)ctx->pos;
2379
2380 if (!dir_emit_dots(file, ctx))
2381 return 0;
2382
2383 idr_for_each_entry_continue(&dinfo->dirindex, dentry, idx) {
2384 struct inode *inode = d_inode(dentry);
2385
2386 if (!dir_emit(ctx, dentry->d_name.name, dentry->d_name.len,
2387 inode->i_ino, dt_type(inode->i_mode)))
2388 break;
> 2389 pos = (loff_t)dentry->d_fsdata;
2390 }
2391 ctx->pos = pos;
2392 return 0;
2393 }
2394
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
reply other threads:[~2023-03-23 6:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202303231415.ZJGD4Atf-lkp@intel.com \
--to=lkp@intel.com \
--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.