summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2018-05-31 19:07:20 +0300
committerDarrick J. Wong <darrick.wong@oracle.com>2018-06-01 19:00:16 +0300
commit2483113f3d7baa303deac115e6764d9489c8316b (patch)
treebd28b6896b62217f3bb3de9434bb14bf27977d6a /tools/perf/scripts/python/export-to-sqlite.py
parent80660f20252d6f76c9f203874ad7c7a4a8508cf8 (diff)
downloadlinux-2483113f3d7baa303deac115e6764d9489c8316b.tar.xz
xfs: xfs_rtword_t should be unsigned, not signed
xfs_rtword_t is used for bit manipulations in the realtime bitmap file. Since we're performing bit shifts with this type, we don't want sign extension and we don't want to be left shifting negative quantities because that's undefined behavior. This also shuts up these UBSAN warnings: UBSAN: Undefined behaviour in fs/xfs/libxfs/xfs_rtbitmap.c:833:48 signed integer overflow: -2147483648 - 1 cannot be represented in type 'int' Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Allison Henderson <allison.henderson@oracle.com> Reviewed-by: Bill O'Donnell <billodo@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions