aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-memcpy.c
diff options
context:
space:
mode:
authorGao Xiang <[email protected]>2022-03-11 01:34:48 +0800
committerGao Xiang <[email protected]>2022-03-16 09:39:07 +0800
commitd467e980d0239fd95cc93b0995199973624a4825 (patch)
treec486092bdf4b36f8f1a6afde155a93d0fc3f0325 /lib/test_fortify/write_overflow-memcpy.c
parentfaac509507e2341093c32b6607a82430bccfb78f (diff)
erofs: silence warnings related to impossible m_plen
Dan reported two smatch warnings [1], .. warn: should '1 << lclusterbits' be a 64 bit type? .. warn: should 'm->compressedlcs << lclusterbits' be a 64 bit type? In practice, m_plen cannot be more than 1MiB due to on-disk constraint for the compression mode, so we're always safe here. In order to make static analyzers happy and not report again, let's silence them instead. [1] https://lore.kernel.org/r/[email protected] Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Reviewed-by: Chao Yu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Gao Xiang <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions