From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org, Baokun Li <libaokun1@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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'
Date: Tue, 31 Dec 2024 02:50:27 +0800 [thread overview]
Message-ID: <202412310256.l8FuLcbO-lkp@intel.com> (raw)
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
reply other threads:[~2024-12-30 18:51 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=202412310256.l8FuLcbO-lkp@intel.com \
--to=lkp@intel.com \
--cc=kernel@openeuler.org \
--cc=libaokun1@huawei.com \
--cc=oe-kbuild-all@lists.linux.dev \
/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 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.