diff options
author | Thomas Gleixner <[email protected]> | 2016-12-10 00:13:51 +0100 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2016-12-10 00:24:39 +0100 |
commit | 990e9dc381e6999a0eba8ebaf8747daaa8c58337 (patch) | |
tree | e0531b6b297a4361cdca9da4d5f715ec44539c00 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 296dc5806de57dc84fce000d60fc201ba40f96e8 (diff) |
x86/ldt: Make all size computations unsigned
ldt->size can never be negative. The helper functions take 'unsigned int'
arguments which are assigned from ldt->size. The related user space
user_desc struct member entry_number is unsigned as well.
But ldt->size itself and a few local variables which are related to
ldt->size are type 'int' which makes no sense whatsoever and results in
typecasts which make the eyes bleed.
Clean it up and convert everything which is related to ldt->size to
unsigned it.
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: Dan Carpenter <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions