* [jlayton:tmpfs 3/3] mm/shmem.c:2389:23: warning: cast from pointer to integer of different size
@ 2023-03-23 6:03 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-23 6:03 UTC (permalink / raw)
To: Jeff Layton; +Cc: oe-kbuild-all
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-23 6:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-23 6:03 [jlayton:tmpfs 3/3] mm/shmem.c:2389:23: warning: cast from pointer to integer of different size kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).