All of lore.kernel.org
 help / color / mirror / Atom feed
* [jsarha:topic/cros-sof-v4.19 715/6555] security/chromiumos/inode_mark.c:164:24: warning: assignment to 'struct fsnotify_group *' from 'int' makes pointer from integer without a cast
@ 2023-03-01  9:00 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-01  9:00 UTC (permalink / raw)
  To: Stephan Uphoff
  Cc: oe-kbuild-all, Guenter Roeck, Kees Cook, Mandeep Singh Baines,
	Filipe Brandenburger

tree:   https://github.com/jsarha/linux topic/cros-sof-v4.19
head:   d7a3e91d8d16d1ef8653deec5a1fffc4de034a0c
commit: 67af35d773c3a709d88b67cdf5815d275fa3cf60 [715/6555] CHROMIUM: LSM: chromiumos security module
config: arm64-randconfig-r002-20230227 (https://download.01.org/0day-ci/archive/20230301/202303011617.CUUyjNLj-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 12.1.0
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
        # https://github.com/jsarha/linux/commit/67af35d773c3a709d88b67cdf5815d275fa3cf60
        git remote add jsarha https://github.com/jsarha/linux
        git fetch --no-tags jsarha topic/cros-sof-v4.19
        git checkout 67af35d773c3a709d88b67cdf5815d275fa3cf60
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash M=security/chromiumos

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/202303011617.CUUyjNLj-lkp@intel.com/

All warnings (new ones prefixed by >>):

   security/chromiumos/inode_mark.c: In function 'chromiumos_super_block_put':
   security/chromiumos/inode_mark.c:85:17: error: implicit declaration of function 'fsnotify_destroy_group' [-Werror=implicit-function-declaration]
      85 |                 fsnotify_destroy_group(sbm->fsn_group);
         |                 ^~~~~~~~~~~~~~~~~~~~~~
   security/chromiumos/inode_mark.c: In function 'chromiumos_super_block_create':
   security/chromiumos/inode_mark.c:164:26: error: implicit declaration of function 'fsnotify_alloc_group' [-Werror=implicit-function-declaration]
     164 |         sbm->fsn_group = fsnotify_alloc_group(&chromiumos_fsn_ops);
         |                          ^~~~~~~~~~~~~~~~~~~~
>> security/chromiumos/inode_mark.c:164:24: warning: assignment to 'struct fsnotify_group *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     164 |         sbm->fsn_group = fsnotify_alloc_group(&chromiumos_fsn_ops);
         |                        ^
   security/chromiumos/inode_mark.c: In function 'chromiumos_inode_mark_create':
   security/chromiumos/inode_mark.c:212:9: error: implicit declaration of function 'fsnotify_init_mark' [-Werror=implicit-function-declaration]
     212 |         fsnotify_init_mark(&inode_mark->mark, sbm->fsn_group);
         |         ^~~~~~~~~~~~~~~~~~
   security/chromiumos/inode_mark.c:224:15: error: implicit declaration of function 'fsnotify_add_mark_locked' [-Werror=implicit-function-declaration]
     224 |         ret = fsnotify_add_mark_locked(&inode_mark->mark, &inode->i_fsnotify_marks,
         |               ^~~~~~~~~~~~~~~~~~~~~~~~
   security/chromiumos/inode_mark.c:224:65: error: 'struct inode' has no member named 'i_fsnotify_marks'
     224 |         ret = fsnotify_add_mark_locked(&inode_mark->mark, &inode->i_fsnotify_marks,
         |                                                                 ^~
   security/chromiumos/inode_mark.c:233:9: error: implicit declaration of function 'fsnotify_put_mark'; did you mean 'fsnotify_get_cookie'? [-Werror=implicit-function-declaration]
     233 |         fsnotify_put_mark(&inode_mark->mark);
         |         ^~~~~~~~~~~~~~~~~
         |         fsnotify_get_cookie
   security/chromiumos/inode_mark.c: In function 'chromiumos_update_inode_security_policy':
   security/chromiumos/inode_mark.c:254:16: error: implicit declaration of function 'fsnotify_find_mark'; did you mean 'fsnotify_iter_inode_mark'? [-Werror=implicit-function-declaration]
     254 |         mark = fsnotify_find_mark(&inode->i_fsnotify_marks, sbm->fsn_group);
         |                ^~~~~~~~~~~~~~~~~~
         |                fsnotify_iter_inode_mark
   security/chromiumos/inode_mark.c:254:41: error: 'struct inode' has no member named 'i_fsnotify_marks'
     254 |         mark = fsnotify_find_mark(&inode->i_fsnotify_marks, sbm->fsn_group);
         |                                         ^~
   security/chromiumos/inode_mark.c:271:25: error: implicit declaration of function 'fsnotify_detach_mark' [-Werror=implicit-function-declaration]
     271 |                         fsnotify_detach_mark(mark);
         |                         ^~~~~~~~~~~~~~~~~~~~
   security/chromiumos/inode_mark.c:282:17: error: implicit declaration of function 'fsnotify_free_mark' [-Werror=implicit-function-declaration]
     282 |                 fsnotify_free_mark(mark);
         |                 ^~~~~~~~~~~~~~~~~~
   security/chromiumos/inode_mark.c: In function 'chromiumos_flush_inode_security_policies':
   security/chromiumos/inode_mark.c:296:17: error: implicit declaration of function 'fsnotify_clear_marks_by_group' [-Werror=implicit-function-declaration]
     296 |                 fsnotify_clear_marks_by_group(sbm->fsn_group,
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   security/chromiumos/inode_mark.c: In function 'chromiumos_get_inode_security_policy':
   security/chromiumos/inode_mark.c:329:31: error: 'struct inode' has no member named 'i_fsnotify_marks'
     329 |                         &inode->i_fsnotify_marks, sbm->fsn_group);
         |                               ^~
   cc1: some warnings being treated as errors


vim +164 security/chromiumos/inode_mark.c

   148	
   149	static struct chromiumos_super_block_mark *
   150	chromiumos_super_block_create(struct super_block *sb)
   151	{
   152		struct hlist_head *hlist = chromiumos_super_block_hlist(sb);
   153		struct chromiumos_super_block_mark *sbm = NULL;
   154	
   155		WARN_ON(!mutex_is_locked(&chromiumos_super_block_hash_lock));
   156	
   157		/* No match found, create a new entry. */
   158		sbm = kzalloc(sizeof(*sbm), GFP_KERNEL);
   159		if (!sbm)
   160			return ERR_PTR(-ENOMEM);
   161	
   162		atomic_set(&sbm->refcnt, 1);
   163		sbm->sb = sb;
 > 164		sbm->fsn_group = fsnotify_alloc_group(&chromiumos_fsn_ops);
   165		if (IS_ERR(sbm->fsn_group)) {
   166			int ret = PTR_ERR(sbm->fsn_group);
   167	
   168			kfree(sbm);
   169			return ERR_PTR(ret);
   170		}
   171		sbm->fsn_group->private = sbm;
   172		hlist_add_head_rcu(&sbm->node, hlist);
   173	
   174		return sbm;
   175	}
   176	

-- 
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-01  9:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-01  9:00 [jsarha:topic/cros-sof-v4.19 715/6555] security/chromiumos/inode_mark.c:164:24: warning: assignment to 'struct fsnotify_group *' from 'int' makes pointer from integer without a cast kernel test robot

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.