All of lore.kernel.org
 help / color / mirror / Atom feed
* [openeuler:OLK-5.10 2610/2610] fs/cachefiles/ondemand.c:23:25: warning: implicit conversion from 'enum cachefiles_obj_ref_trace' to 'enum fscache_obj_ref_trace'
@ 2024-12-30 18:50 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-12-30 18:50 UTC (permalink / raw)
  To: kernel, Baokun Li; +Cc: oe-kbuild-all

tree:   https://gitee.com/openeuler/kernel.git OLK-5.10
head:   8bba4b17284e774544bd01d9ea5190546e93a849
commit: 2937cd5f8c58bd8e7895f6b2698057721442248e [2610/2610] cachefiles: notify the user daemon when looking up cookie
config: arm64-randconfig-004-20241230 (https://download.01.org/0day-ci/archive/20241231/202412310256.l8FuLcbO-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241231/202412310256.l8FuLcbO-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412310256.l8FuLcbO-lkp@intel.com/

All warnings (new ones prefixed by >>):

   fs/cachefiles/ondemand.c: In function 'cachefiles_ondemand_fd_release':
>> fs/cachefiles/ondemand.c:23:25: warning: implicit conversion from 'enum cachefiles_obj_ref_trace' to 'enum fscache_obj_ref_trace' [-Wenum-conversion]
      23 |                         cachefiles_obj_put_ondemand_fd);
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/cachefiles/ondemand.c: In function 'cachefiles_ondemand_get_fd':
   fs/cachefiles/ondemand.c:145:25: warning: implicit conversion from 'enum cachefiles_obj_ref_trace' to 'enum fscache_obj_ref_trace' [-Wenum-conversion]
     145 |                         cachefiles_obj_get_ondemand_fd) ? 0 : -EAGAIN;
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/cachefiles/ondemand.c:191:25: warning: implicit conversion from 'enum cachefiles_obj_ref_trace' to 'enum fscache_obj_ref_trace' [-Wenum-conversion]
     191 |                         cachefiles_obj_put_ondemand_fd);
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +23 fs/cachefiles/ondemand.c

     7	
     8	static int cachefiles_ondemand_fd_release(struct inode *inode,
     9						  struct file *file)
    10	{
    11		struct cachefiles_object *object = file->private_data;
    12		int object_id = object->ondemand_id;
    13		struct cachefiles_cache *cache;
    14	
    15		cache = container_of(object->fscache.cache,
    16				     struct cachefiles_cache, cache);
    17	
    18		object->ondemand_id = CACHEFILES_ONDEMAND_ID_CLOSED;
    19		xa_lock(&cache->ondemand_ids.idr_rt);
    20		idr_remove(&cache->ondemand_ids, object_id);
    21		xa_unlock(&cache->ondemand_ids.idr_rt);
    22		object->fscache.cache->ops->put_object(&object->fscache,
  > 23				cachefiles_obj_put_ondemand_fd);
    24		return 0;
    25	}
    26	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2024-12-30 18:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-30 18:50 [openeuler:OLK-5.10 2610/2610] fs/cachefiles/ondemand.c:23:25: warning: implicit conversion from 'enum cachefiles_obj_ref_trace' to 'enum fscache_obj_ref_trace' 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.