]> git.baikalelectronics.ru Git - kernel.git/commit
cachefiles: Explicitly cast enumerated type in put_object
authorNathan Chancellor <natechancellor@gmail.com>
Mon, 24 Sep 2018 17:33:44 +0000 (10:33 -0700)
committerDavid Howells <dhowells@redhat.com>
Fri, 30 Nov 2018 16:00:58 +0000 (16:00 +0000)
commit53f7eb538203a2c012de0d672fbab2f1c3a61a59
tree3c9b8b5c87a7880ccd5b2c7b9221b0c375920a18
parent6d2daa27726f4858a67c616a96714755d6d5927c
cachefiles: Explicitly cast enumerated type in put_object

Clang warns when one enumerated type is implicitly converted to another.

fs/cachefiles/namei.c:247:50: warning: implicit conversion from
enumeration type 'enum cachefiles_obj_ref_trace' to different
enumeration type 'enum fscache_obj_ref_trace' [-Wenum-conversion]
        cache->cache.ops->put_object(&xobject->fscache,
cachefiles_obj_put_wait_retry);

Silence this warning by explicitly casting to fscache_obj_ref_trace,
which is also done in put_object.

Reported-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
fs/cachefiles/namei.c