lib: sign conflict in sbi_tlb_entry_process()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 21 Jun 2021 19:50:10 +0000 (21:50 +0200)
committerAnup Patel <anup@brainfault.org>
Tue, 22 Jun 2021 13:42:22 +0000 (19:12 +0530)
commitcdcf907b1989c8816bf67bf078780b6353a516ce
tree2f7d828b749bcdeff71f4d2d7967cf20bb4035a3
parenteb90e0a16cd9ab890522f2057868dc695533a3d1
lib: sign conflict in sbi_tlb_entry_process()

Compiling sbi_tlb_entry_process() with GCC 11 and -Wextra yields:

lib/sbi/sbi_tlb.c: In function ‘sbi_tlb_process_count’:
lib/sbi/sbi_tlb.c:206:31:
error: comparison of integer expressions of different signedness:
‘u32’ {aka ‘unsigned int’} and ‘int’ [-Werror=sign-compare]
  206 |                 if (deq_count > count)

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Xiang W <wxjstz@126.com>
lib/sbi/sbi_tlb.c