Bug #8396
uts: vm_dep.h error: left shift of negative value
Start date:
2017-06-15
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
Description
Build error with gcc 6:
In file included from ../../common/vm/vm_pagelist.c:59:0: ../../common/vm/vm_pagelist.c: In function 'page_ctr_sub_internal': ../../i86pc/vm/vm_dep.h:70:36: error: left shift of negative value [-Werror=shift-negative-value] plcnt_inc_dec(pp, mtype, szc, -1l << PAGE_BSZS_SHIFT(szc), flags) ^ ../../common/vm/vm_pagelist.c:879:2: note: in expansion of macro 'PLCNT_DECR' PLCNT_DECR(pp, mnode, mtype, pp->p_szc, flags); ^~~~~~~~~~ cc1: all warnings being treated as errors