In struct access_data, the field 'alignment' is always the one present in 'result_type' and is thus completely redundant. Change this by removing this field. --- linearize.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/linearize.c b/linearize.c index f628f5a74..1f93da9ae 100644 --- a/linearize.c +++ b/linearize.c @@ -844,7 +844,7 @@ struct access_data { struct symbol *source_type; // source ctype pseudo_t address; // pseudo containing address .. pseudo_t origval; // pseudo for original value .. - unsigned int offset, alignment; // byte offset + unsigned int offset; // byte offset struct position pos; }; @@ -897,7 +897,6 @@ static int linearize_address_gen(struct entrypoint *ep, ad->pos = expr->pos; ad->result_type = ctype; ad->source_type = base_type(ctype); - ad->alignment = ctype->ctype.alignment; if (expr->type == EXPR_PREOP && expr->op == '*') return linearize_simple_address(ep, expr->unop, ad); -- 2.12.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html