mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [kees:for-next/kspp 12/12] fs/gfs2/meta_io.h:44:12: error: casting from randomized structure pointer type 'struct address_space *' to 'struct gfs2_glock *'
@ 2022-05-04  7:32 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-05-04  7:32 UTC (permalink / raw)
  To: Kees Cook; +Cc: llvm, kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/kspp
head:   1fe35f29cf8220a5f9ab39ee3e5c722eb716b6fa
commit: 1fe35f29cf8220a5f9ab39ee3e5c722eb716b6fa [12/12] randstruct: Enable Clang support
config: riscv-randconfig-c006-20220501 (https://download.01.org/0day-ci/archive/20220504/202205041550.naKxwCBj-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 363b3a645a1e30011cc8da624f13dac5fd915628)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/commit/?id=1fe35f29cf8220a5f9ab39ee3e5c722eb716b6fa
        git remote add kees https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git
        git fetch --no-tags kees for-next/kspp
        git checkout 1fe35f29cf8220a5f9ab39ee3e5c722eb716b6fa
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from fs/gfs2/acl.c:23:
>> fs/gfs2/meta_io.h:44:12: error: casting from randomized structure pointer type 'struct address_space *' to 'struct gfs2_glock *'
                   return (((struct gfs2_glock *)mapping) - 1)->gl_name.ln_sbd;
                            ^
   1 error generated.


vim +44 fs/gfs2/meta_io.h

009d851837ab26 Steven Whitehouse 2009-12-08  39  
009d851837ab26 Steven Whitehouse 2009-12-08  40  static inline struct gfs2_sbd *gfs2_mapping2sbd(struct address_space *mapping)
009d851837ab26 Steven Whitehouse 2009-12-08  41  {
009d851837ab26 Steven Whitehouse 2009-12-08  42  	struct inode *inode = mapping->host;
009d851837ab26 Steven Whitehouse 2009-12-08  43  	if (mapping->a_ops == &gfs2_meta_aops)
15562c439d0a18 Bob Peterson      2015-03-16 @44  		return (((struct gfs2_glock *)mapping) - 1)->gl_name.ln_sbd;
1b2ad41214c9bf Steven Whitehouse 2014-03-31  45  	else if (mapping->a_ops == &gfs2_rgrp_aops)
1b2ad41214c9bf Steven Whitehouse 2014-03-31  46  		return container_of(mapping, struct gfs2_sbd, sd_aspace);
009d851837ab26 Steven Whitehouse 2009-12-08  47  	else
009d851837ab26 Steven Whitehouse 2009-12-08  48  		return inode->i_sb->s_fs_info;
009d851837ab26 Steven Whitehouse 2009-12-08  49  }
b3b94faa5fe596 David Teigland    2006-01-16  50  

:::::: The code at line 44 was first introduced by commit
:::::: 15562c439d0a1850b71aa1c0d92d1f4fb9503c8d GFS2: Move glock superblock pointer to field gl_name

:::::: TO: Bob Peterson <rpeterso@redhat.com>
:::::: CC: Bob Peterson <rpeterso@redhat.com>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

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

only message in thread, other threads:[~2022-05-04  7:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-04  7:32 [kees:for-next/kspp 12/12] fs/gfs2/meta_io.h:44:12: error: casting from randomized structure pointer type 'struct address_space *' to 'struct gfs2_glock *' 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

all inboxes | Powered by JetHome®