mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Amir Goldstein <amir73il@gmail.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [amir73il:fan_evictable 6/16] include/linux/fsnotify_backend.h:269:36: sparse: sparse: incorrect type in assignment (different base types)
Date: Fri, 8 Apr 2022 21:59:30 +0800	[thread overview]
Message-ID: <202204082112.PhSsWj1q-lkp@intel.com> (raw)

tree:   https://github.com/amir73il/linux fan_evictable
head:   bac37b7aec7f4dc6f4bc9c96356341245620fb5e
commit: cb71ef37a75afb4856098c9bf1b2e860b836e74e [6/16] fsnotify: create helpers for group mark_mutex lock
config: openrisc-randconfig-s032-20220408 (https://download.01.org/0day-ci/archive/20220408/202204082112.PhSsWj1q-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 11.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        # https://github.com/amir73il/linux/commit/cb71ef37a75afb4856098c9bf1b2e860b836e74e
        git remote add amir73il https://github.com/amir73il/linux
        git fetch --no-tags amir73il fan_evictable
        git checkout cb71ef37a75afb4856098c9bf1b2e860b836e74e
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=openrisc SHELL=/bin/bash fs/notify/

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


sparse warnings: (new ones prefixed by >>)
   fs/notify/mark.c:279:9: sparse: sparse: context imbalance in 'fsnotify_put_mark' - unexpected unlock
   fs/notify/mark.c: note: in included file:
>> include/linux/fsnotify_backend.h:269:36: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted gfp_t [usertype] owner_flags @@     got unsigned int @@
   include/linux/fsnotify_backend.h:269:36: sparse:     expected restricted gfp_t [usertype] owner_flags
   include/linux/fsnotify_backend.h:269:36: sparse:     got unsigned int
>> include/linux/fsnotify_backend.h:275:44: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int flags @@     got restricted gfp_t [usertype] owner_flags @@
   include/linux/fsnotify_backend.h:275:44: sparse:     expected unsigned int flags
   include/linux/fsnotify_backend.h:275:44: sparse:     got restricted gfp_t [usertype] owner_flags
   fs/notify/mark.c:545:39: sparse: sparse: context imbalance in 'fsnotify_grab_connector' - different lock contexts for basic block
   fs/notify/mark.c:657:20: sparse: sparse: context imbalance in 'fsnotify_add_mark_list' - unexpected unlock
>> include/linux/fsnotify_backend.h:269:36: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted gfp_t [usertype] owner_flags @@     got unsigned int @@
   include/linux/fsnotify_backend.h:269:36: sparse:     expected restricted gfp_t [usertype] owner_flags
   include/linux/fsnotify_backend.h:269:36: sparse:     got unsigned int
>> include/linux/fsnotify_backend.h:275:44: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int flags @@     got restricted gfp_t [usertype] owner_flags @@
   include/linux/fsnotify_backend.h:275:44: sparse:     expected unsigned int flags
   include/linux/fsnotify_backend.h:275:44: sparse:     got restricted gfp_t [usertype] owner_flags
   fs/notify/mark.c:738:25: sparse: sparse: context imbalance in 'fsnotify_find_mark' - unexpected unlock
>> include/linux/fsnotify_backend.h:269:36: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted gfp_t [usertype] owner_flags @@     got unsigned int @@
   include/linux/fsnotify_backend.h:269:36: sparse:     expected restricted gfp_t [usertype] owner_flags
   include/linux/fsnotify_backend.h:269:36: sparse:     got unsigned int
>> include/linux/fsnotify_backend.h:275:44: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int flags @@     got restricted gfp_t [usertype] owner_flags @@
   include/linux/fsnotify_backend.h:275:44: sparse:     expected unsigned int flags
   include/linux/fsnotify_backend.h:275:44: sparse:     got restricted gfp_t [usertype] owner_flags
>> include/linux/fsnotify_backend.h:269:36: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted gfp_t [usertype] owner_flags @@     got unsigned int @@
   include/linux/fsnotify_backend.h:269:36: sparse:     expected restricted gfp_t [usertype] owner_flags
   include/linux/fsnotify_backend.h:269:36: sparse:     got unsigned int
>> include/linux/fsnotify_backend.h:275:44: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int flags @@     got restricted gfp_t [usertype] owner_flags @@
   include/linux/fsnotify_backend.h:275:44: sparse:     expected unsigned int flags
   include/linux/fsnotify_backend.h:275:44: sparse:     got restricted gfp_t [usertype] owner_flags
>> include/linux/fsnotify_backend.h:275:44: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int flags @@     got restricted gfp_t [usertype] owner_flags @@
   include/linux/fsnotify_backend.h:275:44: sparse:     expected unsigned int flags
   include/linux/fsnotify_backend.h:275:44: sparse:     got restricted gfp_t [usertype] owner_flags
   fs/notify/mark.c:812:17: sparse: sparse: context imbalance in 'fsnotify_destroy_marks' - unexpected unlock
--
   fs/notify/fdinfo.c: note: in included file:
>> include/linux/fsnotify_backend.h:269:36: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted gfp_t [usertype] owner_flags @@     got unsigned int @@
   include/linux/fsnotify_backend.h:269:36: sparse:     expected restricted gfp_t [usertype] owner_flags
   include/linux/fsnotify_backend.h:269:36: sparse:     got unsigned int
>> include/linux/fsnotify_backend.h:275:44: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int flags @@     got restricted gfp_t [usertype] owner_flags @@
   include/linux/fsnotify_backend.h:275:44: sparse:     expected unsigned int flags
   include/linux/fsnotify_backend.h:275:44: sparse:     got restricted gfp_t [usertype] owner_flags

vim +269 include/linux/fsnotify_backend.h

   260	
   261	/*
   262	 * These helpers are used to prevent deadlock when reclaiming inodes with
   263	 * evictable marks of the same group that is allocating a new mark.
   264	 */
   265	static inline void fsnotify_group_lock(struct fsnotify_group *group)
   266	{
   267		mutex_lock(&group->mark_mutex);
   268		if (FSNOTIFY_GROUP_FLAG(group, NOFS))
 > 269			group->owner_flags = memalloc_nofs_save();
   270	}
   271	
   272	static inline void fsnotify_group_unlock(struct fsnotify_group *group)
   273	{
   274		if (FSNOTIFY_GROUP_FLAG(group, NOFS))
 > 275			memalloc_nofs_restore(group->owner_flags);
   276		mutex_unlock(&group->mark_mutex);
   277	}
   278	

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

                 reply	other threads:[~2022-04-08 14:01 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=202204082112.PhSsWj1q-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=amir73il@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    /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 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®