NVSL / linux-nova

NOVA is a log-structured file system designed for byte-addressable non-volatile memories, developed at the University of California, San Diego.
http://nvsl.ucsd.edu/index.php?path=projects/nova
Other
421 stars 118 forks source link

fs,nova: fix build warning when ignore return value check of memcpy_mcsafe #59

Closed wangyuanliangs closed 6 years ago

wangyuanliangs commented 6 years ago

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