Function from_pmem_call of nova ignores the return value check
of memcpy_mcsafe which with must_check in it, __must_check is
attribute__((warn_unused_result)), so trigger the following
compiler warning
fs/nova/perf.c: In function ‘from_pmem_call’:
fs/nova/perf.c:57:2: warning: ignoring return value of ‘memcpy_mcsafe’,
declared with attribute warn_unused_result [-Wunused-result]
memcpy_mcsafe(dst, src + off, size);
^~~~~~~~~~~
Function from_pmem_call of nova ignores the return value check of memcpy_mcsafe which with must_check in it, __must_check is attribute__((warn_unused_result)), so trigger the following compiler warning
fs/nova/perf.c: In function ‘from_pmem_call’: fs/nova/perf.c:57:2: warning: ignoring return value of ‘memcpy_mcsafe’, declared with attribute warn_unused_result [-Wunused-result] memcpy_mcsafe(dst, src + off, size); ^
~~~~~~~~~~Signed-off-by: Yuanliang Wang yuanliang.wyl@alibaba-inc.com